public class Bed extends MaterialData implements Directional
| コンストラクタと説明 |
|---|
Bed()
Default constructor for a bed.
|
Bed(BlockFace direction)
Instantiate a bed facing in a particular direction.
|
Bed(int type)
非推奨です。
Magic value
|
Bed(int type,
byte data)
非推奨です。
Magic value
|
Bed(Material type) |
Bed(Material type,
byte data)
非推奨です。
Magic value
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
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)
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 インタフェース内 Directionalface - The facing directionpublic BlockFace getFacing()
getFacing インタフェース内 Directionalpublic String toString()
toString クラス内 MaterialDatapublic Bed clone()
clone クラス内 MaterialDataCopyright © 2016. All rights reserved.