mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-27 12:35:12 +01:00
Add the method isTall to CompatibleMaterial.
This commit is contained in:
parent
e67f6cff95
commit
c08add5295
@ -2158,6 +2158,22 @@ public enum CompatibleMaterial {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if this material is two blocks tall
|
||||
*/
|
||||
public boolean isTall() {
|
||||
switch (this) {
|
||||
case SUNFLOWER:
|
||||
case LILAC:
|
||||
case LARGE_FERN:
|
||||
case ROSE_BUSH:
|
||||
case PEONY:
|
||||
case TALL_GRASS:
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if this is a block that has a growth state
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user