mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
separate tile data into its own option in IrisBlockData
This commit is contained in:
@@ -62,6 +62,8 @@ public class IrisBlockData extends IrisRegistrant {
|
|||||||
private IrisBlockData backup = null;
|
private IrisBlockData backup = null;
|
||||||
@Desc("Optional properties for this block data such as 'waterlogged': true")
|
@Desc("Optional properties for this block data such as 'waterlogged': true")
|
||||||
private KMap<String, Object> data = new KMap<>();
|
private KMap<String, Object> data = new KMap<>();
|
||||||
|
@Desc("Optional tile data for this block data")
|
||||||
|
private KMap<String, Object> tileData = new KMap<>();
|
||||||
|
|
||||||
public IrisBlockData(String b) {
|
public IrisBlockData(String b) {
|
||||||
this.block = b;
|
this.block = b;
|
||||||
@@ -202,7 +204,7 @@ public class IrisBlockData extends IrisRegistrant {
|
|||||||
var type = getBlockData(data).getMaterial();
|
var type = getBlockData(data).getMaterial();
|
||||||
if (!INMS.get().hasTile(type))
|
if (!INMS.get().hasTile(type))
|
||||||
return null;
|
return null;
|
||||||
return new TileData().setMaterial(type).setProperties(this.data);
|
return new TileData().setMaterial(type).setProperties(this.tileData);
|
||||||
}
|
}
|
||||||
|
|
||||||
private String keyify(String dat) {
|
private String keyify(String dat) {
|
||||||
|
|||||||
Reference in New Issue
Block a user