Class RegistryUtils

java.lang.Object
ch.njol.skript.bukkitutil.RegistryUtils

public class RegistryUtils extends Object
Utility class relating to Registry and RegistryKey
  • Constructor Details

    • RegistryUtils

      public RegistryUtils()
  • Method Details

    • getRegistryKey

      @Nullable public static @Nullable RegistryKey<?> getRegistryKey(String key)
    • getRegistryKeyByName

      @Nullable public static @Nullable RegistryKey<?> getRegistryKeyByName(String name)
    • getRegistryClass

      public static Class<?> getRegistryClass(RegistryKey<?> key)
    • toString

      public static String toString(RegistryKey<?> registryKey)
    • getAllNames

      public static String getAllNames()
      Get a String of all registy keys for docs
      Returns:
      Separated string of names for docs
    • getSupplier

      public static Supplier<Iterator<RegistryKey>> getSupplier()
      Get a supplier for ClassInfo registration
      Returns:
      Supplier for class info