Package org.bukkit.material
Class Bed
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Bed
- All Implemented Interfaces:
Cloneable
,Directional
@Deprecated public class Bed extends MaterialData implements Directional
Deprecated.
all usage of MaterialData is deprecated and subject to removal.
Use
BlockData
.Represents a bed.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Bed
clone()
Deprecated.BlockFace
getFacing()
Deprecated.Get the direction that this bed's head is facing towardboolean
isHeadOfBed()
Deprecated.Determine if this block represents the head of the bedvoid
setFacingDirection(BlockFace face)
Deprecated.Set which direction the head of the bed is facing.void
setHeadOfBed(boolean isHeadOfBed)
Deprecated.Configure this to be either the head or the foot of the bedString
toString()
Deprecated.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Method Details
-
isHeadOfBed
public boolean isHeadOfBed()Deprecated.Determine if this block represents the head of the bed- Returns:
- true if this is the head of the bed, false if it is the foot
-
setHeadOfBed
public void setHeadOfBed(boolean isHeadOfBed)Deprecated.Configure this to be either the head or the foot of the bed- Parameters:
isHeadOfBed
- True to make it the head.
-
setFacingDirection
Deprecated.Set which direction the head of the bed is facing. Note that this will only affect one of the two blocks the bed is made of.- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
getFacing
Deprecated.Get the direction that this bed's head is facing toward- Specified by:
getFacing
in interfaceDirectional
- Returns:
- the direction the head of the bed is facing
-
toString
Deprecated.- Overrides:
toString
in classMaterialData
-
clone
Deprecated.- Overrides:
clone
in classMaterialData
-