Class SpawnerExpClaimEvent

java.lang.Object
org.bukkit.event.Event
github.nighter.smartspawner.api.events.SpawnerExpClaimEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class SpawnerExpClaimEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
Called when a player claims experience from a spawner.
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.bukkit.event.Event

    org.bukkit.event.Event.Result
  • Constructor Summary

    Constructors
    Constructor
    Description
    SpawnerExpClaimEvent(org.bukkit.entity.Player player, org.bukkit.Location location, long expAmount)
    Creates a new spawner experience claim event.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.bukkit.event.Cancellable

    isCancelled, setCancelled
  • Constructor Details

    • SpawnerExpClaimEvent

      public SpawnerExpClaimEvent(org.bukkit.entity.Player player, org.bukkit.Location location, long expAmount)
      Creates a new spawner experience claim event.
      Parameters:
      player - the player claiming the experience
      location - the location of the spawner
      expAmount - the amount of experience claimed
  • Method Details

    • getHandlers

      @NotNull public @NotNull org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      @NotNull public static @NotNull org.bukkit.event.HandlerList getHandlerList()