Package org.bukkit.block.data
Interface Waterlogged
- All Known Subinterfaces:
Campfire
,Chain
,Chest
,CoralWallFan
,EnderChest
,Fence
,GlassPane
,Ladder
,Lantern
,Scaffolding
,SeaPickle
,Sign
,Slab
,Stairs
,TrapDoor
,Wall
,WallSign
public interface Waterlogged extends BlockData
'waterlogged' denotes whether this block has fluid in it.
-
Method Summary
Modifier and Type Method Description boolean
isWaterlogged()
Gets the value of the 'waterlogged' property.void
setWaterlogged(boolean waterlogged)
Sets the value of the 'waterlogged' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getMaterial, getSoundGroup, matches, merge
-
Method Details
-
isWaterlogged
boolean isWaterlogged()Gets the value of the 'waterlogged' property.- Returns:
- the 'waterlogged' value
-
setWaterlogged
void setWaterlogged(boolean waterlogged)Sets the value of the 'waterlogged' property.- Parameters:
waterlogged
- the new 'waterlogged' value
-