Enchantment

interface Enchantment : Listener(source)

An interface that defines an enchantment

Inheritors

Functions

Link copied to clipboard
abstract 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
open fun special(level: Int): SpecialStatistics

Special stats this enchantment modifies

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

Stats this enchantment modifies

Properties

Link copied to clipboard
abstract val applicable: List<ItemType>

Items this enchantment can be applicable to

Link copied to clipboard
abstract val conflicts: List<Identifier>

IDs of enchantments this enchantment conflicts with

Link copied to clipboard
abstract val levels: IntRange

Possible levels that this enchantment may be applicable to

Link copied to clipboard
abstract val name: String

Display name of the enchantment