Class FabricRegister<T>

java.lang.Object
net.xun.lib.common.api.registries.Register<T>
net.xun.lib.fabric.api.registries.FabricRegister<T>
All Implemented Interfaces:
Iterable<T>

public class FabricRegister<T> extends Register<T>
  • Constructor Details

    • FabricRegister

      public FabricRegister(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry, String namespace)
  • Method Details

    • bind

      protected <R extends T> void bind(RegistryHolder<T,R> holder)
      Description copied from class: Register
      Binds a registry holder to the actual registry entry.
      Specified by:
      bind in class Register<T>
      Type Parameters:
      R - The concrete type of the registered object
      Parameters:
      holder - The registry holder to bind