Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.material.Step Class Reference
Inheritance diagram for org.bukkit.material.Step:
org.bukkit.material.TexturedMaterial org.bukkit.material.MaterialData

Public Member Functions

 Step (final int type)
 
 Step (final Material type)
 
 Step (final int type, final byte data)
 
 Step (final Material type, final byte data)
 
List< MaterialgetTextures ()
 
boolean isInverted ()
 
void setInverted (boolean inv)
 
Step clone ()
 
String toString ()
 
- Public Member Functions inherited from org.bukkit.material.TexturedMaterial
 TexturedMaterial (Material m)
 
 TexturedMaterial (int type)
 
 TexturedMaterial (final int type, final byte data)
 
 TexturedMaterial (final Material type, final byte data)
 
abstract List< MaterialgetTextures ()
 
Material getMaterial ()
 
void setMaterial (Material material)
 
String toString ()
 
TexturedMaterial clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 
void setData (byte data)
 
Material getItemType ()
 
int getItemTypeId ()
 
ItemStack toItemStack ()
 
ItemStack toItemStack (int amount)
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Protected Member Functions

int getTextureIndex ()
 
void setTextureIndex (int idx)
 
- Protected Member Functions inherited from org.bukkit.material.TexturedMaterial
int getTextureIndex ()
 
void setTextureIndex (int idx)
 

Detailed Description

Represents the different types of steps.

Definition at line 11 of file Step.java.

Constructor & Destructor Documentation

org.bukkit.material.Step.Step ( final int  type)
Deprecated:
Magic value

Definition at line 33 of file Step.java.

33  {
34  super(type);
35  }
org.bukkit.material.Step.Step ( final int  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 49 of file Step.java.

49  {
50  super(type, data);
51  }
org.bukkit.material.Step.Step ( final Material  type,
final byte  data 
)
Deprecated:
Magic value

Definition at line 58 of file Step.java.

58  {
59  super(type, data);
60  }

Member Function Documentation

int org.bukkit.material.Step.getTextureIndex ( )
protected
Deprecated:
Magic value

Definition at line 96 of file Step.java.

References org.bukkit.material.MaterialData.getData().

96  {
97  return getData() & 0x7;
98  }
boolean org.bukkit.material.Step.isInverted ( )

Test if step is inverted

Returns
true if inverted (top half), false if normal (bottom half)

Definition at line 72 of file Step.java.

References org.bukkit.material.MaterialData.getData().

72  {
73  return ((getData() & 0x8) != 0);
74  }
void org.bukkit.material.Step.setInverted ( boolean  inv)

Set step inverted state

Parameters
inv- true if step is inverted (top half), false if step is normal (bottom half)

Definition at line 82 of file Step.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().

82  {
83  int dat = getData() & 0x7;
84  if (inv) {
85  dat |= 0x8;
86  }
87  setData((byte) dat);
88  }
void org.bukkit.material.Step.setTextureIndex ( int  idx)
protected
Deprecated:
Magic value

Definition at line 106 of file Step.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().

106  {
107  setData((byte) ((getData() & 0x8) | idx));
108  }

The documentation for this class was generated from the following file: