mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-02 14:38:26 +01:00
Add block entity getter
This commit is contained in:
parent
894b1a68a7
commit
b612f3c257
@ -48,6 +48,7 @@ public class Registry {
|
||||
private final boolean air;
|
||||
private final boolean solid;
|
||||
private final boolean liquid;
|
||||
private final boolean blockEntity;
|
||||
|
||||
private BlockEntry(JsonObject main, JsonObject override) {
|
||||
super(main, override);
|
||||
@ -62,6 +63,7 @@ public class Registry {
|
||||
this.air = getBoolean("air");
|
||||
this.solid = getBoolean("solid");
|
||||
this.liquid = getBoolean("liquid");
|
||||
this.blockEntity = getBoolean("blockEntity");
|
||||
}
|
||||
|
||||
public String namespace() {
|
||||
@ -107,6 +109,10 @@ public class Registry {
|
||||
public boolean isLiquid() {
|
||||
return liquid;
|
||||
}
|
||||
|
||||
public boolean isBlockEntity() {
|
||||
return blockEntity;
|
||||
}
|
||||
}
|
||||
|
||||
public static class Entry {
|
||||
|
Loading…
Reference in New Issue
Block a user