|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.material.MaterialData org.bukkit.material.Mushroom
public class Mushroom
Represents a huge mushroom block
Constructor Summary | |
---|---|
Mushroom(int type,
byte data)
Deprecated. Magic value |
|
Mushroom(Material shroom)
|
|
Mushroom(Material shroom,
byte data)
Deprecated. Magic value |
Method Summary | |
---|---|
Mushroom |
clone()
|
Set<BlockFace> |
getPaintedFaces()
|
boolean |
isFacePainted(BlockFace face)
Checks whether a face of the block is painted. |
boolean |
isStem()
|
void |
setFacePainted(BlockFace face,
boolean painted)
Set a face of the block to be painted or not. |
void |
setStem()
Sets this to be a mushroom stem. |
String |
toString()
|
Methods inherited from class org.bukkit.material.MaterialData |
---|
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mushroom(Material shroom)
@Deprecated public Mushroom(Material shroom, byte data)
@Deprecated public Mushroom(int type, byte data)
Method Detail |
---|
public boolean isStem()
public void setStem()
public boolean isFacePainted(BlockFace face)
face
- The face to check.
public void setFacePainted(BlockFace face, boolean painted)
face
- The face to paint or unpaint.painted
- True if you want to paint it, false if you want the pores to show.public Set<BlockFace> getPaintedFaces()
public String toString()
toString
in class MaterialData
public Mushroom clone()
clone
in class MaterialData
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |