类 Mushroom
- 所有已实现的接口:
Cloneable
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明clone()已过时。已过时。获取此方块的蘑菇纹理。已过时。booleanisFacePainted(BlockFace face) 已过时。检查方块的一个面是否被绘制了菌盖纹理。booleanisStem()已过时。voidsetBlockTexture(MushroomBlockTexture texture) 已过时。设置此方块的蘑菇纹理。voidsetFacePainted(BlockFace face, boolean painted) 已过时。使用MushroomBlockType的菌盖选项voidsetStem()toString()已过时。从类继承的方法 org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
构造器详细资料
-
Mushroom
已过时。构造一个所有面都设置为菌孔的棕色/红色蘑菇方块。- 参数:
shroom- 棕色或红色蘑菇材质类型。- 另请参阅:
-
Mushroom
已过时。构造一个棕色/红色蘑菇菌盖方块,其指定的一个或多个面被设置为菌盖纹理。 设置四个侧面中的任何一个也会将顶部设置为菌盖。 要同时设置两个侧面,请使用例如西北方向。 指定自身以同时设置所有六个面。- 参数:
shroom- 棕色或红色蘑菇材质类型。capFace- 要设置为蘑菇菌盖纹理的一个或多个面。- 另请参阅:
-
Material.LEGACY_HUGE_MUSHROOM_1Material.LEGACY_HUGE_MUSHROOM_2原文: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.
-
Mushroom
已过时。构造一个具有指定纹理的棕色/红色蘑菇方块。- 参数:
shroom- 棕色或红色蘑菇材质类型。texture- 纹理化的蘑菇面。- 另请参阅:
-
Mushroom
已过时。魔法值- 参数:
shroom- 类型data- 原始数据值
-
-
方法详细资料
-
isStem
public boolean isStem()已过时。- 返回:
- 这是否是蘑菇菌柄。
原文:Whether this is a mushroom stem.
-
setStem
已过时。使用setBlockTexture(org.bukkit.material.types.MushroomBlockTexture)配合MushroomBlockTexture.STEM_SIDES或MushroomBlockTexture.ALL_STEM原文:Sets this to be a mushroom stem.
将此设置为蘑菇菌柄。 -
getBlockTexture
已过时。获取此方块的蘑菇纹理。- 返回:
- 此方块的蘑菇纹理
原文:Gets the mushroom texture of this block.
-
setBlockTexture
已过时。设置此方块的蘑菇纹理。- 参数:
texture- 要设置的蘑菇纹理原文:Sets the mushroom texture of this block.
-
isFacePainted
已过时。检查方块的一个面是否被绘制了菌盖纹理。- 参数:
face- 要检查的面。- 返回:
- 如果已绘制则返回true。
原文:Checks whether a face of the block is painted with cap texture.
-
setFacePainted
已过时。使用MushroomBlockType的菌盖选项原文:Set 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- 要绘制或取消绘制的面。painted- 如果要绘制则为true,如果要显示菌孔则为false。
-
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。