类 Stairs

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

@Deprecated(since="1.14.1") public class Stairs extends MaterialData implements Directional
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表楼梯。
  • 构造器详细资料

    • Stairs

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

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

      原文:Magic value

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

    • getAscendingDirection

      public BlockFace getAscendingDirection()
      已过时。
      返回:
      楼梯上升朝向的方向

      原文:the direction the stairs ascend towards

    • getDescendingDirection

      public BlockFace getDescendingDirection()
      已过时。
      返回:
      楼梯下降朝向的方向

      原文:the direction the stairs descend towards

    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      设置方块楼梯部分朝向的方向。

      原文:Set the direction the stair part of the block is facing

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

      public BlockFace getFacing()
      已过时。
      从接口复制的说明: Directional
      获取此方块的朝向.

      原文: Gets the direction this block is facing

      指定者:
      getFacing 在接口中 Directional
      返回:
      方块楼梯部分朝向的方向

      原文:the direction the stair part of the block is facing

    • isInverted

      public boolean isInverted()
      已过时。
      测试台阶是否倒置。
      返回:
      如果倒置(上半部分)则返回 true,如果正常(下半部分)则返回 false

      原文:Test if step is inverted

    • setInverted

      public void setInverted(boolean inv)
      已过时。
      设置台阶的倒置状态。
      参数:
      inv - - 如果台阶倒置(上半部分)则为 true,如果台阶正常(下半部分)则为 false

      原文:Set step inverted state

    • toString

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

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