Interface Waterlogged

All Superinterfaces:
BlockData
All Known Subinterfaces:
Slab, Stairs

public interface Waterlogged extends BlockData
A block state carrying the waterlogged property: whether the block holds water.

Block states are immutable: with... methods return another state and leave this one untouched.

Since:
0.1.0
  • Method Details

    • isWaterlogged

      default boolean isWaterlogged()
      Returns true if the block holds water.
      Returns:
      true if the block holds water
      Since:
      0.1.0
    • withWaterlogged

      default Waterlogged withWaterlogged(boolean waterlogged)
      Returns the same block with another waterlogged value.
      Parameters:
      waterlogged - true to fill the block with water
      Returns:
      the same block with another waterlogged value
      Since:
      0.1.0