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

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< BlockFacegetPaintedFaces ()
 
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 ()
 

Detailed Description

Represents a huge mushroom block.

Definition at line 13 of file Mushroom.java.

Constructor & Destructor Documentation

org.bukkit.material.Mushroom.Mushroom ( Material  shroom)
org.bukkit.material.Mushroom.Mushroom ( Material  shroom,
byte  data 
)
org.bukkit.material.Mushroom.Mushroom ( int  type,
byte  data 
)

Member Function Documentation

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 ( )
boolean org.bukkit.material.Mushroom.isFacePainted ( BlockFace  face)

Checks whether a face of the block is painted.

Parameters
faceThe face to check.
Returns
True if it is painted.

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 ( )
Returns
Whether this is a mushroom stem.

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.

Parameters
faceThe face to paint or unpaint.
paintedTrue 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().


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