public class Mushroom extends MaterialData
| Constructor and Description | 
|---|
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, hashCode, setData, toItemStack, toItemStackpublic Mushroom(Material shroom)
shroom - A brown or red mushroom material type.Material.LEGACY_HUGE_MUSHROOM_1, 
Material.LEGACY_HUGE_MUSHROOM_2public 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.LEGACY_HUGE_MUSHROOM_1, 
Material.LEGACY_HUGE_MUSHROOM_2, 
BlockFacepublic Mushroom(Material shroom, MushroomBlockTexture texture)
shroom - A brown or red mushroom material type.texture - The textured mushroom faces.Material.LEGACY_HUGE_MUSHROOM_1, 
Material.LEGACY_HUGE_MUSHROOM_2@Deprecated public Mushroom(Material shroom, byte data)
shroom - the typedata - the raw data valuepublic boolean isStem()
@Deprecated public void setStem()
setBlockTexture(org.bukkit.material.types.MushroomBlockTexture)
 with MushroomBlockTexture.STEM_SIDES or
 MushroomBlockTexture.ALL_STEMpublic 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 MaterialDatapublic Mushroom clone()
clone in class MaterialDataCopyright © 2022. All rights reserved.