public class Mushroom extends MaterialData
Material.HUGE_MUSHROOM_1
,
Material.HUGE_MUSHROOM_2
Constructor and Description |
---|
Mushroom(int type,
byte data)
Deprecated.
Magic value
|
Mushroom(Material shroom)
Constructs a brown/red mushroom block with all sides set to pores.
|
Mushroom(Material shroom,
BlockFace capFace)
Constructs a brown/red mushroom cap block with the specified face or
faces set to cap texture.
|
Mushroom(Material shroom,
byte data)
Deprecated.
Magic value
|
Mushroom(Material shroom,
MushroomBlockTexture texture)
Constructs a brown/red mushroom block with the specified textures.
|
Modifier and Type | Method and Description |
---|---|
Mushroom |
clone() |
MushroomBlockTexture |
getBlockTexture()
Gets the mushroom texture of this block.
|
Set<BlockFace> |
getPaintedFaces() |
boolean |
isFacePainted(BlockFace face)
Checks whether a face of the block is painted with cap texture.
|
boolean |
isStem() |
void |
setBlockTexture(MushroomBlockTexture texture)
Sets the mushroom texture of this block.
|
void |
setFacePainted(BlockFace face,
boolean painted)
Deprecated.
Use MushroomBlockType cap options
|
void |
setStem()
|
String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
public Mushroom(Material shroom)
shroom
- A brown or red mushroom material type.Material.HUGE_MUSHROOM_1
,
Material.HUGE_MUSHROOM_2
public Mushroom(Material shroom, BlockFace capFace)
shroom
- A brown or red mushroom material type.capFace
- The face or faces to set to mushroom cap texture.Material.HUGE_MUSHROOM_1
,
Material.HUGE_MUSHROOM_2
,
BlockFace
public Mushroom(Material shroom, MushroomBlockTexture texture)
shroom
- A brown or red mushroom material type.texture
- The textured mushroom faces.Material.HUGE_MUSHROOM_1
,
Material.HUGE_MUSHROOM_2
@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()
@Deprecated public void setStem()
setBlockTexture(org.bukkit.material.types.MushroomBlockTexture)
with MushroomBlockTexture.STEM_SIDES
or
MushroomBlockTexture.ALL_STEM
public MushroomBlockTexture getBlockTexture()
public void setBlockTexture(MushroomBlockTexture texture)
texture
- The mushroom texture to setpublic boolean isFacePainted(BlockFace face)
face
- The face to check.@Deprecated 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 © 2017. All rights reserved.