Class TexturedMaterial

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.TexturedMaterial
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
MonsterEggs, SmoothBrick, Step

@Deprecated(forRemoval=true, since="1.13") public abstract class TexturedMaterial extends MaterialData
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents textured materials like steps and smooth bricks
  • Constructor Details

    • TexturedMaterial

      public TexturedMaterial(Material m)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • TexturedMaterial

      @Deprecated public TexturedMaterial(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • getTextures

      public abstract List<Material> getTextures()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retrieve a list of possible textures. The first element of the list will be used as a default.
      Returns:
      a list of possible textures for this block
    • getMaterial

      public Material getMaterial()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets the current Material this block is made of
      Returns:
      Material of this block
    • setMaterial

      public void setMaterial(Material material)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets the material this block is made of
      Parameters:
      material - New material of this block
    • getTextureIndex

      @Deprecated protected int getTextureIndex()
      Deprecated.
      Magic value
      Get material index from data
      Returns:
      index of data in textures list
    • setTextureIndex

      @Deprecated protected void setTextureIndex(int idx)
      Deprecated.
      Magic value
      Set material index
      Parameters:
      idx - - index of data in textures list
    • toString

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone

      public TexturedMaterial clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData