![]() |
Bukkit
1.4.7-R1.0
|
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< Material > | getTextures () |
| 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. | |
Represents textured materials like steps and smooth bricks.
Definition at line 10 of file TexturedMaterial.java.
| 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.
| TexturedMaterial org.bukkit.material.TexturedMaterial.clone | ( | ) |
Definition at line 85 of file TexturedMaterial.java.
References org.bukkit.material.TexturedMaterial.clone().
Referenced by org.bukkit.material.TexturedMaterial.clone().
| Material org.bukkit.material.TexturedMaterial.getMaterial | ( | ) |
Gets the current Material this block is made of.
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().
|
protected |
Get material index from data.
Definition at line 67 of file TexturedMaterial.java.
References org.bukkit.material.MaterialData.getData().
Referenced by org.bukkit.material.TexturedMaterial.getMaterial().
|
pure virtual |
Retrieve a list of possible textures.
The first element of the list will be used as a default.
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 | ) |
Sets the material this block is made of.
| material | New material of this block |
Definition at line 55 of file TexturedMaterial.java.
References org.bukkit.material.TexturedMaterial.getTextures(), and org.bukkit.material.TexturedMaterial.setTextureIndex().
Referenced by org.bukkit.material.MonsterEggs.MonsterEggs(), org.bukkit.material.SmoothBrick.SmoothBrick(), and org.bukkit.material.Step.Step().
|
protected |
Set material index.
| 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 | ( | ) |
Definition at line 80 of file TexturedMaterial.java.
References org.bukkit.material.TexturedMaterial.getMaterial().