MobPreLevelEvent

class MobPreLevelEvent(val entity: LivingEntity, var level: Int, val levelCause: MobPreLevelEvent.LevelCause, val additionalInformation: MutableSet<AdditionalLevelInformation>?) : 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.

Author

lokka30

Since

2.5.0

Constructors

Link copied to clipboard
constructor(entity: LivingEntity, level: Int, levelCause: MobPreLevelEvent.LevelCause, additionalInformation: MutableSet<AdditionalLevelInformation>?)

Types

Link copied to clipboard
object Companion
Link copied to clipboard

When a mob is levelled, the following enum is used to allow plugins to find the cause of the mob being levelled.

Properties

Link copied to clipboard
val entity: LivingEntity
Link copied to clipboard
var level: Int
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun callEvent(): Boolean
Link copied to clipboard
@NotNull
open fun getEventName(): @NotNull String
Link copied to clipboard
open override fun getHandlers(): HandlerList
Link copied to clipboard
Link copied to clipboard
open override fun isCancelled(): Boolean
Link copied to clipboard
open override fun setCancelled(cancelled: Boolean)