类 ExpBottleEvent

所有已实现的接口:
Cancellable

public class ExpBottleEvent extends ProjectileHitEvent
Called when a ThrownExpBottle hits and releases experience.
  • 构造器详细资料

  • 方法详细资料

    • getEntity

      @NotNull public @NotNull ThrownExpBottle getEntity()
      从类复制的说明: EntityEvent
      返回这个事件所涉及的实体.

      原文: Returns the Entity involved in this event

      覆盖:
      getEntity 在类中 ProjectileHitEvent
      返回:
      涉及这个事件的实体
    • getShowEffect

      public boolean getShowEffect()
      This method indicates if the particle effect should be shown.
      返回:
      true if the effect will be shown, false otherwise
    • setShowEffect

      public void setShowEffect(boolean showEffect)
      This method sets if the particle effect will be shown.

      This does not change the experience created.

      参数:
      showEffect - true indicates the effect will be shown, false indicates no effect will be shown
    • getExperience

      public int getExperience()
      This method retrieves the amount of experience to be created.

      The number indicates a total amount to be divided into orbs.

      返回:
      the total amount of experience to be created
    • setExperience

      public void setExperience(int exp)
      This method sets the amount of experience to be created.

      The number indicates a total amount to be divided into orbs.

      参数:
      exp - the total amount of experience to be created
    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      覆盖:
      getHandlers 在类中 ProjectileHitEvent
    • getHandlerList

      @NotNull public static @NotNull HandlerList getHandlerList()