Interface RegistrySupplier<T>

All Superinterfaces:
Supplier<T>

public interface RegistrySupplier<T> extends Supplier<T>
A handle to a registered object. On NeoForge this wraps a DeferredHolder; on Fabric the value is registered eagerly and held directly. Either way Supplier.get() returns the registered value, so common code can use the same access pattern on both loaders.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.resources.ResourceLocation
     

    Methods inherited from interface java.util.function.Supplier

    get
  • Method Details

    • getId

      net.minecraft.resources.ResourceLocation getId()