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, for removal: This API element is subject to removal in a future version.
Represents the different types of steps.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.protected int
Deprecated.Magic valueDeprecated, 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 invertedvoid
setInverted
(boolean inv) Deprecated, for removal: This API element is subject to removal in a future version.Set step inverted stateprotected void
setTextureIndex
(int idx) Deprecated.Magic valuetoString()
Deprecated, for removal: This API element is subject to removal in a future version.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 Details
-
Step
public Step()Deprecated, for removal: This API element is subject to removal in a future version. -
Step
Deprecated, for removal: This API element is subject to removal in a future version. -
Step
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
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 classTexturedMaterial
- 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.Magic valueGet material index from data- Overrides:
getTextureIndex
in classTexturedMaterial
- Returns:
- index of data in textures list
-
setTextureIndex
Deprecated.Magic valueSet material index- Overrides:
setTextureIndex
in classTexturedMaterial
- Parameters:
idx
- - index of data in textures list
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classTexturedMaterial
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classTexturedMaterial
-
BlockData
.