java.lang.Cloneable
, Directional
public class Bed extends MaterialData implements Directional
Constructor | Description |
---|---|
Bed() |
Default constructor for a bed.
|
Bed(int type) |
Deprecated.
Magic value
|
Bed(int type,
byte data) |
Deprecated.
Magic value
|
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, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Bed()
public Bed(BlockFace direction)
direction
- the direction the bed's head is facing@Deprecated public Bed(int type)
type
- the raw type idpublic Bed(Material type)
@Deprecated public Bed(int type, byte data)
type
- the raw type iddata
- the raw data value@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 Directional
face
- The facing directionpublic BlockFace getFacing()
getFacing
in interface Directional
public java.lang.String toString()
toString
in class MaterialData
public Bed clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.