类 Mushroom

所有已实现的接口:
Cloneable

@Deprecated public class Mushroom extends MaterialData
已过时。
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.
另请参阅:
  • 构造器详细资料

  • 方法详细资料

    • isStem

      public boolean isStem()
      已过时。
      返回:
      Whether this is a mushroom stem.
    • setStem

      @Deprecated public void setStem()
      Sets this to be a mushroom stem.
      另请参阅:
    • getBlockTexture

      public MushroomBlockTexture getBlockTexture()
      已过时。
      Gets the mushroom texture of this block.
      返回:
      The mushroom texture of this block
    • setBlockTexture

      public void setBlockTexture(MushroomBlockTexture texture)
      已过时。
      Sets the mushroom texture of this block.
      参数:
      texture - The mushroom texture to set
    • isFacePainted

      public boolean isFacePainted(BlockFace face)
      已过时。
      Checks whether a face of the block is painted with cap texture.
      参数:
      face - The face to check.
      返回:
      True if it is painted.
    • setFacePainted

      @Deprecated public void setFacePainted(BlockFace face, boolean painted)
      已过时。
      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.
      参数:
      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()
      已过时。
      返回:
      A set of all faces that are currently painted (an empty set if it is a stem)
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 MaterialData
    • clone

      public Mushroom clone()
      已过时。
      覆盖:
      clone 在类中 MaterialData