Class PickupExperienceEvent

All Implemented Interfaces:
Event, CancellableEvent, EntityEvent, EntityInstanceEvent, InstanceEvent, PlayerEvent, PlayerInstanceEvent

public class PickupExperienceEvent extends Object implements CancellableEvent, PlayerInstanceEvent
  • Constructor Details

    • PickupExperienceEvent

      public PickupExperienceEvent(@NotNull @NotNull Player player, @NotNull @NotNull ExperienceOrb experienceOrb)
  • Method Details

    • getPlayer

      @NotNull public @NotNull Player getPlayer()
      Description copied from interface: PlayerEvent
      Gets the player.
      Specified by:
      getPlayer in interface PlayerEvent
      the player
    • getExperienceOrb

      @NotNull public @NotNull ExperienceOrb getExperienceOrb()
    • getExperienceCount

      public short getExperienceCount()
    • setExperienceCount

      public void setExperienceCount(short experienceCount)
    • isCancelled

      public boolean isCancelled()
      Description copied from interface: CancellableEvent
      Gets if the Event should be cancelled or not.
      Specified by:
      isCancelled in interface CancellableEvent
      true if the event should be cancelled
    • setCancelled

      public void setCancelled(boolean cancel)
      Description copied from interface: CancellableEvent
      Marks the Event as cancelled or not.
      Specified by:
      setCancelled in interface CancellableEvent
      cancel - true if the event should be cancelled, false otherwise