Package me.lokka30.levelledmobs.events
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
-
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.entity.LivingEntity
static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
int
getLevel()
boolean
void
setCancelled
(boolean cancelled) void
setLevel
(int level) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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 classorg.bukkit.event.Event
-
getHandlerList
public static org.bukkit.event.HandlerList getHandlerList() -
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
getEntity
public org.bukkit.entity.LivingEntity getEntity() -
getLevel
public int getLevel() -
setLevel
public void setLevel(int level)
-