类 TrapDoor
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.TrapDoor
- 所有已实现的接口:
Cloneable,Attachable,Directional,Openable
@Deprecated(since="1.14.1")
public class TrapDoor
extends SimpleAttachableMaterialData
implements Openable
已过时。
代表一个活板门。
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()已过时。已过时。获取此方块附着的面.boolean已过时。测试活板门是否倒置。booleanisOpen()已过时。检查门是否已打开.voidsetFacingDirection(BlockFace face) 已过时。设置此方块的朝向.voidsetInverted(boolean inv) 已过时。设置活板门的倒置状态。voidsetOpen(boolean isOpen) 已过时。设置此门为打开或关闭状态.toString()已过时。从类继承的方法 org.bukkit.material.SimpleAttachableMaterialData
getFacing从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
TrapDoor
public TrapDoor()已过时。 -
TrapDoor
已过时。 -
TrapDoor
已过时。魔法值原文:Magic value
- 参数:
type- 物品类型data- 原始数据值
-
-
方法详细资料
-
isOpen
public boolean isOpen()已过时。从接口复制的说明:Openable检查门是否已打开.原文: Check to see if the door is open.
-
setOpen
public void setOpen(boolean isOpen) 已过时。从接口复制的说明:Openable设置此门为打开或关闭状态.原文: Configure this door to be either open or closed;
-
isInverted
public boolean isInverted()已过时。测试活板门是否倒置。- 返回:
- 如果倒置(上半部分)则返回 true,如果正常(下半部分)则返回 false
原文:Test if trapdoor is inverted
-
setInverted
public void setInverted(boolean inv) 已过时。设置活板门的倒置状态。- 参数:
inv- - 如果倒置(上半部分)则为 true,如果正常(下半部分)则为 false原文:Set trapdoor inverted state
-
getAttachedFace
已过时。从接口复制的说明:Attachable获取此方块附着的面.原文: Gets the face that this block is attached on
- 指定者:
getAttachedFace在接口中Attachable- 返回:
- 附着的面
-
setFacingDirection
已过时。从接口复制的说明:Directional设置此方块的朝向.原文: Sets the direction that this block is facing in
- 指定者:
setFacingDirection在接口中Directional- 参数:
face- 朝向
-
toString
已过时。- 覆盖:
toString在类中SimpleAttachableMaterialData
-
clone
已过时。- 覆盖:
clone在类中SimpleAttachableMaterialData
-
BlockData。