Class MobPreLevelEvent

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

public class MobPreLevelEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
This event is fired *before* a mob has been levelled. Note that it does not fire when the mob was spawned using `/lm summon`, instead see Summoned- -MobPreLevelEvent.
Since:
2.5.0
  • Constructor Details

  • 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()
    • getCause

      public MobPreLevelEvent.LevelCause getCause()
    • getAdditionalInformation

      public HashSet<AdditionalLevelInformation> getAdditionalInformation()
    • setLevel

      public void setLevel(int level)
    • setShowLM_Nametag

      public void setShowLM_Nametag(boolean doRemove)
    • getShowLM_Nametag

      public boolean getShowLM_Nametag()