org.bukkit.material
Class Mushroom
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Mushroom
- All Implemented Interfaces:
- Cloneable
public class Mushroom
- extends MaterialData
Represents a huge mushroom block
Mushroom
public Mushroom(Material shroom)
Mushroom
public Mushroom(Material shroom,
byte data)
Mushroom
public Mushroom(int type,
byte data)
isStem
public boolean isStem()
- Returns:
- Whether this is a mushroom stem.
setStem
public void setStem()
- Sets this to be a mushroom stem.
isFacePainted
public boolean isFacePainted(BlockFace face)
- Checks whether a face of the block is painted.
- Parameters:
face
- The face to check.
- Returns:
- True if it is painted.
setFacePainted
public void 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:
face
- The face to paint or unpaint.painted
- True if you want to paint it, false if you want the pores to show.
getPaintedFaces
public Set<BlockFace> getPaintedFaces()
- Returns:
- A set of all faces that are currently painted (an empty set if it is a stem)
toString
public String toString()
- Overrides:
toString
in class MaterialData
clone
public Mushroom clone()
- Overrides:
clone
in class MaterialData
Copyright © 2013. All Rights Reserved.