Add the method isTall to CompatibleMaterial.

This commit is contained in:
Brianna 2020-04-04 06:50:51 -04:00
parent e67f6cff95
commit c08add5295

View File

@ -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
*/