Class RegistryLoaders

java.lang.Object
org.geysermc.geyser.registry.loader.RegistryLoaders

public final class RegistryLoaders extends Object
Holds common RegistryLoaders or utility methods surrounding them.
  • Field Details

  • Method Details

    • empty

      public static <V> RegistryLoader<Object,V> empty(@NonNull Supplier<V> supplier)
      Wraps the surrounding Supplier in a RegistryLoader which does not take in any input value.
      Type Parameters:
      V - the value
      Parameters:
      supplier - the supplier
      Returns:
      a RegistryLoader wrapping the given Supplier
    • uninitialized

      public static <I, V> RegistryLoader<I,V> uninitialized()
      Returns a RegistryLoader which has not taken in any input value.
      Type Parameters:
      I - the input
      V - the value
      Returns:
      a RegistryLoader that is yet to contain a value.