Convenience method to see if a material is a block
This commit is contained in:
parent
ba54c55b97
commit
038a05522d
@ -193,6 +193,10 @@ public enum Material {
|
||||
return id;
|
||||
}
|
||||
|
||||
public boolean isBlock() {
|
||||
return id < 256;
|
||||
}
|
||||
|
||||
public static Material getMaterial(final int id) {
|
||||
return lookup.get(id);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user