Package me.lokka30.levelledmobs.events
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
When a mob is levelled, the following enum is used to allow plugins to find the cause of the mob being levelled.Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorDescriptionMobPreLevelEvent
(@NotNull org.bukkit.entity.LivingEntity entity, int level, @NotNull MobPreLevelEvent.LevelCause levelCause, @NotNull HashSet<AdditionalLevelInformation> additionalInformation) -
Method Summary
Modifier and TypeMethodDescriptiongetCause()
org.bukkit.entity.LivingEntity
static org.bukkit.event.HandlerList
@NotNull org.bukkit.event.HandlerList
int
getLevel()
boolean
boolean
void
setCancelled
(boolean cancelled) void
setLevel
(int level) void
setShowLM_Nametag
(boolean doRemove) Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
MobPreLevelEvent
public MobPreLevelEvent(@NotNull @NotNull org.bukkit.entity.LivingEntity entity, int level, @NotNull @NotNull MobPreLevelEvent.LevelCause levelCause, @NotNull @NotNull HashSet<AdditionalLevelInformation> additionalInformation)
-
-
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() -
getCause
-
getAdditionalInformation
-
setLevel
public void setLevel(int level) -
setShowLM_Nametag
public void setShowLM_Nametag(boolean doRemove) -
getShowLM_Nametag
public boolean getShowLM_Nametag()
-