类 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.
-
构造器概要
构造器说明已过时。Constructs a brown/red mushroom block with all sides set to pores.已过时。Magic value已过时。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. -
方法概要
修饰符和类型方法说明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, 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
-
-
方法详细资料
-
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
-
BlockData
.