Interface Bed
- All Superinterfaces:
BlockData, Cloneable, Directional
Similar to
'occupied' property is a quick flag to check if a player is currently sleeping in this bed block.
Bisected, 'part' denotes which half of the bed this block
corresponds to.
'occupied' property is a quick flag to check if a player is currently sleeping in this bed block.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptiongetPart()Gets the value of the 'part' property.booleanGets the value of the 'occupied' property.voidsetOccupied(boolean occupied) Sets the value of the 'occupied' property.voidSets the value of the 'part' property.Methods inherited from interface BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isReplaceable, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotateMethods inherited from interface Directional
getFaces, getFacing, setFacing
-
Method Details
-
getPart
-
setPart
-
isOccupied
boolean isOccupied()Gets the value of the 'occupied' property.- Returns:
- the 'occupied' value
-
setOccupied
void setOccupied(boolean occupied) Sets the value of the 'occupied' property.- Parameters:
occupied- the new 'occupied' value
-