net.minecraft.core

public class DefaultedMappedRegistry<T>

extends MappedRegistry<T> implements DefaultedRegistry<T>

All mapped superinterfaces:

WritableRegistry, Registry, HolderLookup$RegistryLookup, HolderLookup, HolderGetter, HolderOwner, IdMap, DefaultedRegistry

jk
net.minecraft.core.DefaultedMappedRegistry
net.minecraft.class_2348
net.minecraft.unmapped.C_qnhgcvtq
net.minecraft.registry.SimpleDefaultedRegistry
net.minecraft.registry.DefaultMappedRegistry
net.minecraft.src.C_256713_
net.minecraft.core.DefaultedMappedRegistry

Field summary

Modifier and TypeField
private final ResourceLocation
b
defaultKey
field_11014
f_mxvnnuoz
defaultId
id
f_256918_
private Holder$Reference<T>
c
defaultValue
field_11015
f_zosutomx
defaultEntry
holderReference
f_256925_

Constructor summary

ModifierConstructor
public (String defaultId, ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, boolean intrusive)

Method summary

Modifier and TypeMethod
public Holder$Reference<T>
a(aly<T> arg0, T arg1, kc arg2)
register(ResourceKey<T> arg0, T arg1, RegistrationInfo arg2)
method_10272(class_5321<T> arg0, T arg1, class_9248 arg2)
m_yomgwjob(C_xhhleach<T> arg0, T arg1, C_jhxfjegj arg2)
add(RegistryKey<T> arg0, T arg1, RegistryEntryInfo arg2)
register(RegistryKey<T> arg0, T arg1, RegistrationInfo arg2)
m_255290_(C_5264_<T> p_328327_, T p_331941_, C_313696_ arg2)
public int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
m_rauboliw(T arg0)
getRawId(T arg0)
getRawId(T arg0)
m_7447_(T arg0)
public ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(T arg0)
m_vqpjfuha(T arg0)
getId(T arg0)
getId(T arg0)
m_7981_(T arg0)
public T
a(alz arg0)
getValue(ResourceLocation arg0)
method_63535(class_2960 arg0)
m_kxeijgiq(C_ncpywfca arg0)
get(Identifier arg0)
get(Identifier arg0)
m_122327_(C_5265_ arg0)
public Optional<T>
b(alz arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
m_vnyaisgo(C_ncpywfca arg0)
getOptionalValue(Identifier arg0)
getOrEmpty(Identifier arg0)
m_6612_(C_5265_ arg0)
public Optional<Holder$Reference<T>>
a()
getAny()
method_60385()
m_vongjcbr()
getDefaultEntry()
findAny()
m_338366_()
public T
a(int arg0)
byId(int arg0)
method_10200(int arg0)
m_jmjsmdoh(int arg0)
get(int arg0)
get(int arg0)
m_7942_(int arg0)
public Optional<Holder$Reference<T>>
a(bam arg0)
getRandom(RandomSource arg0)
method_10240(class_5819 arg0)
m_uxrzxmkr(C_rlomrsco arg0)
getRandom(Random arg0)
getRandom(RandomGenerator arg0)
m_213642_(C_212974_ arg0)
public ResourceLocation
b()
getDefaultKey()
method_10137()
m_fjrhcibj()
getDefaultId()
getDefaultId()
m_122315_()