Package org.bukkit.block.data.type
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 SummaryNested Classes
- 
Method SummaryModifier and TypeMethodDescriptiongetPart()Gets the value of the 'part' property.booleanGets the value of the 'occupied' property.voidSets the value of the 'part' property.Methods inherited from interface org.bukkit.block.data.BlockDataclone, getAsString, getAsString, getMaterial, getSoundGroup, matches, mergeMethods inherited from interface org.bukkit.block.data.DirectionalgetFaces, getFacing, setFacing
- 
Method Details- 
getPartGets the value of the 'part' property.- Returns:
- the 'part' value
 
- 
setPartSets the value of the 'part' property.- Parameters:
- part- the new 'part' value
 
- 
isOccupiedboolean isOccupied()Gets the value of the 'occupied' property.- Returns:
- the 'occupied' value
 
 
-