Class ExprStoredEnchantments

java.lang.Object
ch.njol.skript.lang.util.SimpleExpression<EnchantmentType>
ch.njol.skript.expressions.base.PropertyExpression<ItemType, EnchantmentType>
org.skriptlang.skript.bukkit.enchantments.elements.expressions.ExprStoredEnchantments
All Implemented Interfaces:
Debuggable, Expression<EnchantmentType>, Loopable<EnchantmentType>, Simplifiable<Expression<? extends EnchantmentType>>, SyntaxElement, RuntimeErrorProducer, SyntaxRuntimeErrorProducer

@Name("Stored Enchantments") @Description("The enchantments stored inside an enchanted book. This is different from enchanting the book, as for example a book\nof sharpness does not deal more damage when used as a weapon. Corresponds to the <code>minecraft:stored_enchantments</code> data component.\nNote that for example resetting the stored enchantments of an enchanted book of Sharpness III removes the sharpness enchantment, since\nit is impossible to know what the original enchantments of the item were. Note also that only one entry can exist per enchantment type;\nadding Sharpness III to a book with Sharpness V will convert it to a book of Sharpness III.\n") @Example("command /godbook:\n\ttrigger:\n\t\tset {_item} to minecraft:enchanted_book\n\t\tadd mending to stored enchants of {_item} # adds mending 1\n\t\tadd knockback 12 to stored enchants of {_item}\n\t\tadd fire aspect 3 to stored enchants of {_item}\n\t\tgive {_item} to player\n") @Since("2.16") public class ExprStoredEnchantments extends ch.njol.skript.expressions.base.PropertyExpression<ItemType, EnchantmentType>