public class Mushroom extends MaterialData
Constructor and Description |
---|
Mushroom(int type,
byte data)
Deprecated.
Magic value
|
Mushroom(Material shroom) |
Mushroom(Material shroom,
byte data)
Deprecated.
Magic value
|
Modifier and Type | Method and Description |
---|---|
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() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Mushroom(Material shroom)
@Deprecated public Mushroom(Material shroom, byte data)
shroom
- the typedata
- the raw data value@Deprecated public Mushroom(int type, byte data)
type
- the raw type iddata
- the raw data valuepublic 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
Copyright © 2022. All rights reserved.