Class PaperUtils
java.lang.Object
ch.njol.skript.util.PaperUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends org.bukkit.Keyed>
@Nullable org.bukkit.Registry<T> getBukkitRegistry(String registry) Gets the BukkitRegistryfrom Paper'sRegistryKey.static <T extends org.bukkit.Keyed>
@Nullable io.papermc.paper.registry.RegistryKey<T> getBukkitRegistryKey(String registry) Gets a PaperRegistryKey.static booleanregistryExists(String registry) Check if a registry exists withinRegistryKey.
-
Constructor Details
-
PaperUtils
public PaperUtils()
-
-
Method Details
-
registryExists
Check if a registry exists withinRegistryKey.- 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 PaperRegistryKey.- Parameters:
registry- Registry key to get.- Returns:
- The Bukkit
Registryif registry exists elsenull.
-
getBukkitRegistry
@Nullable public static <T extends org.bukkit.Keyed> @Nullable org.bukkit.Registry<T> getBukkitRegistry(String registry) Gets the BukkitRegistryfrom Paper'sRegistryKey.- Parameters:
registry- Registry to get.- Returns:
- The Bukkit
Registryif registry exists elsenull.
-