Added Block#isLiquid

This commit is contained in:
Felix Cravic 2020-04-22 20:14:27 +02:00
parent 0a30554a5a
commit 51308ce920
1 changed files with 10 additions and 0 deletions

View File

@ -1255,6 +1255,16 @@ public enum Block {
}
}
public boolean isLiquid() {
switch (this) {
case WATER:
case LAVA:
return true;
default:
return false;
}
}
public List<BlockAlternative> getBlockAlternatives() {
return Collections.unmodifiableList(blockAlternatives);
}