mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-26 02:57:37 +01:00
Added Block#isLiquid
This commit is contained in:
parent
0a30554a5a
commit
51308ce920
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user