Package org.bukkit.material
Class Bed
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Bed
- All Implemented Interfaces:
- Cloneable,- Directional
Deprecated.
Represents a bed.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Get the direction that this bed's head is facing towardbooleanDeprecated.Determine if this block represents the head of the bedvoidsetFacingDirection(BlockFace face) Deprecated.Set which direction the head of the bed is facing.voidsetHeadOfBed(boolean isHeadOfBed) Deprecated.Configure this to be either the head or the foot of the bedtoString()Deprecated.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
Bedpublic Bed()Deprecated.Default constructor for a bed.
- 
BedDeprecated.Instantiate a bed facing in a particular direction.- Parameters:
- direction- the direction the bed's head is facing
 
- 
BedDeprecated.
- 
BedDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isHeadOfBedpublic 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
 
- 
setHeadOfBedpublic 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.
 
- 
setFacingDirectionDeprecated.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 interface- Directional
- Parameters:
- face- The facing direction
 
- 
getFacingDeprecated.Get the direction that this bed's head is facing toward- Specified by:
- getFacingin interface- Directional
- Returns:
- the direction the head of the bed is facing
 
- 
toStringDeprecated.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated.- Overrides:
- clonein class- MaterialData
 
 
- 
BlockData.