Class ReflectSupportAE
java.lang.Object
me.jay.GravesX.util.pluginsWithoutMavenReposOrUsefulApiDocsThatCauseBugs.ReflectSupportAE
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static voidstatic booleanhasWhitScroll(org.bukkit.inventory.ItemStack itemStack) Checks if the given ItemStack has the "WhitScroll" enchantment, without ever statically linking against AEAPI.static booleanisSoulbound(org.bukkit.inventory.ItemStack itemStack) Checks if the given ItemStack has the "Soulbound" enchantment, without ever statically linking against AEAPI.
-
Field Details
-
lookedUp
private static volatile boolean lookedUp -
available
private static volatile boolean available -
AEAPI
-
M_HAS_CUSTOM
-
M_GET_ENCHANTS
-
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()
-