类 TexturedMaterial

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

@Deprecated public abstract class TexturedMaterial extends MaterialData
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents textured materials like steps and smooth bricks
  • 构造器详细资料

    • TexturedMaterial

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

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

    • getTextures

      public abstract List<Material> getTextures()
      已过时。
      Retrieve a list of possible textures. The first element of the list will be used as a default.
      返回:
      a list of possible textures for this block
    • getMaterial

      public Material getMaterial()
      已过时。
      Gets the current Material this block is made of
      返回:
      Material of this block
    • setMaterial

      public void setMaterial(Material material)
      已过时。
      Sets the material this block is made of
      参数:
      material - New material of this block
    • getTextureIndex

      @Deprecated protected int getTextureIndex()
      已过时。
      Magic value
      Get material index from data
      返回:
      index of data in textures list
    • setTextureIndex

      @Deprecated protected void setTextureIndex(int idx)
      已过时。
      Magic value
      Set material index
      参数:
      idx - - index of data in textures list
    • toString

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

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