|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.Bed
public class Bed
Represents a bed.
Constructor Summary | |
---|---|
Bed()
Default constructor for a bed. |
|
Bed(BlockFace direction)
Instantiate a bed facing in a particular direction. |
|
Bed(int type)
|
|
Bed(int type,
byte data)
|
|
Bed(Material type)
|
|
Bed(Material type,
byte data)
|
Method Summary | |
---|---|
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()
|
Methods inherited from class org.bukkit.material.MaterialData |
---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Bed()
public Bed(BlockFace direction)
direction
- the direction the bed's head is facingpublic Bed(int type)
public Bed(Material type)
public Bed(int type, byte data)
public Bed(Material type, byte data)
Method Detail |
---|
public boolean isHeadOfBed()
public void setHeadOfBed(boolean isHeadOfBed)
isHeadOfBed
- True to make it the head.public void setFacingDirection(BlockFace face)
setFacingDirection
in interface Directional
face
- The facing directionpublic BlockFace getFacing()
getFacing
in interface Directional
public String toString()
toString
in class MaterialData
public Bed clone()
clone
in class MaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |