diff --git a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java index d9b98ed6b4..dee2350d2b 100644 --- a/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java +++ b/paper-api/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java @@ -150,6 +150,16 @@ public enum EnchantmentTarget { public boolean includes(Material item) { return item.equals(Material.FISHING_ROD); } + }, + + /** + * Allows the enchantment to be placed on items with durability. + */ + BREAKABLE { + @Override + public boolean includes(Material item) { + return item.getMaxDurability() > 0 && item.getMaxStackSize() == 1; + } }; /**