Cloneable
BlockData
.@Deprecated public class Mushroom extends MaterialData
Constructor | Description |
---|---|
Mushroom(Material shroom) |
Deprecated.
Constructs a brown/red mushroom block with all sides set to pores.
|
Mushroom(Material shroom,
byte data) |
Deprecated.
Magic value
|
Mushroom(Material shroom,
BlockFace capFace) |
Deprecated.
Constructs a brown/red mushroom cap block with the specified face or
faces set to cap texture.
|
Mushroom(Material shroom,
MushroomBlockTexture texture) |
Deprecated.
Constructs a brown/red mushroom block with the specified textures.
|
Modifier and Type | Method | Description |
---|---|---|
Mushroom |
clone() |
Deprecated.
|
MushroomBlockTexture |
getBlockTexture() |
Deprecated.
Gets the mushroom texture of this block.
|
Set<BlockFace> |
getPaintedFaces() |
Deprecated.
|
boolean |
isFacePainted(BlockFace face) |
Deprecated.
Checks whether a face of the block is painted with cap texture.
|
boolean |
isStem() |
Deprecated.
|
void |
setBlockTexture(MushroomBlockTexture texture) |
Deprecated.
Sets the mushroom texture of this block.
|
void |
setFacePainted(BlockFace face,
boolean painted) |
Deprecated.
Use MushroomBlockType cap options
|
void |
setStem() |
|
String |
toString() |
Deprecated.
|
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
public Mushroom(Material shroom)
shroom
- A brown or red mushroom material type.Material.LEGACY_HUGE_MUSHROOM_1
,
Material.LEGACY_HUGE_MUSHROOM_2
public Mushroom(Material shroom, BlockFace capFace)
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
public Mushroom(Material shroom, MushroomBlockTexture texture)
shroom
- A brown or red mushroom material type.texture
- The textured mushroom faces.Material.LEGACY_HUGE_MUSHROOM_1
,
Material.LEGACY_HUGE_MUSHROOM_2
@Deprecated public Mushroom(Material shroom, byte data)
shroom
- the typedata
- the raw data valuepublic boolean isStem()
@Deprecated public void setStem()
setBlockTexture(org.bukkit.material.types.MushroomBlockTexture)
with MushroomBlockTexture.STEM_SIDES
or
MushroomBlockTexture.ALL_STEM
public MushroomBlockTexture getBlockTexture()
public void setBlockTexture(MushroomBlockTexture texture)
texture
- The mushroom texture to setpublic boolean isFacePainted(BlockFace face)
face
- The face to check.@Deprecated public void setFacePainted(BlockFace face, boolean painted)
face
- The face to paint or unpaint.painted
- True if you want to paint it, false if you want the
pores to show.public Set<BlockFace> getPaintedFaces()
public String toString()
toString
in class MaterialData
public Mushroom clone()
clone
in class MaterialData
Copyright © 2019. All rights reserved.