Package net.minecraft.core
Class RegistrySetBuilder
java.lang.Object
net.minecraft.core.RegistrySetBuilder
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static final record
(package private) static class
(package private) static class
(package private) static class
static final record
(package private) static final record
static interface
(package private) static final record
(package private) static final record
(package private) static class
(package private) static final record
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ResourceKey<? extends Registry<T>> p_256446_, com.mojang.serialization.Lifecycle p_256394_, RegistrySetBuilder.RegistryBootstrap<T> p_256638_) add
(ResourceKey<? extends Registry<T>> p_256261_, RegistrySetBuilder.RegistryBootstrap<T> p_256010_) build
(RegistryAccess p_256112_) buildPatch
(RegistryAccess p_255676_, HolderLookup.Provider p_255900_, Cloner.Factory p_310265_) private static HolderLookup.Provider
buildProviderWithContext
(RegistryAccess p_311176_, Stream<HolderLookup.RegistryLookup<?>> p_311668_) private <T> HolderLookup.RegistryLookup<T>
createLazyFullPatchedRegistries
(HolderOwner<T> p_312548_, Cloner.Factory p_312934_, ResourceKey<? extends Registry<? extends T>> p_313093_, HolderLookup.Provider p_311682_, HolderLookup.Provider p_313198_, org.apache.commons.lang3.mutable.MutableObject<HolderLookup.Provider> p_311605_) private HolderLookup.Provider
createLazyFullPatchedRegistries
(RegistryAccess p_312999_, HolderLookup.Provider p_309815_, Cloner.Factory p_311992_, Map<ResourceKey<? extends Registry<?>>, RegistrySetBuilder.RegistryContents<?>> p_309672_, HolderLookup.Provider p_312434_) private RegistrySetBuilder.BuildState
createState
(RegistryAccess p_256400_) List<? extends ResourceKey<? extends Registry<?>>>
(package private) static <T> HolderLookup.RegistryLookup<T>
lookupFromMap
(ResourceKey<? extends Registry<? extends T>> p_311196_, com.mojang.serialization.Lifecycle p_311352_, Map<ResourceKey<T>, Holder.Reference<T>> p_311458_) (package private) static <T> HolderGetter<T>
wrapContextLookup
(HolderLookup.RegistryLookup<T> p_255625_)
-
Field Details
-
entries
-
-
Constructor Details
-
RegistrySetBuilder
public RegistrySetBuilder()
-
-
Method Details
-
wrapContextLookup
-
lookupFromMap
static <T> HolderLookup.RegistryLookup<T> lookupFromMap(ResourceKey<? extends Registry<? extends T>> p_311196_, com.mojang.serialization.Lifecycle p_311352_, Map<ResourceKey<T>, Holder.Reference<T>> p_311458_) -
add
public <T> RegistrySetBuilder add(ResourceKey<? extends Registry<T>> p_256446_, com.mojang.serialization.Lifecycle p_256394_, RegistrySetBuilder.RegistryBootstrap<T> p_256638_) -
add
public <T> RegistrySetBuilder add(ResourceKey<? extends Registry<T>> p_256261_, RegistrySetBuilder.RegistryBootstrap<T> p_256010_) -
getEntryKeys
-
createState
-
buildProviderWithContext
private static HolderLookup.Provider buildProviderWithContext(RegistryAccess p_311176_, Stream<HolderLookup.RegistryLookup<?>> p_311668_) -
build
-
createLazyFullPatchedRegistries
private HolderLookup.Provider createLazyFullPatchedRegistries(RegistryAccess p_312999_, HolderLookup.Provider p_309815_, Cloner.Factory p_311992_, Map<ResourceKey<? extends Registry<?>>, RegistrySetBuilder.RegistryContents<?>> p_309672_, HolderLookup.Provider p_312434_) -
createLazyFullPatchedRegistries
private <T> HolderLookup.RegistryLookup<T> createLazyFullPatchedRegistries(HolderOwner<T> p_312548_, Cloner.Factory p_312934_, ResourceKey<? extends Registry<? extends T>> p_313093_, HolderLookup.Provider p_311682_, HolderLookup.Provider p_313198_, org.apache.commons.lang3.mutable.MutableObject<HolderLookup.Provider> p_311605_) -
buildPatch
public RegistrySetBuilder.PatchedRegistries buildPatch(RegistryAccess p_255676_, HolderLookup.Provider p_255900_, Cloner.Factory p_310265_)
-