类 TexturedMaterial

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.TexturedMaterial
所有已实现的接口:
Cloneable
直接已知子类:
MonsterEggs, SmoothBrick, Step

@Deprecated(since="1.14.1") public abstract class TexturedMaterial extends MaterialData
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
代表带有纹理的材质,如台阶和平滑砖。
  • 构造器详细资料

    • TexturedMaterial

      public TexturedMaterial(Material m)
      已过时。
    • TexturedMaterial

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

      原文:Magic value

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

    • getTextures

      public abstract List<Material> getTextures()
      已过时。
      检索可用纹理的列表。列表的第一个元素将用作默认值。
      返回:
      此方块可用纹理的列表

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

    • getMaterial

      public Material getMaterial()
      已过时。
      获取此方块当前构成的材质。
      返回:
      此方块的 Material

      原文:Gets the current Material this block is made of

    • setMaterial

      public void setMaterial(Material material)
      已过时。
      设置此方块构成的材质。
      参数:
      material - 此方块的新材质

      原文:Sets the material this block is made of

    • getTextureIndex

      @Deprecated(since="1.6.2") protected int getTextureIndex()
      已过时。
      魔法值

      原文:Get material index from data

      原文:Magic value

      从数据中获取材质索引。
      返回:
      数据在纹理列表中的索引
    • setTextureIndex

      @Deprecated(since="1.6.2") protected void setTextureIndex(int idx)
      已过时。
      魔法值

      原文:Set material index

      原文:Magic value

      设置材质索引。
      参数:
      idx - - 数据在纹理列表中的索引
    • toString

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

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