diff --git a/src/main/java/fr/themode/minestom/instance/block/Block.java b/src/main/java/fr/themode/minestom/instance/block/Block.java index 49cb39908..7bb486934 100644 --- a/src/main/java/fr/themode/minestom/instance/block/Block.java +++ b/src/main/java/fr/themode/minestom/instance/block/Block.java @@ -1255,6 +1255,16 @@ public enum Block { } } + public boolean isLiquid() { + switch (this) { + case WATER: + case LAVA: + return true; + default: + return false; + } + } + public List getBlockAlternatives() { return Collections.unmodifiableList(blockAlternatives); }