<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<dd><code>net.kyori.adventure.key.Keyed</code>, <code><ahref="https://jd.adventure.kyori.net/api/4.12.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></code>, <code><ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a></code></dd>
<dd><code><ahref="EnchantmentWrapper.html"title="class in org.bukkit.enchantments">EnchantmentWrapper</a></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public abstract class </span><spanclass="element-name type-name-label">Enchantment</span>
<spanclass="extends-implements">extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>
implements <ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a>, <ahref="https://jd.adventure.kyori.net/api/4.12.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></span></div>
<divclass="col-constructor-name even-row-color"><code><ahref="#%3Cinit%3E(org.bukkit.NamespacedKey)"class="member-name-link">Enchantment</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#canEnchantItem(org.bukkit.inventory.ItemStack)"class="member-name-link">canEnchantItem</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> item)</code></div>
<divclass="block">Checks if this Enchantment may be applied to the given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a>.</div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code><ahref="#conflictsWith(org.bukkit.enchantments.Enchantment)"class="member-name-link">conflictsWith</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a> other)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract <ahref="https://jd.adventure.kyori.net/api/4.12.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="#equals(java.lang.Object)"class="member-name-link">equals</a><wbr>(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../inventory/EquipmentSlot.html"title="enum class in org.bukkit.inventory">EquipmentSlot</a>></code></div>
<divclass="block">Gets the equipment slots where this enchantment is considered "active".</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></code></div>
<divclass="col-second odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#getByKey(org.bukkit.NamespacedKey)"class="member-name-link">getByKey</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</code></div>
<divclass="block">Gets the Enchantment at the specified key</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4 method-summary-table-tab6"><code><ahref="#getByName(java.lang.String)"class="member-name-link">getByName</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</code></div>
<divclass="deprecation-comment">enchantments are badly named, use <ahref="#getByKey(org.bukkit.NamespacedKey)"><code>getByKey(org.bukkit.NamespacedKey)</code></a>.</div>
<divclass="block">Gets the damage increase as a result of the level and entity category specified</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="EnchantmentTarget.html"title="enum class in org.bukkit.enchantments">EnchantmentTarget</a></code></div>
<divclass="block">Gets the type of <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a> that may fit this Enchantment.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a></code></div>
<divclass="block">Gets the maximum level that this Enchantment may become.</div>
</div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3 method-summary-table-tab6"><code>abstract <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="deprecation-comment">enchantments are badly named, use <ahref="#getKey()"><code>getKey()</code></a>.</div>
</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab3"><code>abstract <ahref="../../../io/papermc/paper/enchantments/EnchantmentRarity.html"title="enum class in io.papermc.paper.enchantments">EnchantmentRarity</a></code></div>
<divclass="col-second even-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code><ahref="#registerEnchantment(org.bukkit.enchantments.Enchantment)"class="member-name-link">registerEnchantment</a><wbr>(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a> enchantment)</code></div>
<divclass="block">Stops accepting any enchantment registrations</div>
</div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></code></div>
<divclass="col-first odd-row-color method-summary-table method-summary-table-tab1 method-summary-table-tab4"><code>static <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a>[]</code></div>
<divclass="block">Gets an array of all the registered <ahref="Enchantment.html"title="class in org.bukkit.enchantments"><code>Enchantment</code></a>s</div>
</div>
</div>
</div>
</div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-org.bukkit.Keyed">Methods inherited from interface org.bukkit.<ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a></h3>
<h3id="methods-inherited-from-class-net.kyori.adventure.translation.Translatable">Methods inherited from interface net.kyori.adventure.translation.<ahref="https://jd.adventure.kyori.net/api/4.12.0/net/kyori/adventure/translation/Translatable.html"title="class or interface in net.kyori.adventure.translation"class="external-link">Translatable</a></h3>
<code><ahref="https://jd.adventure.kyori.net/api/4.12.0/net/kyori/adventure/translation/Translatable.html#translationKey()"title="class or interface in net.kyori.adventure.translation"class="external-link">translationKey</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">PROTECTION_ENVIRONMENTAL</span></div>
<divclass="block">Provides protection against environmental damage</div>
</section>
</li>
<li>
<sectionclass="detail"id="PROTECTION_FIRE">
<h3>PROTECTION_FIRE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">PROTECTION_FIRE</span></div>
<divclass="block">Provides protection against fire damage</div>
</section>
</li>
<li>
<sectionclass="detail"id="PROTECTION_FALL">
<h3>PROTECTION_FALL</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">PROTECTION_FALL</span></div>
<divclass="block">Provides protection against fall damage</div>
</section>
</li>
<li>
<sectionclass="detail"id="PROTECTION_EXPLOSIONS">
<h3>PROTECTION_EXPLOSIONS</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">PROTECTION_EXPLOSIONS</span></div>
<divclass="block">Provides protection against explosive damage</div>
</section>
</li>
<li>
<sectionclass="detail"id="PROTECTION_PROJECTILE">
<h3>PROTECTION_PROJECTILE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">PROTECTION_PROJECTILE</span></div>
<divclass="block">Provides protection against projectile damage</div>
</section>
</li>
<li>
<sectionclass="detail"id="OXYGEN">
<h3>OXYGEN</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">OXYGEN</span></div>
<divclass="block">Decreases the rate of air loss whilst underwater</div>
</section>
</li>
<li>
<sectionclass="detail"id="WATER_WORKER">
<h3>WATER_WORKER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">WATER_WORKER</span></div>
<divclass="block">Increases the speed at which a player may mine underwater</div>
</section>
</li>
<li>
<sectionclass="detail"id="THORNS">
<h3>THORNS</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">THORNS</span></div>
<divclass="block">Damages the attacker</div>
</section>
</li>
<li>
<sectionclass="detail"id="DEPTH_STRIDER">
<h3>DEPTH_STRIDER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">DEPTH_STRIDER</span></div>
<divclass="block">Increases walking speed while in water</div>
</section>
</li>
<li>
<sectionclass="detail"id="FROST_WALKER">
<h3>FROST_WALKER</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">FROST_WALKER</span></div>
<divclass="block">Freezes any still water adjacent to ice / frost which player is walking on</div>
</section>
</li>
<li>
<sectionclass="detail"id="BINDING_CURSE">
<h3>BINDING_CURSE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">BINDING_CURSE</span></div>
<divclass="block">Item cannot be removed</div>
</section>
</li>
<li>
<sectionclass="detail"id="DAMAGE_ALL">
<h3>DAMAGE_ALL</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">DAMAGE_ALL</span></div>
<divclass="block">Increases damage against all targets</div>
</section>
</li>
<li>
<sectionclass="detail"id="DAMAGE_UNDEAD">
<h3>DAMAGE_UNDEAD</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">DAMAGE_UNDEAD</span></div>
<divclass="block">Increases damage against undead targets</div>
</section>
</li>
<li>
<sectionclass="detail"id="DAMAGE_ARTHROPODS">
<h3>DAMAGE_ARTHROPODS</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">DAMAGE_ARTHROPODS</span></div>
<divclass="block">Increases damage against arthropod targets</div>
</section>
</li>
<li>
<sectionclass="detail"id="KNOCKBACK">
<h3>KNOCKBACK</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">KNOCKBACK</span></div>
<divclass="block">All damage to other targets will knock them back when hit</div>
</section>
</li>
<li>
<sectionclass="detail"id="FIRE_ASPECT">
<h3>FIRE_ASPECT</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">FIRE_ASPECT</span></div>
<divclass="block">When attacking a target, has a chance to set them on fire</div>
</section>
</li>
<li>
<sectionclass="detail"id="LOOT_BONUS_MOBS">
<h3>LOOT_BONUS_MOBS</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">LOOT_BONUS_MOBS</span></div>
<divclass="block">Provides a chance of gaining extra loot when killing monsters</div>
</section>
</li>
<li>
<sectionclass="detail"id="SWEEPING_EDGE">
<h3>SWEEPING_EDGE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">SWEEPING_EDGE</span></div>
<divclass="block">Increases damage against targets when using a sweep attack</div>
</section>
</li>
<li>
<sectionclass="detail"id="DIG_SPEED">
<h3>DIG_SPEED</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">DIG_SPEED</span></div>
<divclass="block">Increases the rate at which you mine/dig</div>
</section>
</li>
<li>
<sectionclass="detail"id="SILK_TOUCH">
<h3>SILK_TOUCH</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">SILK_TOUCH</span></div>
<divclass="block">Allows blocks to drop themselves instead of fragments (for example,
stone instead of cobblestone)</div>
</section>
</li>
<li>
<sectionclass="detail"id="DURABILITY">
<h3>DURABILITY</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">DURABILITY</span></div>
<divclass="block">Decreases the rate at which a tool looses durability</div>
</section>
</li>
<li>
<sectionclass="detail"id="LOOT_BONUS_BLOCKS">
<h3>LOOT_BONUS_BLOCKS</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">LOOT_BONUS_BLOCKS</span></div>
<divclass="block">Provides a chance of gaining extra loot when destroying blocks</div>
</section>
</li>
<li>
<sectionclass="detail"id="ARROW_DAMAGE">
<h3>ARROW_DAMAGE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">ARROW_DAMAGE</span></div>
<divclass="block">Provides extra damage when shooting arrows from bows</div>
</section>
</li>
<li>
<sectionclass="detail"id="ARROW_KNOCKBACK">
<h3>ARROW_KNOCKBACK</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">ARROW_KNOCKBACK</span></div>
<divclass="block">Provides a knockback when an entity is hit by an arrow from a bow</div>
</section>
</li>
<li>
<sectionclass="detail"id="ARROW_FIRE">
<h3>ARROW_FIRE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">ARROW_FIRE</span></div>
<divclass="block">Sets entities on fire when hit by arrows shot from a bow</div>
</section>
</li>
<li>
<sectionclass="detail"id="ARROW_INFINITE">
<h3>ARROW_INFINITE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">ARROW_INFINITE</span></div>
<divclass="block">Provides infinite arrows when shooting a bow</div>
</section>
</li>
<li>
<sectionclass="detail"id="LUCK">
<h3>LUCK</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">LUCK</span></div>
<divclass="block">Decreases odds of catching worthless junk</div>
</section>
</li>
<li>
<sectionclass="detail"id="LURE">
<h3>LURE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">LURE</span></div>
<divclass="block">Increases rate of fish biting your hook</div>
</section>
</li>
<li>
<sectionclass="detail"id="LOYALTY">
<h3>LOYALTY</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">LOYALTY</span></div>
<divclass="block">Causes a thrown trident to return to the player who threw it</div>
</section>
</li>
<li>
<sectionclass="detail"id="IMPALING">
<h3>IMPALING</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">IMPALING</span></div>
<divclass="block">Deals more damage to mobs that live in the ocean</div>
</section>
</li>
<li>
<sectionclass="detail"id="RIPTIDE">
<h3>RIPTIDE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">RIPTIDE</span></div>
<divclass="block">When it is rainy, launches the player in the direction their trident is thrown</div>
</section>
</li>
<li>
<sectionclass="detail"id="CHANNELING">
<h3>CHANNELING</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">CHANNELING</span></div>
<divclass="block">Strikes lightning when a mob is hit with a trident if conditions are
stormy</div>
</section>
</li>
<li>
<sectionclass="detail"id="MULTISHOT">
<h3>MULTISHOT</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">MULTISHOT</span></div>
<divclass="block">Shoot multiple arrows from crossbows</div>
</section>
</li>
<li>
<sectionclass="detail"id="QUICK_CHARGE">
<h3>QUICK_CHARGE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">QUICK_CHARGE</span></div>
<divclass="block">Charges crossbows quickly</div>
</section>
</li>
<li>
<sectionclass="detail"id="PIERCING">
<h3>PIERCING</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">PIERCING</span></div>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">MENDING</span></div>
<divclass="block">Allows mending the item using experience orbs</div>
</section>
</li>
<li>
<sectionclass="detail"id="VANISHING_CURSE">
<h3>VANISHING_CURSE</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">VANISHING_CURSE</span></div>
<divclass="block">Item disappears instead of dropping</div>
</section>
</li>
<li>
<sectionclass="detail"id="SOUL_SPEED">
<h3>SOUL_SPEED</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">SOUL_SPEED</span></div>
<divclass="block">Walk quicker on soul blocks</div>
</section>
</li>
<li>
<sectionclass="detail"id="SWIFT_SNEAK">
<h3>SWIFT_SNEAK</h3>
<divclass="member-signature"><spanclass="modifiers">public static final</span> <spanclass="return-type"><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">SWIFT_SNEAK</span></div>
<divclass="block">Walk quicker while sneaking</div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="element-name">Enchantment</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</span></div>
</section>
</li>
</ul>
</section>
</li>
<!-- ============ METHOD DETAIL ========== -->
<li>
<sectionclass="method-details"id="method-detail">
<h2>Method Details</h2>
<ulclass="member-list">
<li>
<sectionclass="detail"id="getKey()">
<h3>getKey</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a></span> <spanclass="element-name">getKey</span>()</div>
<divclass="block"><spanclass="descfrm-type-label">Description copied from interface: <code><ahref="../Keyed.html#getKey()">Keyed</a></code></span></div>
<divclass="block">Return the namespaced identifier for this object.</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="../Keyed.html#getKey()">getKey</a></code> in interface <code><ahref="../Keyed.html"title="interface in org.bukkit">Keyed</a></code></dd>
<dt>Returns:</dt>
<dd>this object's key</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getName()">
<h3>getName</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
</span><spanclass="modifiers">public abstract</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">getName</span>()</div>
<divclass="block">Gets the level that this Enchantment should start at</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>Starting level of the Enchantment</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getItemTarget()">
<h3>getItemTarget</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public abstract</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="EnchantmentTarget.html"title="enum class in org.bukkit.enchantments">EnchantmentTarget</a></span> <spanclass="element-name">getItemTarget</span>()</div>
<divclass="block">Gets the type of <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a> that may fit this Enchantment.</div>
<divclass="member-signature"><spanclass="modifiers">public abstract</span> <spanclass="return-type">boolean</span> <spanclass="element-name">conflictsWith</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a> other)</span></div>
<divclass="block">Check if this enchantment conflicts with another enchantment.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>other</code> - The enchantment to check against</dd>
<divclass="member-signature"><spanclass="modifiers">public abstract</span> <spanclass="return-type">boolean</span> <spanclass="element-name">canEnchantItem</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory">ItemStack</a> item)</span></div>
<divclass="block">Checks if this Enchantment may be applied to the given <ahref="../inventory/ItemStack.html"title="class in org.bukkit.inventory"><code>ItemStack</code></a>.
<p>
This does not check if it conflicts with any enchantments already
applied to the item.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>item</code> - Item to test</dd>
<dt>Returns:</dt>
<dd>True if the enchantment may be applied, otherwise False</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="displayName(int)">
<h3>displayName</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public abstract</span> <spanclass="return-type"><ahref="https://jd.adventure.kyori.net/api/4.12.0/net/kyori/adventure/text/Component.html"title="class or interface in net.kyori.adventure.text"class="external-link">Component</a></span> <spanclass="element-name">displayName</span><wbr><spanclass="parameters">(int level)</span></div>
<divclass="block">Get the name of the enchantment with its applied level.
<p>
If the given <code>level</code> is either less than the <ahref="#getStartLevel()"><code>getStartLevel()</code></a> or greater than the <ahref="#getMaxLevel()"><code>getMaxLevel()</code></a>,
the level may not be shown in the numeral format one may otherwise expect.
</p></div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>level</code> - the level of the enchantment to show</dd>
<dt>Returns:</dt>
<dd>the name of the enchantment with <code>level</code> applied</dd>
<divclass="block">Checks if this enchantment can be found in an enchanting table
or use to enchant items generated by loot tables.</div>
<dlclass="notes">
<dt>Returns:</dt>
<dd>true if the enchantment can be found in a table or by loot tables</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getRarity()">
<h3>getRarity</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public abstract</span> <spanclass="return-type"><ahref="../../../io/papermc/paper/enchantments/EnchantmentRarity.html"title="enum class in io.papermc.paper.enchantments">EnchantmentRarity</a></span> <spanclass="element-name">getRarity</span>()</div>
<divclass="block">Gets the rarity of this enchantment.</div>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="../entity/EntityCategory.html"title="enum class in org.bukkit.entity">EntityCategory</a> entityCategory)</span></div>
<divclass="block">Gets the damage increase as a result of the level and entity category specified</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>level</code> - the level of enchantment</dd>
<dd><code>entityCategory</code> - the category of entity</dd>
<dt>Returns:</dt>
<dd>the damage increase</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="getActiveSlots()">
<h3>getActiveSlots</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public abstract</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Set.html"title="class or interface in java.util"class="external-link">Set</a><<ahref="../inventory/EquipmentSlot.html"title="enum class in org.bukkit.inventory">EquipmentSlot</a>></span> <spanclass="element-name">getActiveSlots</span>()</div>
<divclass="block">Gets the equipment slots where this enchantment is considered "active".</div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">boolean</span> <spanclass="element-name">equals</span><wbr><spanclass="parameters">(<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a> obj)</span></div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#equals(java.lang.Object)"title="class or interface in java.lang"class="external-link">equals</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#hashCode()"title="class or interface in java.lang"class="external-link">hashCode</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="toString()">
<h3>toString</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a></span> <spanclass="element-name">toString</span>()</div>
<dlclass="notes">
<dt>Overrides:</dt>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#toString()"title="class or interface in java.lang"class="external-link">toString</a></code> in class <code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></code></dd>
<divclass="member-signature"><spanclass="modifiers">public static</span> <spanclass="return-type">void</span> <spanclass="element-name">registerEnchantment</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a> enchantment)</span></div>
<divclass="block">Registers an enchantment with the given ID and object.
<p>
Generally not to be used from within a plugin.</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>enchantment</code> - Enchantment to register</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Contract</a>("null -> null")
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">getByKey</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="../NamespacedKey.html"title="class in org.bukkit">NamespacedKey</a> key)</span></div>
<divclass="block">Gets the Enchantment at the specified key</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>key</code> - key to fetch</dd>
<dt>Returns:</dt>
<dd>Resulting Enchantment, or null if not found</dd>
<divclass="member-signature"><spanclass="annotations"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Deprecated.html"title="class or interface in java.lang"class="external-link">@Deprecated</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Contract.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Contract</a>("null -> null")
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a></span> <spanclass="element-name">getByName</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html"title="class or interface in java.lang"class="external-link">String</a> name)</span></div>
<divclass="deprecation-comment">enchantments are badly named, use <ahref="#getByKey(org.bukkit.NamespacedKey)"><code>getByKey(org.bukkit.NamespacedKey)</code></a>.</div>
</div>
<divclass="block">Gets the Enchantment at the specified name</div>
<dlclass="notes">
<dt>Parameters:</dt>
<dd><code>name</code> - Name to fetch</dd>
<dt>Returns:</dt>
<dd>Resulting Enchantment, or null if not found</dd>
</dl>
</section>
</li>
<li>
<sectionclass="detail"id="values()">
<h3>values</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">public static</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="Enchantment.html"title="class in org.bukkit.enchantments">Enchantment</a>[]</span> <spanclass="element-name">values</span>()</div>
<divclass="block">Gets an array of all the registered <ahref="Enchantment.html"title="class in org.bukkit.enchantments"><code>Enchantment</code></a>s</div>