generateLevel

open override fun generateLevel(lmEntity: LivingEntityWrapper): Int

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

Thread-safety intended, but not tested.

Return

a level for the entity

Parameters

lmEntity

the entity to generate a level for


open override 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.

Thread-safety intended, but not tested.

Return

a level for the entity

Parameters

lmEntity

the entity to generate a level for

minLevel

the minimum level to be used for the mob

maxLevel

the maximum level to be used for the mob