类 Ladder

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

public class Ladder extends SimpleAttachableMaterialData
代表梯子
  • 构造器详细资料

    • Ladder

      public Ladder()
    • Ladder

      @Deprecated public Ladder(int type)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
    • Ladder

      public Ladder(Material type)
    • Ladder

      @Deprecated public Ladder(int type, byte data)
      已过时。
      不安全的参数
      参数:
      type - the raw type id
      data - the raw data value
    • Ladder

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

    • getAttachedFace

      public BlockFace getAttachedFace()
      获取这个方块附着的方向.

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

      返回:
      附着的方向
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      设置这个梯子的朝向.

      原文:Sets the direction this ladder is facing

      参数:
      face - 这个方块的朝向
    • clone

      public Ladder clone()
      覆盖:
      clone 在类中 SimpleAttachableMaterialData