Class PaperUtils

java.lang.Object
ch.njol.skript.util.PaperUtils

public class PaperUtils extends Object
  • Constructor Details

    • PaperUtils

      public PaperUtils()
  • Method Details

    • registryExists

      public static boolean registryExists(String registry)
      Check if a registry exists within RegistryKey
      Parameters:
      registry - Registry to check for (Fully qualified name of registry)
      Returns:
      True if registry exists else false
    • getBukkitRegistry

      @Nullable public static <T extends org.bukkit.Keyed> @Nullable org.bukkit.Registry<T> getBukkitRegistry(String registry)
      Gets the Bukkit Registry from Paper's RegistryKey.
      Parameters:
      registry - Registry to get (Fully qualified name of registry).
      Returns:
      The Bukkit Registry if registry exists else null.