java.lang.Cloneable, Directionalpublic class Bed extends MaterialData implements Directional
| Constructor | Description | 
|---|---|
| Bed() | Default constructor for a bed. | 
| Bed(BlockFace direction) | Instantiate a bed facing in a particular direction. | 
| Bed(Material type) | |
| Bed(Material type,
   byte data) | Deprecated.
 Magic value | 
| Modifier and Type | Method | Description | 
|---|---|---|
| Bed | clone() | |
| BlockFace | getFacing() | Get the direction that this bed's head is facing toward | 
| boolean | isHeadOfBed() | Determine if this block represents the head of the bed | 
| void | setFacingDirection(BlockFace face) | Set which direction the head of the bed is facing. | 
| void | setHeadOfBed(boolean isHeadOfBed) | Configure this to be either the head or the foot of the bed | 
| java.lang.String | toString() | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic Bed()
public Bed(BlockFace direction)
direction - the direction the bed's head is facingpublic Bed(Material type)
@Deprecated public Bed(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isHeadOfBed()
public void setHeadOfBed(boolean isHeadOfBed)
isHeadOfBed - True to make it the head.public void setFacingDirection(BlockFace face)
setFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
getFacing in interface Directionalpublic java.lang.String toString()
toString in class MaterialDatapublic Bed clone()
clone in class MaterialDataCopyright © 2018. All rights reserved.