org.bukkit.material
Class Step

java.lang.Object
  extended by org.bukkit.material.MaterialData
      extended by org.bukkit.material.TexturedMaterial
          extended by org.bukkit.material.Step
All Implemented Interfaces:
Cloneable

public class Step
extends TexturedMaterial

Represents the different types of steps.


Constructor Summary
Step()
           
Step(int type)
           
Step(int type, byte data)
           
Step(Material type)
           
Step(Material type, byte data)
           
 
Method Summary
 Step clone()
           
protected  int getTextureIndex()
          Get material index from data
 List<Material> getTextures()
          Retrieve a list of possible textures.
 boolean isInverted()
          Test if step is inverted
 void setInverted(boolean inv)
          Set step inverted state
protected  void setTextureIndex(int idx)
          Set material index
 String toString()
           
 
Methods inherited from class org.bukkit.material.TexturedMaterial
getMaterial, setMaterial
 
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Step

public Step()

Step

public Step(int type)

Step

public Step(Material type)

Step

public Step(int type,
            byte data)

Step

public Step(Material type,
            byte data)
Method Detail

getTextures

public List<Material> getTextures()
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()
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

protected int getTextureIndex()
Description copied from class: TexturedMaterial
Get material index from data

Overrides:
getTextureIndex in class TexturedMaterial
Returns:
index of data in textures list

setTextureIndex

protected void setTextureIndex(int idx)
Description copied from class: TexturedMaterial
Set material index

Overrides:
setTextureIndex in class TexturedMaterial
Parameters:
idx - - index of data in textures list

clone

public Step clone()
Overrides:
clone in class TexturedMaterial

toString

public String toString()
Overrides:
toString in class TexturedMaterial


Copyright © 2013. All Rights Reserved.