Package net.citizensnpcs.api.util
Class SpigotUtil
java.lang.Object
net.citizensnpcs.api.util.SpigotUtil
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Spigot has changed InventoryViews to be an abstract class instead of an interface necessitating an abstraction over the existing API to avoid java runtime errors. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
checkYSafe
(double y, World world) static NamespacedKey
static NamespacedKey
static int
getMaxNameLength
(EntityType type) static String
static int[]
static boolean
isRegistryKeyed
(Class<?> clazz) static boolean
static Duration
parseDuration
(String raw, TimeUnit defaultUnits) static ItemStack
parseItemStack
(ItemStack base, String item)
-
Constructor Details
-
SpigotUtil
public SpigotUtil()
-
-
Method Details
-
checkYSafe
-
getKey
-
getKey
-
getMaxNameLength
-
getMinecraftPackage
-
getVersion
public static int[] getVersion() -
isRegistryKeyed
-
isUsing1_13API
public static boolean isUsing1_13API() -
parseDuration
-
parseItemStack
-