net.minecraft.registry

public abstract class RegistryLoader<T>

net.minecraft.resources.RegistryLoadTask
net.minecraft.class_1_102
net.minecraft.registry.RegistryLoader

Field summary

Modifier and TypeField
private final Object
registryWriteLock
field_1_988
cacheLock
protected final RegistryLoading$Entry<T>
data
field_1_984
entry
private final MutableRegistry<T>
registry
field_1_987
registry
protected final CachedRegistryWrapper<T>
concurrentRegistrationGetter
field_1_983
cachedRegistryWrapper
protected final Map<RegistryKey<?>, Exception>
loadingErrors
field_1_986
exceptionsByKey
private volatile boolean
elementsRegistered
field_1_985
elementsRegistered

Constructor summary

ModifierConstructor
protected (RegistryLoading$Entry<T> entry, com.mojang.serialization.Lifecycle lifecycle, Map<RegistryKey<?>, Exception> exceptionsByKey)

Method summary

Modifier and TypeMethod
protected RegistryKey<? extends Registry<T>>
registryKey()
method_1_896()
getRegistryKey()
protected Registry<T>
readOnlyRegistry()
method_1_893()
getRegistry()
public abstract CompletableFuture<?>
load(RegistryOps$RegistryInfoLookup context, Executor executor)
method_1_453(class_6903$class_7863 arg0, Executor arg1)
load(RegistryOps$RegistryInfoGetter infoGetter, Executor arg1)
public RegistryOps$RegistryInfo<?>
createRegistryInfo()
method_1_888()
createInfo()
protected void
registerElements(Stream<RegistryLoadTask$PendingRegistration<T>> elements)
method_1_894(Stream<class_1_102$class_1_21<T>> arg0)
addResults(Stream<RegistryLoader$Result<T>> results)
protected void
registerTags(Map<TagKey<T>, List<Holder<T>>> pendingTags)
method_1_895(Map<class_6862<T>, List<class_6880<T>>> arg0)
setEntries(Map<TagKey<T>, List<RegistryEntry<T>>> entries)
public boolean
freezeRegistry(Map<ResourceKey<?>, Exception> loadingErrors)
method_1_889(Map<class_5321<?>, Exception> arg0)
freeze(Map<RegistryKey<?>, Exception> exceptionsOut)
public Optional<Registry<T>>
validateRegistry(Map<ResourceKey<?>, Exception> loadingErrors)
method_1_897(Map<class_5321<?>, Exception> arg0)
validate(Map<RegistryKey<?>, Exception> exceptionsOut)
private void
lambda$registerElements$0(RegistryLoadTask$PendingRegistration arg0)
method_1_890(class_1_102$class_1_21 arg0)
method_1_890(RegistryLoader$Result result)
private void
lambda$registerElements$2(RegistryLoadTask$PendingRegistration arg0, Exception arg1)
method_1_892(class_1_102$class_1_21 arg0, Exception arg1)
method_1_892(RegistryLoader$Result arg0, Exception exception)
private void
lambda$registerElements$1(RegistryLoadTask$PendingRegistration arg0, Object arg1)
method_1_891(class_1_102$class_1_21 arg0, Object arg1)
method_1_891(RegistryLoader$Result arg0, Object value)