Class SummonedMobPreLevelEvent

java.lang.Object
org.bukkit.event.Event
me.lokka30.levelledmobs.events.SummonedMobPreLevelEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class SummonedMobPreLevelEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
This event is fired *before* a mob has been levelled, but only if it was spawned using the `/lm summon` command.
Since:
2.5.0
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    SummonedMobPreLevelEvent(org.bukkit.entity.LivingEntity entity, int level)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.entity.LivingEntity
     
    static org.bukkit.event.HandlerList
     
    @NotNull org.bukkit.event.HandlerList
     
    int
     
    boolean
     
    void
    setCancelled(boolean cancelled)
     
    void
    setLevel(int level)
     

    Methods inherited from class org.bukkit.event.Event

    callEvent, getEventName, isAsynchronous

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SummonedMobPreLevelEvent

      public SummonedMobPreLevelEvent(org.bukkit.entity.LivingEntity entity, int level)
  • Method Details

    • getHandlers

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

      public static org.bukkit.event.HandlerList getHandlerList()
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getEntity

      public org.bukkit.entity.LivingEntity getEntity()
    • getLevel

      public int getLevel()
    • setLevel

      public void setLevel(int level)