类 TrapDoor

所有已实现的接口:
Cloneable, Attachable, Directional, Openable

@Deprecated(since="1.14.1") public class TrapDoor extends SimpleAttachableMaterialData implements Openable
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表一个活板门。
  • 构造器详细资料

    • TrapDoor

      public TrapDoor()
      已过时。
    • TrapDoor

      public TrapDoor(Material type)
      已过时。
    • TrapDoor

      @Deprecated(since="1.6.2") public TrapDoor(Material type, byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      type - 物品类型
      data - 原始数据值
  • 方法详细资料

    • isOpen

      public boolean isOpen()
      已过时。
      从接口复制的说明: Openable
      检查门是否已打开.

      原文: Check to see if the door is open.

      指定者:
      isOpen 在接口中 Openable
      返回:
      如果门已逆时针旋转打开则返回true
    • setOpen

      public void setOpen(boolean isOpen)
      已过时。
      从接口复制的说明: Openable
      设置此门为打开或关闭状态.

      原文: Configure this door to be either open or closed;

      指定者:
      setOpen 在接口中 Openable
      参数:
      isOpen - 设为true以打开门.
    • 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

      public BlockFace getAttachedFace()
      已过时。
      从接口复制的说明: Attachable
      获取此方块附着的面.

      原文: Gets the face that this block is attached on

      指定者:
      getAttachedFace 在接口中 Attachable
      返回:
      附着的面
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      从接口复制的说明: Directional
      设置此方块的朝向.

      原文: Sets the direction that this block is facing in

      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - 朝向
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 SimpleAttachableMaterialData
    • clone

      public TrapDoor clone()
      已过时。
      覆盖:
      clone 在类中 SimpleAttachableMaterialData