LevelInterface

interface LevelInterface

This is the interface used in the API and exposes functions that use mostly generic classes to apply and modify the main functions of LevelledMobs.

Author

stumper66

Since

4.0

Inheritors

Functions

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)

Un-level a mob.