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>
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRegistryObject(net.minecraft.resources.ResourceLocation id, Supplier<T> delegate) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> RegistryObject<?>static <T> RegistryObject<?>deferred(net.minecraft.core.Registry<T> registry, net.minecraft.resources.ResourceLocation id) net.minecraft.resources.ResourceLocationMethods inherited from class net.darkhax.bookshelf.api.function.CachedSupplier
apply, cache, cast, get, ifCached, ifPresent, invalidate, isCached, singleton
-
Constructor Details
-
RegistryObject
-
-
Method Details
-
getRegistryName
public net.minecraft.resources.ResourceLocation getRegistryName()- Specified by:
getRegistryNamein interfaceIRegistryObject<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)
-