程序包 org.bukkit.material

# 类 Mushroom

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.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.

另请参阅:
  - `Material.LEGACY_HUGE_MUSHROOM_1`
  - `Material.LEGACY_HUGE_MUSHROOM_2`

- ## 构造器概要

  构造器
  构造器
  说明
  `Mushroom(Material shroom)`
  已过时。
  Constructs a brown/red mushroom block with all sides set to pores.
  `Mushroom(Material shroom, byte data)`
  已过时。
  Magic value
  `Mushroom(Material shroom, BlockFace capFace)`
  已过时。
  Constructs a brown/red mushroom cap block with the specified face or faces set to cap texture.
  `Mushroom(Material shroom, MushroomBlockTexture texture)`
  已过时。
  Constructs a brown/red mushroom block with the specified textures.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `Mushroom`
  `clone()`
  已过时。
  `MushroomBlockTexture`
  `getBlockTexture()`
  已过时。
  Gets the mushroom texture of this block.
  `Set<BlockFace>`
  `getPaintedFaces()`
  已过时。
  `boolean`
  `isFacePainted(BlockFace face)`
  已过时。
  Checks whether a face of the block is painted with cap texture.
  `boolean`
  `isStem()`
  已过时。
  `void`
  `setBlockTexture(MushroomBlockTexture texture)`
  已过时。
  Sets the mushroom texture of this block.
  `void`
  `setFacePainted(BlockFace face, boolean painted)`
  已过时。
  Use MushroomBlockType cap options
  `void`
  `setStem()`
  已过时。
  Use `setBlockTexture(org.bukkit.material.types.MushroomBlockTexture)` with `MushroomBlockTexture.STEM_SIDES` or `MushroomBlockTexture.ALL_STEM`
  `String`
  `toString()`
  已过时。

  ### 从类继承的方法 org.bukkit.material.MaterialData

  `equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack`

  ### 从类继承的方法 java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 构造器详细资料

  - ### Mushroom

    public Mushroom(Material shroom)
    已过时。
    Constructs a brown/red mushroom block with all sides set to pores.
    参数:
      `shroom` - A brown or red mushroom material type.
    另请参阅:
      - `Material.LEGACY_HUGE_MUSHROOM_1`
      - `Material.LEGACY_HUGE_MUSHROOM_2`

  - ### Mushroom

    public Mushroom(Material shroom, BlockFace capFace)
    已过时。
    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.
    参数:
      `shroom` - A brown or red mushroom material type.
      `capFace` - The face or faces to set to mushroom cap texture.
    另请参阅:
      - `Material.LEGACY_HUGE_MUSHROOM_1`
      - `Material.LEGACY_HUGE_MUSHROOM_2`
      - `BlockFace`

  - ### Mushroom

    public Mushroom(Material shroom, MushroomBlockTexture texture)
    已过时。
    Constructs a brown/red mushroom block with the specified textures.
    参数:
      `shroom` - A brown or red mushroom material type.
      `texture` - The textured mushroom faces.
    另请参阅:
      - `Material.LEGACY_HUGE_MUSHROOM_1`
      - `Material.LEGACY_HUGE_MUSHROOM_2`

  - ### Mushroom

    @Deprecated public Mushroom(Material shroom, byte data)
    已过时。
    Magic value
    参数:
      `shroom` - the type
      `data` - the raw data value

- ## 方法详细资料

  - ### isStem

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

  - ### setStem

    @Deprecated public void setStem()
    已过时。
    Use `setBlockTexture(org.bukkit.material.types.MushroomBlockTexture)` with `MushroomBlockTexture.STEM_SIDES` or `MushroomBlockTexture.ALL_STEM`
    Sets this to be a mushroom stem.
    另请参阅:
      - `MushroomBlockTexture.STEM_SIDES`
      - `MushroomBlockTexture.ALL_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`