Interface BootstrapContext<T>
public interface BootstrapContext<T>
-
Method Summary
Modifier and TypeMethodDescriptiondefault <S> Optional<HolderLookup<S>> holderLookup(ResourceKey<? extends Registry<? extends S>> registry) <S> HolderGetter<S> lookup(ResourceKey<? extends Registry<? extends S>> key) default Holder.Reference<T> register(ResourceKey<T> key, T value) register(ResourceKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle)
-
Method Details
-
register
Holder.Reference<T> register(ResourceKey<T> key, T value, com.mojang.serialization.Lifecycle lifecycle) -
register
-
lookup
-
holderLookup
default <S> Optional<HolderLookup<S>> holderLookup(ResourceKey<? extends Registry<? extends S>> registry)
-