Class SpigotUtil

java.lang.Object
net.citizensnpcs.api.util.SpigotUtil

public class SpigotUtil extends Object
  • Constructor Details

    • SpigotUtil

      public SpigotUtil()
  • Method Details

    • checkYSafe

      public static boolean checkYSafe(double y, World world)
    • getKey

      public static NamespacedKey getKey(String raw)
    • getKey

      public static NamespacedKey getKey(String raw, String defaultNamespace)
    • getMaxNameLength

      public static int getMaxNameLength(EntityType type)
    • getMinecraftPackage

      public static String getMinecraftPackage()
    • getVersion

      public static int[] getVersion()
    • isRegistryKeyed

      public static boolean isRegistryKeyed(Class<?> clazz)
    • isUsing1_13API

      public static boolean isUsing1_13API()
    • parseDuration

      public static Duration parseDuration(String raw, TimeUnit defaultUnits)
    • parseItemStack

      public static ItemStack parseItemStack(ItemStack base, String item)