类 Mushroom
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Mushroom
- 所有已实现的接口:
Cloneable
Represents a huge mushroom block with certain combinations of faces set to
cap, pores or stem.
-
构造器概要
构造器说明Mushroom
(int type, byte data) 已过时。Magic valueConstructs a brown/red mushroom block with all sides set to pores.已过时。Magic valueConstructs 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. -
方法概要
修饰符和类型方法说明clone()
Gets the mushroom texture of this block.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 optionsvoid
setStem()
toString()
从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Mushroom
Constructs a brown/red mushroom block with all sides set to pores.- 参数:
shroom
- A brown or red mushroom material type.- 另请参阅:
-
Mushroom
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.- 另请参阅:
-
Mushroom
Constructs a brown/red mushroom block with the specified textures.- 参数:
shroom
- A brown or red mushroom material type.texture
- The textured mushroom faces.- 另请参阅:
-
Mushroom
已过时。Magic value- 参数:
shroom
- the typedata
- the raw data value
-
Mushroom
已过时。Magic value- 参数:
type
- the raw type iddata
- the raw data value
-
-
方法详细资料
-
isStem
public boolean isStem()- 返回:
- Whether this is a mushroom stem.
-
setStem
已过时。Sets this to be a mushroom stem. -
getBlockTexture
Gets the mushroom texture of this block.- 返回:
- The mushroom texture of this block
-
setBlockTexture
Sets the mushroom texture of this block.- 参数:
texture
- The mushroom texture to set
-
isFacePainted
Checks whether a face of the block is painted with cap texture.- 参数:
face
- The face to check.- 返回:
- True if it is painted.
-
setFacePainted
已过时。Use MushroomBlockType cap optionsSet 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
- 返回:
- A set of all faces that are currently painted (an empty set if it is a stem)
-
toString
- 覆盖:
toString
在类中MaterialData
-
clone
- 覆盖:
clone
在类中MaterialData
-