类 Bed
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Bed
- 所有已实现的接口:
Cloneable
,Directional
已过时。
Represents a bed.
-
构造器概要
-
方法概要
修饰符和类型方法说明clone()
已过时。已过时。Get the direction that this bed's head is facing towardboolean
已过时。Determine if this block represents the head of the bedvoid
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 bedtoString()
已过时。从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Bed
public Bed()已过时。Default constructor for a bed. -
Bed
已过时。Instantiate a bed facing in a particular direction.- 参数:
direction
- the direction the bed's head is facing
-
Bed
已过时。 -
Bed
已过时。Magic value- 参数:
type
- the typedata
- the raw data value
-
-
方法详细资料
-
isHeadOfBed
public boolean isHeadOfBed()已过时。Determine if this block represents the head of the bed- 返回:
- true if this is the head of the bed, false if it is the foot
-
setHeadOfBed
public void setHeadOfBed(boolean isHeadOfBed) 已过时。Configure this to be either the head or the foot of the bed- 参数:
isHeadOfBed
- True to make it the head.
-
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
- The facing direction
-
getFacing
已过时。Get the direction that this bed's head is facing toward- 指定者:
getFacing
在接口中Directional
- 返回:
- the direction the head of the bed is facing
-
toString
已过时。- 覆盖:
toString
在类中MaterialData
-
clone
已过时。- 覆盖:
clone
在类中MaterialData
-
BlockData
.