Class Mushroom

All Implemented Interfaces:
Cloneable

@Deprecated public class Mushroom extends MaterialData
Deprecated.
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:
Material.LEGACY_HUGE_MUSHROOM_1, Material.LEGACY_HUGE_MUSHROOM_2
  • Constructor Details

  • Method Details

    • isStem

      public boolean isStem()
      Deprecated.
      Returns:
      Whether this is a mushroom stem.
    • setStem

      @Deprecated public void setStem()
      Sets this to be a mushroom stem.
      See Also:
      MushroomBlockTexture.STEM_SIDES, MushroomBlockTexture.ALL_STEM
    • getBlockTexture

      public MushroomBlockTexture getBlockTexture()
      Deprecated.
      Gets the mushroom texture of this block.
      Returns:
      The mushroom texture of this block
    • setBlockTexture

      public void setBlockTexture(MushroomBlockTexture texture)
      Deprecated.
      Sets the mushroom texture of this block.
      Parameters:
      texture - The mushroom texture to set
    • isFacePainted

      public boolean isFacePainted(BlockFace face)
      Deprecated.
      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 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

      public Set<BlockFace> getPaintedFaces()
      Deprecated.
      Returns:
      A set of all faces that are currently painted (an empty set if it is a stem)
    • toString

      public String toString()
      Deprecated.
      Overrides:
      toString in class MaterialData
    • clone

      public Mushroom clone()
      Deprecated.
      Overrides:
      clone in class MaterialData