net.minecraft.core

public class DefaultedMappedRegistry<T>

extends MappedRegistry<T> implements DefaultedRegistry<T>

All mapped superinterfaces:

WritableRegistry, Registry, IdMap, DefaultedRegistry

ia
net.minecraft.core.DefaultedMappedRegistry
net.minecraft.class_2348
net.minecraft.registry.SimpleDefaultedRegistry
net.minecraft.src.C_256713_
net.minecraft.core.DefaultedMappedRegistry

Field summary

Modifier and TypeField
private final ResourceLocation
b
defaultKey
field_11014
defaultId
f_256918_
private Holder$Reference<T>
c
defaultValue
field_11015
defaultEntry
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(int arg0, ahf<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
registerMapping(int arg0, ResourceKey<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
method_46744(int arg0, class_5321<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
set(int arg0, RegistryKey<T> arg1, T arg2, com.mojang.serialization.Lifecycle arg3)
m_255320_(int p_259677_, C_5264_<T> p_259430_, T p_259516_, com.mojang.serialization.Lifecycle arg3)
public int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
getRawId(T arg0)
m_7447_(T arg0)
public ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(T arg0)
getId(T arg0)
m_7981_(T arg0)
public T
a(ahg arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
get(Identifier arg0)
m_7745_(C_5265_ arg0)
public Optional<T>
b(ahg arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
getOrEmpty(Identifier arg0)
m_6612_(C_5265_ arg0)
public T
a(int arg0)
byId(int arg0)
method_10200(int arg0)
get(int arg0)
m_7942_(int arg0)
public Optional<Holder$Reference<T>>
a(auv arg0)
getRandom(RandomSource arg0)
method_10240(class_5819 arg0)
getRandom(Random arg0)
m_213642_(C_212974_ arg0)
public ResourceLocation
a()
getDefaultKey()
method_10137()
getDefaultId()
m_122315_()