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. UseBlockData
.Represents the different types of steps.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Step
clone()
Deprecated.protected int
getTextureIndex()
Deprecated.Magic valueList<Material>
getTextures()
Deprecated.Retrieve a list of possible textures.boolean
isInverted()
Deprecated.Test if step is invertedvoid
setInverted(boolean inv)
Deprecated.Set step inverted stateprotected void
setTextureIndex(int idx)
Deprecated.Magic valueString
toString()
Deprecated.-
Methods inherited from class org.bukkit.material.TexturedMaterial
getMaterial, setMaterial
-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Step
public Step()
Deprecated.
-
Step
public Step(Material type)
Deprecated.
-
Step
@Deprecated public Step(Material type, byte data)
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Detail
-
getTextures
public List<Material> getTextures()
Deprecated.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 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
@Deprecated protected int getTextureIndex()
Deprecated.Magic valueDescription copied from class:TexturedMaterial
Get material index from data- Overrides:
getTextureIndex
in classTexturedMaterial
- Returns:
- index of data in textures list
-
setTextureIndex
@Deprecated protected void setTextureIndex(int idx)
Deprecated.Magic valueDescription copied from class:TexturedMaterial
Set material index- Overrides:
setTextureIndex
in classTexturedMaterial
- Parameters:
idx
- - index of data in textures list
-
clone
public Step clone()
Deprecated.- Overrides:
clone
in classTexturedMaterial
-
toString
public String toString()
Deprecated.- Overrides:
toString
in classTexturedMaterial
-
-