Simple Enchantment
class SimpleEnchantment(val name: String, description: String, val levels: IntRange, val applicable: List<ItemType>, base: Statistics = Statistics.zero(), special: SpecialStatistics = SpecialStatistics(), multiplier: Float = 1.0f, conflicts: List<String> = listOf()) : EnchantmentBase(source)
A simple enchantment to avoid unneeded inheritance
Parameters
name
name of the enchantment
description
description of the enchantment
levels
possible levels of the enchantment
applicable
item types this enchantment is applicable to
base
base statistics that this enchantment applies, excluding the level modifier
special
base special statistics that this enchantment applies, excluding the level modifier
multiplier
the multiplier that is applied each level
conflicts
IDs of enchantments this enchantment conflicts with
Constructors
Link copied to clipboard
constructor(name: String, description: String, levels: IntRange, applicable: List<ItemType>, base: Statistics = Statistics.zero(), special: 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