Package org.bukkit.material
Class Step
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.TexturedMaterial
org.bukkit.material.Step
- All Implemented Interfaces:
Cloneable
@Deprecated public class Step extends TexturedMaterial
Deprecated.
all usage of MaterialData is deprecated and subject to removal.
Use
BlockData.Represents the different types of steps.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Stepclone()Deprecated.protected intgetTextureIndex()Deprecated.Magic valueList<Material>getTextures()Deprecated.Retrieve a list of possible textures.booleanisInverted()Deprecated.Test if step is invertedvoidsetInverted(boolean inv)Deprecated.Set step inverted stateprotected voidsetTextureIndex(int idx)Deprecated.Magic valueStringtoString()Deprecated.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Method Details
-
getTextures
Deprecated.Description copied from class:TexturedMaterialRetrieve a list of possible textures. The first element of the list will be used as a default.- Specified by:
getTexturesin classTexturedMaterial- Returns:
- a list of possible textures for this block
-
isInverted
public boolean isInverted()Deprecated.Test if step is inverted- Returns:
- true if inverted (top half), false if normal (bottom half)
-
setInverted
public void setInverted(boolean inv)Deprecated.Set step inverted state- Parameters:
inv- - true if step is inverted (top half), false if step is normal (bottom half)
-
getTextureIndex
protected int getTextureIndex()Deprecated.Magic valueGet material index from data- Overrides:
getTextureIndexin classTexturedMaterial- Returns:
- index of data in textures list
-
setTextureIndex
Deprecated.Magic valueSet material index- Overrides:
setTextureIndexin classTexturedMaterial- Parameters:
idx- - index of data in textures list
-
clone
Deprecated.- Overrides:
clonein classTexturedMaterial
-
toString
Deprecated.- Overrides:
toStringin classTexturedMaterial
-