Package org.bukkit.material
Class Mushroom
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Mushroom
- All Implemented Interfaces:
Cloneable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a huge mushroom block with certain combinations of faces set to
cap, pores or stem.
- See Also:
-
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Constructs a brown/red mushroom block with all sides set to pores.Deprecated.Magic valueDeprecated, for removal: This API element is subject to removal in a future version.Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.Mushroom
(Material shroom, MushroomBlockTexture texture) Deprecated, for removal: This API element is subject to removal in a future version.Constructs a brown/red mushroom block with the specified textures. -
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the mushroom texture of this block.Deprecated, for removal: This API element is subject to removal in a future version.boolean
isFacePainted
(BlockFace face) Deprecated, for removal: This API element is subject to removal in a future version.Checks whether a face of the block is painted with cap texture.boolean
isStem()
Deprecated, for removal: This API element is subject to removal in a future version.void
setBlockTexture
(MushroomBlockTexture texture) Deprecated, for removal: This API element is subject to removal in a future version.Sets the mushroom texture of this block.void
setFacePainted
(BlockFace face, boolean painted) Deprecated.Use MushroomBlockType cap optionsvoid
setStem()
toString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Mushroom
Deprecated, for removal: This API element is subject to removal in a future version.Constructs a brown/red mushroom block with all sides set to pores.- Parameters:
shroom
- A brown or red mushroom material type.- See Also:
-
Mushroom
Deprecated, for removal: This API element is subject to removal in a future version.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:
-
Mushroom
Deprecated, for removal: This API element is subject to removal in a future version.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:
-
Mushroom
Deprecated.Magic value- Parameters:
shroom
- the typedata
- the raw data value
-
-
Method Details
-
isStem
public boolean isStem()Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- Whether this is a mushroom stem.
-
setStem
Deprecated.Sets this to be a mushroom stem.- See Also:
-
getBlockTexture
Deprecated, for removal: This API element is subject to removal in a future version.Gets the mushroom texture of this block.- Returns:
- The mushroom texture of this block
-
setBlockTexture
Deprecated, for removal: This API element is subject to removal in a future version.Sets the mushroom texture of this block.- Parameters:
texture
- The mushroom texture to set
-
isFacePainted
Deprecated, for removal: This API element is subject to removal in a future version.Checks whether a face of the block is painted with cap texture.- Parameters:
face
- The face to check.- Returns:
- True if it is painted.
-
setFacePainted
Deprecated.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.
-
getPaintedFaces
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- A set of all faces that are currently painted (an empty set if it is a stem)
-
toString
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classMaterialData
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classMaterialData
-
BlockData
.