类 TrapDoor

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

@Deprecated public class TrapDoor extends SimpleAttachableMaterialData implements Openable
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents a trap door
  • 构造器详细资料

    • TrapDoor

      public TrapDoor()
      已过时。
    • TrapDoor

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

      @Deprecated public TrapDoor(Material type, byte data)
      已过时。
      Magic value
      参数:
      type - the type
      data - the raw data value
  • 方法详细资料

    • isOpen

      public boolean isOpen()
      已过时。
      从接口复制的说明: Openable
      Check to see if the door is open.
      指定者:
      isOpen 在接口中 Openable
      返回:
      true if the door has swung counterclockwise around its hinge.
    • setOpen

      public void setOpen(boolean isOpen)
      已过时。
      从接口复制的说明: Openable
      Configure this door to be either open or closed;
      指定者:
      setOpen 在接口中 Openable
      参数:
      isOpen - True to open the door.
    • isInverted

      public boolean isInverted()
      已过时。
      Test if trapdoor is inverted
      返回:
      true if inverted (top half), false if normal (bottom half)
    • setInverted

      public void setInverted(boolean inv)
      已过时。
      Set trapdoor inverted state
      参数:
      inv - - true if inverted (top half), false if normal (bottom half)
    • getAttachedFace

      public BlockFace getAttachedFace()
      已过时。
      从接口复制的说明: Attachable
      Gets the face that this block is attached on
      指定者:
      getAttachedFace 在接口中 Attachable
      返回:
      BlockFace attached to
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      从接口复制的说明: Directional
      Sets the direction that this block is facing in
      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - The facing direction
    • toString

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

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