Enchantment Base
abstract class EnchantmentBase(val name: String, description: String, val levels: IntRange, val applicable: List<ItemType>, baseStats: Statistics = Statistics.zero(), baseSpecials: SpecialStatistics = SpecialStatistics(), multiplier: Float = 1.0f, conflicts: List<String> = listOf()) : Enchantment(source)
A base for enchantment. It is recommended to inherit this class instead of implementing raw Enchantment interface
Inheritors
Constructors
Link copied to clipboard
constructor(name: String, description: String, levels: IntRange, applicable: List<ItemType>, baseStats: Statistics = Statistics.zero(), baseSpecials: SpecialStatistics = SpecialStatistics(), multiplier: Float = 1.0f, conflicts: List<String> = listOf())
Functions
Link copied to clipboard
Provides description for this enchantment
Link copied to clipboard
Adds a fancy display of this enchantment to lore
Link copied to clipboard
Construts a simple display of this enchantment
Link copied to clipboard
Special stats this enchantment modifies
Link copied to clipboard
Stats this enchantment modifies