类 Bed
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Bed
- 所有已实现的接口:
Cloneable,Directional
已过时。
代表一张床。
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()已过时。已过时。获取此床头的朝向方向。boolean已过时。判断此方块是否代表床头。voidsetFacingDirection(BlockFace face) 已过时。设置床头的朝向。voidsetHeadOfBed(boolean isHeadOfBed) 已过时。设置此方块为床头或床尾。toString()已过时。从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Bed
public Bed()已过时。床的默认构造方法。原文:Default constructor for a bed.
-
Bed
已过时。实例化一个朝向特定方向的床。- 参数:
direction- 床头朝向的方向原文:Instantiate a bed facing in a particular direction.
-
Bed
已过时。 -
Bed
已过时。魔法值- 参数:
type- 类型data- 原始数据值
-
-
方法详细资料
-
isHeadOfBed
public boolean isHeadOfBed()已过时。判断此方块是否代表床头。- 返回:
- 如果是床头则返回 true,如果是床尾则返回 false
原文:Determine if this block represents the head of the bed
-
setHeadOfBed
public void setHeadOfBed(boolean isHeadOfBed) 已过时。设置此方块为床头或床尾。- 参数:
isHeadOfBed- 设为 true 则使其成为床头。原文:Configure this to be either the head or the foot of the bed
-
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
已过时。获取此床头的朝向方向。- 指定者:
getFacing在接口中Directional- 返回:
- 床头朝向的方向
原文:Get the direction that this bed's head is facing toward
-
toString
已过时。- 覆盖:
toString在类中MaterialData
-
clone
已过时。- 覆盖:
clone在类中MaterialData
-
BlockData。