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_312173_) private static HolderLookup.Provider
buildProviderWithContext
(RegistryAccess p_312694_, Stream<HolderLookup.RegistryLookup<?>> p_312024_) private <T> HolderLookup.RegistryLookup<T>
createLazyFullPatchedRegistries
(HolderOwner<T> p_312323_, Cloner.Factory p_311780_, ResourceKey<? extends Registry<? extends T>> p_311836_, HolderLookup.Provider p_312115_, HolderLookup.Provider p_312725_, org.apache.commons.lang3.mutable.MutableObject<HolderLookup.Provider> p_311797_) private HolderLookup.Provider
createLazyFullPatchedRegistries
(RegistryAccess p_312301_, HolderLookup.Provider p_311942_, Cloner.Factory p_312464_, Map<ResourceKey<? extends Registry<?>>, RegistrySetBuilder.RegistryContents<?>> p_312890_, HolderLookup.Provider p_311825_) 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_312781_, com.mojang.serialization.Lifecycle p_312783_, Map<ResourceKey<T>, Holder.Reference<T>> p_312180_) (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_312781_, com.mojang.serialization.Lifecycle p_312783_, Map<ResourceKey<T>, Holder.Reference<T>> p_312180_) -
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_312694_, Stream<HolderLookup.RegistryLookup<?>> p_312024_) -
build
-
createLazyFullPatchedRegistries
private HolderLookup.Provider createLazyFullPatchedRegistries(RegistryAccess p_312301_, HolderLookup.Provider p_311942_, Cloner.Factory p_312464_, Map<ResourceKey<? extends Registry<?>>, RegistrySetBuilder.RegistryContents<?>> p_312890_, HolderLookup.Provider p_311825_) -
createLazyFullPatchedRegistries
private <T> HolderLookup.RegistryLookup<T> createLazyFullPatchedRegistries(HolderOwner<T> p_312323_, Cloner.Factory p_311780_, ResourceKey<? extends Registry<? extends T>> p_311836_, HolderLookup.Provider p_312115_, HolderLookup.Provider p_312725_, org.apache.commons.lang3.mutable.MutableObject<HolderLookup.Provider> p_311797_) -
buildPatch
public RegistrySetBuilder.PatchedRegistries buildPatch(RegistryAccess p_255676_, HolderLookup.Provider p_255900_, Cloner.Factory p_312173_)
-