接口 UseEffectsComponent

所有超级接口:
ConfigurationSerializable

@Experimental public interface UseEffectsComponent extends ConfigurationSerializable
Represents a component which determines the attributes while using this item.
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    Gets whether the player can sprint while using this item.
    float
    Gets the speed multiplier applied to the player while using this item.
    boolean
    Gets whether using this item will trigger vibrations.
    void
    setCanSprint(boolean sprint)
    Sets whether the player can sprint while using this item.
    void
    setInteractVibrations(boolean interactVibrations)
    Sets whether using this item will trigger vibrations.
    void
    setSpeedMultiplier(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