java.lang.Object
me.jay.GravesX.util.pluginsWithoutMavenReposOrUsefulApiDocsThatCauseBugs.ReflectSupportAE

public final class ReflectSupportAE extends Object
Reflected class for AEAPI because you have to pay to use the API. What dumbass thinks that is a good idea. We only include this because people want it.

Java 17–compatible, no functional changes: just caches reflective lookups and fails closed.

  • Field Details

    • lookedUp

      private static volatile boolean lookedUp
    • available

      private static volatile boolean available
    • AEAPI

      private static Class<?> AEAPI
    • M_HAS_CUSTOM

      private static Method M_HAS_CUSTOM
    • M_GET_ENCHANTS

      private static Method M_GET_ENCHANTS
    • M_HAS_WHITESCROLL

      private static Method M_HAS_WHITESCROLL
  • Constructor Details

    • ReflectSupportAE

      private ReflectSupportAE()
  • Method Details

    • isSoulbound

      public static boolean isSoulbound(org.bukkit.inventory.ItemStack itemStack)
      Checks if the given ItemStack has the "Soulbound" enchantment, without ever statically linking against AEAPI.
    • hasWhitScroll

      public static boolean hasWhitScroll(org.bukkit.inventory.ItemStack itemStack)
      Checks if the given ItemStack has the "WhitScroll" enchantment, without ever statically linking against AEAPI.
    • ensureLookup

      private static void ensureLookup()