EnchantmentLevel

@Since(version = "2.2")
data class EnchantmentLevel(val level: Int, val conditions: List<EnchantmentCondition>, val chance: Double, val cooldown: Time, val actions: List<EnchantmentAction>) : Describable<EnchantmentLevel>

This class represents an enchantment level.

At no point should you need to construct this class, as it is only created internally by UnderscoreEnchants to create enchantments.

Constructors

Link copied to clipboard
constructor(level: Int, conditions: List<EnchantmentCondition>, chance: Double, cooldown: Time, actions: List<EnchantmentAction>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val cooldown: Time
Link copied to clipboard
val level: Int

Functions

Link copied to clipboard

Gets the describer for the object.