Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-5811

Missing enum in EnchantmentTarget

XMLWordPrintable

    • git-Spigot-758abbe-3f0c333
    • Yes

      I noticed that the enum org.bukkit.enchantments.EnchantmentTarget.ALL has been removed, is there an alternative for that?
       

      https://hub.spigotmc.org/stash/projects/SPIGOT/repos/bukkit/diff/src/main/java/org/bukkit/enchantments/EnchantmentTarget.java?until=eb5480423dfe8987b55cd408de434a54a9d327f4

       

      API Example:

      public class CustomEnchantmentWrapper extends EnchantmentWrapper {
          ...
          public EnchantmentTarget getItemTarget() {
              return EnchantmentTarget.ALL;
          }
          ...
      }
      

      This is used to make a custom enchantment wrapper.

            Unassigned Unassigned
            AlessioDP AlessioDP
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: