java.lang.Cloneable
public class Mushroom extends MaterialData
Constructor | Description |
---|---|
Mushroom(Material shroom) |
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) |
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.
|
Modifier and Type | Method | Description |
---|---|---|
Mushroom |
clone() |
|
MushroomBlockTexture |
getBlockTexture() |
Gets the mushroom texture of this block.
|
java.util.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) |
Deprecated.
Use MushroomBlockType cap options
|
void |
setStem() |
|
java.lang.String |
toString() |
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()
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 java.util.Set<BlockFace> getPaintedFaces()
public java.lang.String toString()
toString
in class MaterialData
public Mushroom clone()
clone
in class MaterialData
Copyright © 2018. All rights reserved.