add smart waterlog

This commit is contained in:
dfsek
2021-03-16 21:04:56 -07:00
parent 5458564cfa
commit 5028582198
9 changed files with 94 additions and 3 deletions
@@ -29,6 +29,11 @@ public class BukkitBlockTypeAndItem implements BlockType, Item {
return delegate.isSolid();
}
@Override
public boolean isWater() {
return delegate == Material.WATER;
}
@Override
public ItemStack newItemStack(int amount) {
return BukkitAdapter.adapt(new org.bukkit.inventory.ItemStack(delegate, amount));