The numeric id of the following enchantment to be used in different operations. This id will not change after the first generation, same as it works with blocks' and items' ids.
Defines the function that will be called, when item with following enchantment is used for attack. The function must return bonus damage dealt to the victim. NOTE: this method is highly experimental right now
reference to itself to be used in sequential calls
Sets the following enchantment frequency, possibly used in treasures. Default value is 3
reference to itself to be used in sequential calls
Sets whether the following enchantment will be able to be received on the enchanting table or not. Default value is true.
reference to itself to be used in sequential calls
Sets whether the following enchantment will be able to be found in dungeon chests or not. Default value is true.
reference to itself to be used in sequential calls
Sets whether the following enchantment will be able to be caught during fishing as a treasure, or not. Default value is false.
reference to itself to be used in sequential calls
Sets the mask of items, that the following enchantment can be applied to, paired parameter for item is enchant slot, default is -1 = 0xFFFFFFFF - all
reference to itself to be used in sequential calls
Sets linear dependency of enchant cost by level,
the formula is level * b + c
reference to itself to be used in sequential calls
Sets minimum and maximum level, that the following enchantment will be able to have in legal conditions. Default is 1-5
reference to itself to be used in sequential calls
Defines the function that will be called after the item with following enchantment is used for attack. NOTE: this method is highly experimental right now
reference to itself to be used in sequential calls
Defines the function that will be called, when the entity wearing item with following enchantment, is hit. NOTE: this method is highly experimental right now
reference to itself to be used in sequential calls
Defines the function that will be called, when the entity wearing item with following enchantment, is hit. The function must return bonus protection value. NOTE: this method is highly experimental right now
reference to itself to be used in sequential calls
Generated using TypeDoc
Object returned by CustomEnchant.newEnchant method. Used to configure different custom enchantment behaviors