Class RegistryLoaders

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

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

  • Constructor Details

    • RegistryLoaders

      public RegistryLoaders()
  • Method Details

    • empty

      public static <V> RegistryLoader<Object,​V> empty(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