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.
      Returns:
      True if registry exists else false.
    • getBukkitRegistryKey

      @Nullable public static <T extends org.bukkit.Keyed> @Nullable io.papermc.paper.registry.RegistryKey<T> getBukkitRegistryKey(String registry)
      Gets a Paper RegistryKey.
      Parameters:
      registry - Registry key to get.
      Returns:
      The Bukkit Registry if registry exists else null.
    • 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.
      Returns:
      The Bukkit Registry if registry exists else null.