mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Add BlockEntry
This commit is contained in:
parent
70cd3891cf
commit
70aad159b9
@ -4,8 +4,18 @@ import net.minestom.server.instance.block.Block;
|
||||
|
||||
public class Registry {
|
||||
|
||||
public static Entry block(Block block) {
|
||||
return new Entry("blocks.json");
|
||||
public static BlockEntry block(Block block) {
|
||||
return new BlockEntry("blocks.json");
|
||||
}
|
||||
|
||||
public static class BlockEntry extends Entry {
|
||||
private BlockEntry(String resource) {
|
||||
super(resource);
|
||||
}
|
||||
|
||||
public boolean isSolid() {
|
||||
return getBoolean("solid");
|
||||
}
|
||||
}
|
||||
|
||||
public static class Entry {
|
||||
|
Loading…
Reference in New Issue
Block a user