Package ch.njol.skript.util
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 BukkitRegistry
from Paper'sRegistryKey
.static boolean
registryExists
(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 (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 BukkitRegistry
from Paper'sRegistryKey
.- Parameters:
registry
- Registry to get (Fully qualified name of registry).- Returns:
- The Bukkit
Registry
if registry exists elsenull
.
-