public class Bed extends MaterialData implements Directional
构造器和说明 |
---|
Bed()
床的默认构造器。
|
Bed(BlockFace direction)
使用特定的朝向以实例化一个床。
|
Bed(int type)
已过时。
不安全的参数
|
Bed(int type,
byte data)
已过时。
不安全的参数
|
Bed(Material type) |
Bed(Material type,
byte data)
已过时。
不安全的参数
|
限定符和类型 | 方法和说明 |
---|---|
Bed |
clone() |
BlockFace |
getFacing()
获取床头的朝向。
|
boolean |
isHeadOfBed()
限定于此方块是否代表床头
原文:Determine if this block represents the head of the bed
|
void |
setFacingDirection(BlockFace face)
设置床头的朝向.注意这只会影响到两个方块的床。
|
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()
原文:Default constructor for a bed.
public Bed(BlockFace direction)
原文:Instantiate a bed facing in a particular direction.
direction
- 床头的朝向@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()
原文:Determine if this block represents the head of the bed
public void setHeadOfBed(boolean isHeadOfBed)
原文:Configure this to be either the head or the foot of the bed
isHeadOfBed
- 想要弄成床头就设成truepublic void setFacingDirection(BlockFace face)
原文:Set which direction the head of the bed is facing. Note that this will only affect one of the two blocks the bed is made of.
setFacingDirection
在接口中 Directional
face
- 这个方块的朝向public BlockFace getFacing()
getFacing
在接口中 Directional
public java.lang.String toString()
toString
在类中 MaterialData
public Bed clone()
clone
在类中 MaterialData