Class Mushroom

All Implemented Interfaces:
Cloneable

@Deprecated(since="1.13", forRemoval=true) public class Mushroom extends MaterialData
Deprecated, for removal: This API element is subject to removal in a future version.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents a huge mushroom block with certain combinations of faces set to cap, pores or stem.
See Also:
  • Constructor Details Link icon

    • Mushroom Link icon

      public Mushroom(Material shroom)
      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 Link icon

      public Mushroom(Material shroom, BlockFace capFace)
      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 Link icon

      public 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.
      Parameters:
      shroom - A brown or red mushroom material type.
      texture - The textured mushroom faces.
      See Also:
    • Mushroom Link icon

      @Deprecated(since="1.6.2") public Mushroom(Material shroom, byte data)
      Deprecated.
      Magic value
      Parameters:
      shroom - the type
      data - the raw data value
  • Method Details Link icon

    • isStem Link icon

      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 Link icon

      @Deprecated(since="1.9") public void setStem()
      Sets this to be a mushroom stem.
      See Also:
    • getBlockTexture Link icon

      public MushroomBlockTexture 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 Link icon

      public 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.
      Parameters:
      texture - The mushroom texture to set
    • isFacePainted Link icon

      public 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.
      Parameters:
      face - The face to check.
      Returns:
      True if it is painted.
    • setFacePainted Link icon

      @Deprecated(since="1.9") public void setFacePainted(BlockFace face, boolean painted)
      Deprecated.
      Use MushroomBlockType cap options
      Set 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 Link icon

      public Set<BlockFace> 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 Link icon

      public String toString()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      toString in class MaterialData
    • clone Link icon

      public Mushroom clone()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      clone in class MaterialData