接口 ConsumableTeleportRandomly
表示物品被消耗时随机传送。
-
方法概要
修饰符和类型方法说明float获取消耗者被传送的直径范围。booleanGets whether directional particles will be displayed.voidsetDiameter(float diameter) 设置消耗者被传送的直径范围。voidsetDirectionalParticles(boolean directionalParticles) Sets whether directional particles will be displayed.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
getDiameter
float getDiameter()获取消耗者被传送的直径范围。原文:Gets the diameter that the consumer is teleported within.
- 返回:
- 直径
-
setDiameter
void setDiameter(float diameter) 设置消耗者被传送的直径范围。原文:Sets the diameter that the consumer is teleported within.
- 参数:
diameter- 新的直径
-
isDirectionalParticles
boolean isDirectionalParticles()Gets whether directional particles will be displayed.- 返回:
- whether to display particles
-
setDirectionalParticles
void setDirectionalParticles(boolean directionalParticles) Sets whether directional particles will be displayed.- 参数:
directionalParticles- whether to display particles
-