public class Bed extends MaterialData implements Directional
| Constructor and Description |
|---|
Bed()
Default constructor for a bed.
|
Bed(BlockFace direction)
Instantiate a bed facing in a particular direction.
|
Bed(int type)
Deprecated.
Magic value
|
Bed(int type,
byte data)
Deprecated.
Magic value
|
Bed(Material type) |
Bed(Material type,
byte data)
Deprecated.
Magic value
|
| Modifier and Type | Method and 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
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Bed()
public Bed(BlockFace direction)
direction - the direction the bed's head is facing@Deprecated public Bed(int type)
public Bed(Material type)
@Deprecated public Bed(int type, byte data)
@Deprecated public Bed(Material type, byte data)
public 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 String toString()
toString in class MaterialDatapublic Bed clone()
clone in class MaterialDataCopyright © 2014. All rights reserved.