Class Step

All Implemented Interfaces:
Cloneable

@Deprecated(since="1.13", forRemoval=true) public class Step extends TexturedMaterial
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 the different types of steps.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Step(Material type)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Step(Material type, byte data)
    Deprecated.
    Magic value
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected int
    Deprecated.
    Magic value
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieve a list of possible textures.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Test if step is inverted
    void
    setInverted(boolean inv)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Set step inverted state
    protected void
    setTextureIndex(int idx)
    Deprecated.
    Magic value
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class TexturedMaterial

    getMaterial, setMaterial

    Methods inherited from class Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Step

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

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

      @Deprecated(since="1.6.2") public Step(Material type, byte data)
      Deprecated.
      Magic value
      Parameters:
      type - the type
      data - the raw data value
  • Method Details

    • getTextures

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

      public boolean isInverted()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Test if step is inverted
      Returns:
      true if inverted (top half), false if normal (bottom half)
    • setInverted

      public void setInverted(boolean inv)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Set step inverted state
      Parameters:
      inv - - true if step is inverted (top half), false if step is normal (bottom half)
    • getTextureIndex

      @Deprecated(since="1.20.5") protected int getTextureIndex()
      Deprecated.
      Magic value
      Get material index from data
      Overrides:
      getTextureIndex in class TexturedMaterial
      Returns:
      index of data in textures list
    • setTextureIndex

      @Deprecated(since="1.6.2") protected void setTextureIndex(int idx)
      Deprecated.
      Magic value
      Set material index
      Overrides:
      setTextureIndex in class TexturedMaterial
      Parameters:
      idx - - index of data in textures list
    • clone

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

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