LevelInterface2

Welcome to the LevelInterface(2), this class is a 'global' interface for LM itself AND other plugins to apply and modify the main functions of LevelledMobs.

Author

lokka30, stumper66

Since

2.5

Inheritors

Functions

Link copied to clipboard
abstract fun applyLevelToMob(lmEntity: LivingEntityWrapper, level: Int, isSummoned: Boolean, bypassLimits: Boolean, additionalLevelInformation: MutableSet<AdditionalLevelInformation>?)

This method applies a level to the target mob.

Link copied to clipboard
abstract fun generateLevel(lmEntity: LivingEntityWrapper): Int
abstract fun generateLevel(lmEntity: LivingEntityWrapper, minLevel: Int, maxLevel: Int): Int

This method generates a level for the mob. It utilises the levelling mode specified by the administrator through the settings.yml configuration.

Link copied to clipboard
@NotNull
abstract fun getLevellableState(@NotNull livingEntity: LivingEntity): LevellableState

Check if an existing mob is allowed to be levelled, according to the user's configuration.

Link copied to clipboard
abstract fun getLevelOfMob(@NotNull livingEntity: LivingEntity): Int

Retrieve the level of a levelled mob.

Link copied to clipboard
@Nullable
abstract fun getMobNametag(@NotNull livingEntity: LivingEntity): String?
Link copied to clipboard
abstract fun isLevelled(@NotNull livingEntity: LivingEntity): Boolean

Check if a LivingEntity is a levelled mob or not. This is determined after MobPreLevelEvent.

Link copied to clipboard
abstract fun removeLevel(@NotNull livingEntity: LivingEntity)
abstract fun removeLevel(lmEntity: LivingEntityWrapper)

Un-level a mob.