public class Mushroom extends MaterialData
| 构造器和说明 |
|---|
Mushroom(int type,
byte data)
已过时。
Magic value
|
Mushroom(Material shroom)
Constructs a brown/red mushroom block with all sides set to pores.
|
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,
byte data)
已过时。
Magic value
|
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.
|
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)
已过时。
Use MushroomBlockType cap options
|
void |
setStem()
|
java.lang.String |
toString() |
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStackpublic Mushroom(Material shroom)
shroom - A brown or red mushroom material type.Material.HUGE_MUSHROOM_1,
Material.HUGE_MUSHROOM_2public 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.HUGE_MUSHROOM_1,
Material.HUGE_MUSHROOM_2,
BlockFacepublic Mushroom(Material shroom, MushroomBlockTexture texture)
shroom - A brown or red mushroom material type.texture - The textured mushroom faces.Material.HUGE_MUSHROOM_1,
Material.HUGE_MUSHROOM_2@Deprecated public Mushroom(Material shroom, byte data)
shroom - the typedata - the raw data value@Deprecated
public Mushroom(int type,
byte data)
type - the raw type iddata - the raw data valuepublic boolean isStem()
@Deprecated public void setStem()
setBlockTexture(org.bukkit.material.types.MushroomBlockTexture)
with MushroomBlockTexture.STEM_SIDES or
MushroomBlockTexture.ALL_STEMpublic 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 在类中 MaterialDatapublic Mushroom clone()
clone 在类中 MaterialData