Interface Waterlogged
- All Superinterfaces:
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
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturnstrueif the block holds water.default WaterloggedwithWaterlogged(boolean waterlogged) Returns the same block with anotherwaterloggedvalue.
-
Method Details
-
isWaterlogged
default boolean isWaterlogged()Returnstrueif the block holds water.- Returns:
trueif the block holds water- Since:
- 0.1.0
-
withWaterlogged
Returns the same block with anotherwaterloggedvalue.- Parameters:
waterlogged-trueto fill the block with water- Returns:
- the same block with another
waterloggedvalue - Since:
- 0.1.0
-