![]() |
Bukkit
1.4.7-R1.0
|
Represents a huge mushroom block. More...
Inheritance diagram for org.bukkit.material.Mushroom:
Collaboration diagram for org.bukkit.material.Mushroom:Public Member Functions | |
| Mushroom (Material shroom) | |
| Mushroom (Material shroom, byte data) | |
| Mushroom (int type, byte data) | |
| boolean | isStem () |
| void | setStem () |
| Sets this to be a mushroom stem. | |
| boolean | isFacePainted (BlockFace face) |
| Checks whether a face of the block is painted. | |
| void | setFacePainted (BlockFace face, boolean painted) |
| Set a face of the block to be painted or not. | |
| Set< BlockFace > | getPaintedFaces () |
| String | toString () |
| Mushroom | 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 () |
Represents a huge mushroom block.
Definition at line 13 of file Mushroom.java.
| org.bukkit.material.Mushroom.Mushroom | ( | Material | shroom | ) |
Definition at line 24 of file Mushroom.java.
References org.bukkit.Material.HUGE_MUSHROOM_1, and org.bukkit.Material.HUGE_MUSHROOM_2.
| org.bukkit.material.Mushroom.Mushroom | ( | Material | shroom, |
| byte | data | ||
| ) |
Definition at line 29 of file Mushroom.java.
References org.bukkit.Material.HUGE_MUSHROOM_1, and org.bukkit.Material.HUGE_MUSHROOM_2.
| org.bukkit.material.Mushroom.Mushroom | ( | int | type, |
| byte | data | ||
| ) |
Definition at line 34 of file Mushroom.java.
References org.bukkit.Material.HUGE_MUSHROOM_1, and org.bukkit.Material.HUGE_MUSHROOM_2.
| Mushroom org.bukkit.material.Mushroom.clone | ( | ) |
Definition at line 179 of file Mushroom.java.
References org.bukkit.material.Mushroom.clone().
Referenced by org.bukkit.material.Mushroom.clone().
| Set<BlockFace> org.bukkit.material.Mushroom.getPaintedFaces | ( | ) |
Definition at line 147 of file Mushroom.java.
References org.bukkit.block.BlockFace.EAST, org.bukkit.material.Mushroom.isFacePainted(), org.bukkit.block.BlockFace.NORTH, org.bukkit.block.BlockFace.SOUTH, org.bukkit.block.BlockFace.UP, and org.bukkit.block.BlockFace.WEST.
Referenced by org.bukkit.material.Mushroom.toString().
| boolean org.bukkit.material.Mushroom.isFacePainted | ( | BlockFace | face | ) |
Checks whether a face of the block is painted.
| face | The face to check. |
Definition at line 58 of file Mushroom.java.
References org.bukkit.material.MaterialData.getData().
Referenced by org.bukkit.material.Mushroom.getPaintedFaces(), and org.bukkit.material.Mushroom.setFacePainted().
| boolean org.bukkit.material.Mushroom.isStem | ( | ) |
Definition at line 42 of file Mushroom.java.
References org.bukkit.material.MaterialData.getData().
Referenced by org.bukkit.material.Mushroom.toString().
| void org.bukkit.material.Mushroom.setFacePainted | ( | BlockFace | face, |
| boolean | painted | ||
| ) |
Set a face of the block to be painted or not.
Note that due to the nature of how the data is stored, setting a face painted or not is not guaranteed to leave the other faces unchanged.
| face | The face to paint or unpaint. |
| painted | True if you want to paint it, false if you want the pores to show. |
Definition at line 87 of file Mushroom.java.
References org.bukkit.material.MaterialData.getData(), org.bukkit.material.Mushroom.isFacePainted(), and org.bukkit.material.MaterialData.setData().
| void org.bukkit.material.Mushroom.setStem | ( | ) |
Sets this to be a mushroom stem.
Definition at line 49 of file Mushroom.java.
References org.bukkit.material.MaterialData.setData().
| String org.bukkit.material.Mushroom.toString | ( | ) |
Definition at line 174 of file Mushroom.java.
References org.bukkit.material.MaterialData.getItemTypeId(), org.bukkit.Material.getMaterial(), org.bukkit.material.Mushroom.getPaintedFaces(), and org.bukkit.material.Mushroom.isStem().