StealingEnchantment

class StealingEnchantment(val name: String, stat: Statistic, amount: Float, val regain: (MacrocosmPlayer, Pair<Float, Boolean>) -> Unit, actualDescription: String? = null, conflicts: List<String> = listOf(), val applicable: List<ItemType> = ItemType.melee(), val levels: IntRange = 1..7) : EnchantmentBase(source)

Constructors

Link copied to clipboard
constructor(name: String, stat: Statistic, amount: Float, regain: (MacrocosmPlayer, Pair<Float, Boolean>) -> Unit, actualDescription: String? = null, conflicts: List<String> = listOf(), applicable: List<ItemType> = ItemType.melee(), levels: IntRange = 1..7)

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

Link copied to clipboard