类 Gate

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

@Deprecated public class Gate extends MaterialData implements Directional, Openable
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents a fence gate
  • 构造器详细资料

    • Gate

      public Gate()
      已过时。
    • Gate

      @Deprecated public Gate(Material type, byte data)
      已过时。
      Magic value
      参数:
      type - the type
      data - the raw data value
    • Gate

      public Gate(byte data)
      已过时。
  • 方法详细资料

    • setFacingDirection

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

      public BlockFace getFacing()
      已过时。
      从接口复制的说明: Directional
      Gets the direction this block is facing
      指定者:
      getFacing 在接口中 Directional
      返回:
      the direction this block is facing
    • 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.
    • toString

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

      public Gate clone()
      已过时。
      覆盖:
      clone 在类中 MaterialData