Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.TexturedMaterial Class Referenceabstract

Represents textured materials like steps and smooth bricks. More...

+ Inheritance diagram for org.bukkit.material.TexturedMaterial:
+ Collaboration diagram for org.bukkit.material.TexturedMaterial:

Public Member Functions

 TexturedMaterial (Material m)
 
 TexturedMaterial (int type)
 
 TexturedMaterial (final int type, final byte data)
 
 TexturedMaterial (final Material type, final byte data)
 
abstract List< MaterialgetTextures ()
 Retrieve a list of possible textures.
 
Material getMaterial ()
 Gets the current Material this block is made of.
 
void setMaterial (Material material)
 Sets the material this block is made of.
 
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 ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 

Protected Member Functions

int getTextureIndex ()
 Get material index from data.
 
void setTextureIndex (int idx)
 Set material index.
 

Detailed Description

Represents textured materials like steps and smooth bricks.

Definition at line 10 of file TexturedMaterial.java.

Constructor & Destructor Documentation

org.bukkit.material.TexturedMaterial.TexturedMaterial ( Material  m)

Definition at line 12 of file TexturedMaterial.java.

org.bukkit.material.TexturedMaterial.TexturedMaterial ( int  type)

Definition at line 16 of file TexturedMaterial.java.

org.bukkit.material.TexturedMaterial.TexturedMaterial ( final int  type,
final byte  data 
)

Definition at line 20 of file TexturedMaterial.java.

org.bukkit.material.TexturedMaterial.TexturedMaterial ( final Material  type,
final byte  data 
)

Definition at line 24 of file TexturedMaterial.java.

Member Function Documentation

TexturedMaterial org.bukkit.material.TexturedMaterial.clone ( )
Material org.bukkit.material.TexturedMaterial.getMaterial ( )

Gets the current Material this block is made of.

Returns
Material of this block

Definition at line 40 of file TexturedMaterial.java.

References org.bukkit.material.TexturedMaterial.getTextureIndex(), and org.bukkit.material.TexturedMaterial.getTextures().

Referenced by org.bukkit.material.TexturedMaterial.toString().

int org.bukkit.material.TexturedMaterial.getTextureIndex ( )
protected

Get material index from data.

Returns
index of data in textures list

Definition at line 67 of file TexturedMaterial.java.

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

Referenced by org.bukkit.material.TexturedMaterial.getMaterial().

abstract List<Material> org.bukkit.material.TexturedMaterial.getTextures ( )
pure virtual

Retrieve a list of possible textures.

The first element of the list will be used as a default.

Returns
a list of possible textures for this block

Implemented in org.bukkit.material.Step, org.bukkit.material.SmoothBrick, and org.bukkit.material.MonsterEggs.

Referenced by org.bukkit.material.TexturedMaterial.getMaterial(), and org.bukkit.material.TexturedMaterial.setMaterial().

void org.bukkit.material.TexturedMaterial.setMaterial ( Material  material)
void org.bukkit.material.TexturedMaterial.setTextureIndex ( int  idx)
protected

Set material index.

Parameters
idx- index of data in textures list

Definition at line 75 of file TexturedMaterial.java.

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

Referenced by org.bukkit.material.TexturedMaterial.setMaterial().

String org.bukkit.material.TexturedMaterial.toString ( )

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