net.minecraft.core

public class DefaultedRegistry<T>

extends MappedRegistry<T>

All mapped superinterfaces:

IdMap

gn
net.minecraft.core.DefaultedRegistry
net.minecraft.class_2348
net.minecraft.unmapped.C_zogerkic
net.minecraft.util.registry.DefaultedRegistry
net.minecraft.util.registry.DefaultedRegistry
net.minecraft.src.C_4686_
net.minecraft.core.RegistryBlocks

Field summary

Modifier and TypeField
private final ResourceLocation
bC
defaultKey
field_11014
f_dkdsmbqy
defaultId
defaultId
f_122309_
private Holder<T>
bD
defaultValue
field_11015
f_bqsdxylb
defaultEntry
defaultValue
f_122310_

Constructor summary

ModifierConstructor
public (String defaultId, ResourceKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, Function<T, Holder$Reference<T>> valueToEntryFunction)

Method summary

Modifier and TypeMethod
public Holder<T>
a(int arg0, ys<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
registerMapping(int arg0, ResourceKey<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
method_10273(int arg0, class_5321<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
m_klxbakqc(int arg0, C_xhhleach<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
set(int arg0, RegistryKey<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
set(int arg0, RegistryKey<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
m_203704_(int p_205699_, C_5264_<T> p_205700_, T p_205701_, com.mojang.serialization.Lifecycle arg3)
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(yt arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
m_mazpxlja(C_ncpywfca arg0)
get(Identifier arg0)
get(Identifier arg0)
m_7745_(C_5265_ arg0)
public Optional<T>
b(yt arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
m_vnyaisgo(C_ncpywfca arg0)
getOrEmpty(Identifier arg0)
getOrEmpty(Identifier arg0)
m_6612_(C_5265_ arg0)
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<T>>
a(Random arg0)
getRandom(Random arg0)
method_10240(Random arg0)
m_uxrzxmkr(Random arg0)
getRandom(Random arg0)
getRandom(Random arg0)
m_203454_(Random arg0)
public ResourceLocation
a()
getDefaultKey()
method_10137()
m_fjrhcibj()
getDefaultId()
getDefaultId()
m_122315_()