接口 UseEffectsComponent
- 所有超级接口:
ConfigurationSerializable
Represents a component which determines the attributes while using this item.
-
方法概要
修饰符和类型方法说明booleanGets whether the player can sprint while using this item.floatGets the speed multiplier applied to the player while using this item.booleanGets whether using this item will trigger vibrations.voidsetCanSprint(boolean sprint) Sets whether the player can sprint while using this item.voidsetInteractVibrations(boolean interactVibrations) Sets whether using this item will trigger vibrations.voidsetSpeedMultiplier(float multiplier) Sets the speed multiplier applied to the player while using this item.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
方法详细资料
-
canSprint
boolean canSprint()Gets whether the player can sprint while using this item.- 返回:
- whether player can sprint
-
setCanSprint
void setCanSprint(boolean sprint) Sets whether the player can sprint while using this item.- 参数:
sprint- whether player can sprint
-
isInteractVibrations
boolean isInteractVibrations()Gets whether using this item will trigger vibrations.- 返回:
- whether use will trigger vibrations
-
setInteractVibrations
void setInteractVibrations(boolean interactVibrations) Sets whether using this item will trigger vibrations.- 参数:
interactVibrations- whether use will trigger vibrations
-
getSpeedMultiplier
float getSpeedMultiplier()Gets the speed multiplier applied to the player while using this item.- 返回:
- speed multiplier
-
setSpeedMultiplier
void setSpeedMultiplier(float multiplier) Sets the speed multiplier applied to the player while using this item.- 参数:
multiplier- new multiplier
-