Class RegistryObject<T>

java.lang.Object
net.darkhax.bookshelf.api.function.CachedSupplier<T>
net.darkhax.bookshelf.api.registry.RegistryObject<T>
All Implemented Interfaces:
Supplier<T>, IRegistryObject<T>

public class RegistryObject<T> extends CachedSupplier<T> implements IRegistryObject<T>
  • Constructor Details

    • RegistryObject

      protected RegistryObject(net.minecraft.resources.ResourceLocation id, Supplier<T> delegate)
  • Method Details

    • getRegistryName

      public net.minecraft.resources.ResourceLocation getRegistryName()
      Specified by:
      getRegistryName in interface IRegistryObject<T>
    • deferred

      public static <T> RegistryObject<?> deferred(net.minecraft.core.Registry<T> registry, String namespace, String id)
    • deferred

      public static <T> RegistryObject<?> deferred(net.minecraft.core.Registry<T> registry, net.minecraft.resources.ResourceLocation id)