Package org.bukkit.material
Class Mushroom
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Mushroom
- All Implemented Interfaces:
- Cloneable
Deprecated.
Represents a huge mushroom block with certain combinations of faces set to
 cap, pores or stem.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionDeprecated.Constructs a brown/red mushroom block with all sides set to pores.Deprecated.Magic valueDeprecated.Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.Mushroom(Material shroom, MushroomBlockTexture texture) Deprecated.Constructs a brown/red mushroom block with the specified textures.
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Gets the mushroom texture of this block.Deprecated.booleanisFacePainted(BlockFace face) Deprecated.Checks whether a face of the block is painted with cap texture.booleanisStem()Deprecated.voidsetBlockTexture(MushroomBlockTexture texture) Deprecated.Sets the mushroom texture of this block.voidsetFacePainted(BlockFace face, boolean painted) Deprecated.Use MushroomBlockType cap optionsvoidsetStem()toString()Deprecated.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
MushroomDeprecated.Constructs a brown/red mushroom block with all sides set to pores.- Parameters:
- shroom- A brown or red mushroom material type.
- See Also:
 
- 
MushroomDeprecated.Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture. Setting any of the four sides will also set the top to cap. To set two side faces at once use e.g. north-west. Specify self to set all six faces at once.- Parameters:
- shroom- A brown or red mushroom material type.
- capFace- The face or faces to set to mushroom cap texture.
- See Also:
 
- 
MushroomDeprecated.Constructs a brown/red mushroom block with the specified textures.- Parameters:
- shroom- A brown or red mushroom material type.
- texture- The textured mushroom faces.
- See Also:
 
- 
MushroomDeprecated.Magic value- Parameters:
- shroom- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isStempublic boolean isStem()Deprecated.- Returns:
- Whether this is a mushroom stem.
 
- 
setStemDeprecated.Sets this to be a mushroom stem.- See Also:
 
- 
getBlockTextureDeprecated.Gets the mushroom texture of this block.- Returns:
- The mushroom texture of this block
 
- 
setBlockTextureDeprecated.Sets the mushroom texture of this block.- Parameters:
- texture- The mushroom texture to set
 
- 
isFacePaintedDeprecated.Checks whether a face of the block is painted with cap texture.- Parameters:
- face- The face to check.
- Returns:
- True if it is painted.
 
- 
setFacePaintedDeprecated.Use MushroomBlockType cap optionsSet 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.
 
- 
getPaintedFacesDeprecated.- Returns:
- A set of all faces that are currently painted (an empty set if it is a stem)
 
- 
toStringDeprecated.- Overrides:
- toStringin class- MaterialData
 
- 
cloneDeprecated.- Overrides:
- clonein class- MaterialData
 
 
- 
BlockData.