Package org.bukkit.material
Class Step
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.TexturedMaterial
org.bukkit.material.Step
- All Implemented Interfaces:
java.lang.Cloneable
public class Step extends TexturedMaterial
Represents the different types of steps.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Stepclone()protected intgetTextureIndex()Deprecated.Magic valuejava.util.List<Material>getTextures()Retrieve a list of possible textures.booleanisInverted()Test if step is invertedvoidsetInverted(boolean inv)Set step inverted stateprotected voidsetTextureIndex(int idx)Deprecated.Magic valuejava.lang.StringtoString()Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Step
public Step() -
Step
@Deprecated public Step(int type)Deprecated.Magic value- Parameters:
type- the raw type id
-
Step
-
Step
@Deprecated public Step(int type, byte data)Deprecated.Magic value- Parameters:
type- the raw type iddata- the raw data value
-
Step
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Details
-
getTextures
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()Test if step is inverted- Returns:
- true if inverted (top half), false if normal (bottom half)
-
setInverted
public void setInverted(boolean inv)Set step inverted state- Parameters:
inv- - true if step is inverted (top half), false if step is normal (bottom half)
-
getTextureIndex
@Deprecated protected int getTextureIndex()Deprecated.Magic valueDescription copied from class:TexturedMaterialGet material index from data- Overrides:
getTextureIndexin classTexturedMaterial- Returns:
- index of data in textures list
-
setTextureIndex
@Deprecated protected void setTextureIndex(int idx)Deprecated.Magic valueDescription copied from class:TexturedMaterialSet material index- Overrides:
setTextureIndexin classTexturedMaterial- Parameters:
idx- - index of data in textures list
-
clone
- Overrides:
clonein classTexturedMaterial
-
toString
public java.lang.String toString()- Overrides:
toStringin classTexturedMaterial
-