类 Bed
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Bed
- 所有已实现的接口:
Cloneable
,Directional
代表床.
-
构造器概要
-
方法概要
修饰符和类型方法说明clone()
获取床头的朝向。boolean
限定于此方块是否代表床头void
setFacingDirection
(BlockFace face) 设置床头的朝向.注意这只会影响到两个方块的床。void
setHeadOfBed
(boolean isHeadOfBed) 设置方块是床头还是床尾toString()
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Bed
public Bed()床的默认构造器。原文:Default constructor for a bed.
-
Bed
使用特定的朝向以实例化一个床。原文:Instantiate a bed facing in a particular direction.
- 参数:
direction
- 床头的朝向
-
Bed
已过时。不安全的参数- 参数:
type
- the raw type id
-
Bed
-
Bed
已过时。不安全的参数- 参数:
type
- the raw type iddata
- the raw data value
-
Bed
已过时。不安全的参数- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
isHeadOfBed
public boolean isHeadOfBed()限定于此方块是否代表床头原文:Determine if this block represents the head of the bed
- 返回:
- true 方块是床头, false 如果不是
-
setHeadOfBed
public void setHeadOfBed(boolean isHeadOfBed) 设置方块是床头还是床尾原文:Configure this to be either the head or the foot of the bed
- 参数:
isHeadOfBed
- 想要弄成床头就设成true
-
setFacingDirection
设置床头的朝向.注意这只会影响到两个方块的床。原文: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
- 这个方块的朝向
-
getFacing
获取床头的朝向。 原文:Get the direction that this bed's head is facing toward- 指定者:
getFacing
在接口中Directional
- 返回:
- 床头的朝向
-
toString
- 覆盖:
toString
在类中MaterialData
-
clone
- 覆盖:
clone
在类中MaterialData
-