Class DeferredRegister.RegistryHolder<V>

java.lang.Object
net.neoforged.neoforge.registries.DeferredRegister.RegistryHolder<V>
All Implemented Interfaces:
Supplier<net.minecraft.core.Registry<V>>
Enclosing class:
DeferredRegister<T>

private static class DeferredRegister.RegistryHolder<V> extends Object implements Supplier<net.minecraft.core.Registry<V>>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private net.minecraft.core.Registry<V>
     
    private final net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<V>>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    RegistryHolder(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<V>> registryKey)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @Nullable net.minecraft.core.Registry<V>
    get()
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • registryKey

      private final net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<V>> registryKey
    • registry

      private net.minecraft.core.Registry<V> registry
  • Constructor Details

    • RegistryHolder

      private RegistryHolder(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<V>> registryKey)
  • Method Details

    • get

      @Nullable public @Nullable net.minecraft.core.Registry<V> get()
      Specified by:
      get in interface Supplier<V>