EnchantmentAction

@Since(version = "2.2")
data class EnchantmentAction(val action: RegistrableAction, val chance: Double, val delay: Time, val target: TargetType, val arguments: List<String>, val conditions: List<EnchantmentCondition>) : Describable<EnchantmentAction>

This class represents an enchantment action, which includes a RegistrableAction, a chance of execution, a delay before execution and the arguments for this action.

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(action: RegistrableAction, chance: Double, delay: Time, target: TargetType, arguments: List<String>, conditions: List<EnchantmentCondition>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val delay: Time
Link copied to clipboard

Functions

Link copied to clipboard

Gets the describer for the object.