MobEnchantment

class MobEnchantment(val name: String, affectedMobs: List<EntityType>, conflicts: List<String>, val levels: IntRange = 1..7, val applicable: List<ItemType> = ItemType.melee(), dmgMultiplier: Float = 0.15f) : EnchantmentBase(source)

Constructors

Link copied to clipboard
constructor(name: String, affectedMobs: List<EntityType>, conflicts: List<String>, levels: IntRange = 1..7, applicable: List<ItemType> = ItemType.melee(), dmgMultiplier: Float = 0.15f)

Functions

Link copied to clipboard
open override fun description(level: Int): List<Component>

Provides description for this enchantment

Link copied to clipboard
open fun displayFancy(lore: MutableList<Component>, level: Int)

Adds a fancy display of this enchantment to lore

Link copied to clipboard
open fun displaySimple(level: Int): Component

Construts a simple display of this enchantment

Link copied to clipboard
Link copied to clipboard
open override fun special(level: Int): SpecialStatistics

Special stats this enchantment modifies

Link copied to clipboard
open override fun stats(level: Int, player: MacrocosmPlayer?): Statistics

Stats this enchantment modifies

Properties

Link copied to clipboard
open override val applicable: List<ItemType>

Items this enchantment can be applicable to

Link copied to clipboard
open override val conflicts: List<Identifier>

IDs of enchantments this enchantment conflicts with

Link copied to clipboard
open override val levels: IntRange

Possible levels that this enchantment may be applicable to

Link copied to clipboard
open override val name: String

Display name of the enchantment