net.minecraft.core

public class MappedRegistry<T>

extends WritableRegistry<T>

All mapped superinterfaces:

IdMap

gs
net.minecraft.core.MappedRegistry
net.minecraft.class_2370
net.minecraft.unmapped.C_secmvxxe
net.minecraft.util.registry.SimpleRegistry
net.minecraft.src.C_4700_
net.minecraft.core.RegistryMaterials

Field summary

Modifier and TypeField
protected static final org.apache.logging.log4j.Logger
b
LOGGER
field_11111
f_wddqhgft
LOGGER
f_122670_
private final it.unimi.dsi.fastutil.objects.ObjectList<T>
bz
byId
field_26682
f_kyghykib
rawIdToEntry
f_122672_
private final it.unimi.dsi.fastutil.objects.Object2IntMap<T>
bA
toId
field_26683
f_tmrvgtrj
entryToRawId
f_122673_
private final com.google.common.collect.BiMap<ResourceLocation, T>
bB
storage
field_11107
f_jfiktwye
idToEntry
f_122674_
private final com.google.common.collect.BiMap<ResourceKey<T>, T>
bC
keyStorage
field_25067
f_ovgxltgv
keyToEntry
f_122675_
private final Map<T, com.mojang.serialization.Lifecycle>
bD
lifecycles
field_26731
f_tlngcayg
entryToLifecycle
f_122676_
private com.mojang.serialization.Lifecycle
bE
elementsLifecycle
field_26732
f_tjecakfq
lifecycle
f_122677_
protected Object[]
c
randomCache
field_11108
f_ahrzywoz
randomEntries
f_122671_
private int
bF
nextId
field_11109
f_rbivtjbc
nextId
f_122678_

Constructor summary

ModifierConstructor
public (ResourceKey<? extends Registry<T>> p_122682_, com.mojang.serialization.Lifecycle arg1)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.MapCodec<MappedRegistry$RegistryEntry<T>>
a(yg<? extends gx<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
withNameAndId(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
method_30929(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
m_nxwaegwb(C_xhhleach<? extends C_tqxyjqsk<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
createRegistryManagerEntryCodec(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.MapCodec<T> entryCodec)
m_122727_(C_5264_<? extends C_4705_<T>> p_122728_, com.mojang.serialization.MapCodec<T> p_122729_)
public <V extends T> V
a(int arg0, yg<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
registerMapping(int arg0, ResourceKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
method_10273(int arg0, class_5321<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
m_klxbakqc(int arg0, C_xhhleach<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
set(int arg0, RegistryKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
m_5748_(int p_122687_, C_5264_<T> p_122688_, V p_122689_, com.mojang.serialization.Lifecycle arg3)
private <V extends T> V
a(int arg0, yg<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
registerMapping(int arg0, ResourceKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
method_31051(int arg0, class_5321<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
m_gdoohyfk(int arg0, C_xhhleach<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
set(int rawId, RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle lifecycle, boolean checkDuplicateKeys)
m_122690_(int p_122692_, C_5264_<T> p_122693_, V p_122694_, com.mojang.serialization.Lifecycle p_122695_, boolean arg4)
public <V extends T> V
a(yg<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
register(ResourceKey<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
method_10272(class_5321<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
m_yomgwjob(C_xhhleach<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
add(RegistryKey<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
m_7135_(C_5264_<T> p_122736_, V p_122737_, com.mojang.serialization.Lifecycle arg2)
public <V extends T> V
a(OptionalInt arg0, yg<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
registerOrOverride(OptionalInt arg0, ResourceKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
method_31062(OptionalInt arg0, class_5321<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
m_gppyulpm(OptionalInt arg0, C_xhhleach<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
replace(OptionalInt arg0, RegistryKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
m_7794_(OptionalInt p_122709_, C_5264_<T> p_122710_, V p_122711_, com.mojang.serialization.Lifecycle arg3)
public ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(T arg0)
m_vqpjfuha(T arg0)
getId(T arg0)
m_7981_(T arg0)
public Optional<ResourceKey<T>>
c(T arg0)
getResourceKey(T arg0)
method_29113(T arg0)
m_cjwbheqc(T arg0)
getKey(T arg0)
m_7854_(T arg0)
public int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
m_rauboliw(T arg0)
getRawId(T arg0)
m_7447_(T arg0)
public T
a(yg<T> arg0)
get(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
m_jouyrjiz(C_xhhleach<T> arg0)
get(RegistryKey<T> arg0)
m_6246_(C_5264_<T> arg0)
public T
a(int arg0)
byId(int arg0)
method_10200(int arg0)
m_jmjsmdoh(int arg0)
get(int arg0)
m_7942_(int arg0)
public int
b()
size()
method_10204()
m_mblxrshb()
size()
m_183450_()
public com.mojang.serialization.Lifecycle
d(T arg0)
lifecycle(T arg0)
method_31139(T arg0)
m_mfexjqmi(T arg0)
getEntryLifecycle(T arg0)
m_6228_(T arg0)
public com.mojang.serialization.Lifecycle
c()
elementsLifecycle()
method_31138()
m_agebnisp()
getLifecycle()
m_7837_()
public Iterator<T>
iterator()
iterator()
iterator()
public T
a(yh arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
m_mazpxlja(C_ncpywfca arg0)
get(Identifier arg0)
m_7745_(C_5265_ arg0)
public Set<ResourceLocation>
d()
keySet()
method_10235()
m_tuivosjn()
getIds()
m_6566_()
public Set<Map$Entry<ResourceKey<T>, T>>
e()
entrySet()
method_29722()
m_nqoydeav()
getEntries()
m_6579_()
public boolean
f()
isEmpty()
method_35863()
m_uapzeinx()
isEmpty()
m_142427_()
public T
a(Random arg0)
getRandom(Random arg0)
method_10240(Random arg0)
m_uxrzxmkr(Random arg0)
getRandom(Random arg0)
m_142697_(Random arg0)
public boolean
c(yh arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
m_slujyvbt(C_ncpywfca arg0)
containsId(Identifier arg0)
m_7804_(C_5265_ arg0)
public boolean
b(yg<T> arg0)
containsKey(ResourceKey<T> arg0)
method_35842(class_5321<T> arg0)
m_ueokaqte(C_xhhleach<T> arg0)
contains(RegistryKey<T> arg0)
m_142003_(C_5264_<T> arg0)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
a(yg<? extends gx<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
networkCodec(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
method_29098(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
m_ibtmxcjv(C_xhhleach<? extends C_tqxyjqsk<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
createRegistryManagerCodec(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> entryCodec)
m_122715_(C_5264_<? extends C_4705_<T>> p_122716_, com.mojang.serialization.Lifecycle p_122717_, com.mojang.serialization.Codec<T> p_122718_)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
b(yg<? extends gx<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
dataPackCodec(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
method_29721(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
m_pqxmhhvi(C_xhhleach<? extends C_tqxyjqsk<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
createRegistryCodec(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> entryCodec)
m_122747_(C_5264_<? extends C_4705_<T>> p_122748_, com.mojang.serialization.Lifecycle p_122749_, com.mojang.serialization.Codec<T> p_122750_)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
c(yg<? extends gx<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
directCodec(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
method_31059(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
m_tocgrkkm(C_xhhleach<? extends C_tqxyjqsk<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
createCodec(RegistryKey<? extends Registry<T>> key, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> entryCodec)
m_122756_(C_5264_<? extends C_4705_<T>> p_122757_, com.mojang.serialization.Lifecycle p_122758_, com.mojang.serialization.Codec<T> p_122759_)