Package org.bukkit.material
Class Bed
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Bed
- All Implemented Interfaces:
 Cloneable,Directional
@Deprecated(forRemoval=true,
            since="1.13")
public class Bed
extends MaterialData
implements Directional
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a bed.
- 
Constructor Summary
ConstructorsConstructorDescriptionBed()Deprecated, for removal: This API element is subject to removal in a future version.Default constructor for a bed.Deprecated, for removal: This API element is subject to removal in a future version.Instantiate a bed facing in a particular direction.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated.Magic value - 
Method Summary
Modifier and TypeMethodDescriptionclone()Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the direction that this bed's head is facing towardbooleanDeprecated, for removal: This API element is subject to removal in a future version.Determine if this block represents the head of the bedvoidsetFacingDirection(BlockFace face) Deprecated, for removal: This API element is subject to removal in a future version.Set which direction the head of the bed is facing.voidsetHeadOfBed(boolean isHeadOfBed) Deprecated, for removal: This API element is subject to removal in a future version.Configure this to be either the head or the foot of the bedtoString()Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack 
- 
Constructor Details
- 
Bed
public Bed()Deprecated, for removal: This API element is subject to removal in a future version.Default constructor for a bed. - 
Bed
Deprecated, for removal: This API element is subject to removal in a future version.Instantiate a bed facing in a particular direction.- Parameters:
 direction- the direction the bed's head is facing
 - 
Bed
Deprecated, for removal: This API element is subject to removal in a future version. - 
Bed
Deprecated.Magic value- Parameters:
 type- the typedata- the raw data value
 
 - 
 - 
Method Details
- 
isHeadOfBed
public boolean isHeadOfBed()Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Configure this to be either the head or the foot of the bed- Parameters:
 isHeadOfBed- True to make it the head.
 - 
setFacingDirection
Deprecated, for removal: This API element is subject to removal in a future version.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:
 setFacingDirectionin interfaceDirectional- Parameters:
 face- The facing direction
 - 
getFacing
Deprecated, for removal: This API element is subject to removal in a future version.Get the direction that this bed's head is facing toward- Specified by:
 getFacingin interfaceDirectional- Returns:
 - the direction the head of the bed is facing
 
 - 
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
 toStringin classMaterialData
 - 
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
 clonein classMaterialData
 
 - 
 
BlockData.