Class ExpBottleEvent


  • public class ExpBottleEvent
    extends ProjectileHitEvent
    Called when a ThrownExpBottle hits and releases experience.
    • Constructor Detail

      • ExpBottleEvent

        public ExpBottleEvent​(@NotNull
                              @NotNull ThrownExpBottle bottle,
                              int exp)
    • Method Detail

      • getShowEffect

        public boolean getShowEffect()
        This method indicates if the particle effect should be shown.
        Returns:
        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.

        Parameters:
        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.

        Returns:
        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.

        Parameters:
        exp - the total amount of experience to be created
      • getHandlerList

        @NotNull
        public static @NotNull HandlerList getHandlerList()