类 Step

所有已实现的接口:
Cloneable

@Deprecated(since="1.14.1") public class Step extends TexturedMaterial
已过时。
所有 MaterialData 的用法都已弃用并将被移除. 请使用 BlockData.
代表不同的台阶.
  • 构造器详细资料

    • Step

      public Step()
      已过时。
    • Step

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

      @Deprecated(since="1.6.2") public Step(Material type, byte data)
      已过时。
      不安全的参数
      参数:
      type - 材质类型
      data - 原始数据值
  • 方法详细资料

    • getTextures

      public List<Material> getTextures()
      已过时。
      从类复制的说明: TexturedMaterial
      检索可用纹理的列表。列表的第一个元素将用作默认值。
      指定者:
      getTextures 在类中 TexturedMaterial
      返回:
      此方块可用纹理的列表

      原文:Retrieve a list of possible textures. The first element of the list will be used as a default.

    • isInverted

      public boolean isInverted()
      已过时。
      检查此台阶是否被反转.

      原文:Test if step is inverted

      返回:
      上半台阶(反转的台阶)为true,普通台阶(底部台阶)为false
    • setInverted

      public void setInverted(boolean inv)
      已过时。
      设置台阶是否被反转.

      原文:Set step inverted state

      参数:
      inv - - 上半台阶(反转的台阶)为true,普通台阶(底部台阶)为false
    • getTextureIndex

      @Deprecated(since="1.20.5") protected int getTextureIndex()
      已过时。
      魔法值
      从数据中获取材质索引。
      覆盖:
      getTextureIndex 在类中 TexturedMaterial
      返回:
      数据在纹理列表中的索引
    • setTextureIndex

      @Deprecated(since="1.6.2") protected void setTextureIndex(int idx)
      已过时。
      魔法值
      设置材质索引。
      覆盖:
      setTextureIndex 在类中 TexturedMaterial
      参数:
      idx - - 数据在纹理列表中的索引
    • clone

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

      public String toString()
      已过时。
      覆盖:
      toString 在类中 TexturedMaterial