net.minecraft.core

public class MappedRegistry<T>

extends WritableRegistry<T>

All mapped superinterfaces:

IdMap

gh
net.minecraft.core.MappedRegistry
net.minecraft.class_2370
net.minecraft.unmapped.C_secmvxxe
net.minecraft.util.registry.SimpleRegistry
net.minecraft.util.registry.SimpleRegistry
net.minecraft.server.v1_16_R1.RegistryMaterials

Field summary

Modifier and TypeField
protected static final org.apache.logging.log4j.Logger
a
LOGGER
field_11111
f_wddqhgft
LOGGER
field_148743_a
protected final CrudeIncrementalIntIdentityHashBiMap<T>
b
map
field_11110
f_llijtyvn
indexedEntries
field_148759_a
protected final com.google.common.collect.BiMap<ResourceLocation, T>
c
storage
field_11107
f_jfiktwye
entriesById
field_82596_a
private final com.google.common.collect.BiMap<ResourceKey<T>, T>
bb
keyStorage
field_25067
f_ovgxltgv
entriesByKey
field_239649_bb_
private final Set<ResourceKey<T>>
bc
persistent
field_25489
f_estpnnvu
loadedKeys
field_239650_bc_
protected Object[]
d
randomCache
field_11108
f_ahrzywoz
randomEntries
field_186802_b
private int
bd
nextId
field_11109
f_rbivtjbc
nextId
field_195869_d

Constructor summary

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

Method summary

Modifier and TypeMethod
public <V extends T> V
a(int arg0, ug<T> arg1, V arg2)
registerMapping(int arg0, ResourceKey<T> arg1, V arg2)
method_10273(int arg0, class_5321<T> arg1, V arg2)
m_klxbakqc(int arg0, C_xhhleach<T> arg1, V arg2)
set(int arg0, RegistryKey<T> arg1, V arg2)
func_218382_a(int arg0, RegistryKey<T> arg1, V arg2)
public <V extends T> V
a(ug<T> arg0, V arg1)
register(ResourceKey<T> arg0, V arg1)
method_10272(class_5321<T> arg0, V arg1)
m_yomgwjob(C_xhhleach<T> arg0, V arg1)
add(RegistryKey<T> arg0, V arg1)
func_218381_a(RegistryKey<T> arg0, V arg1)
public ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(T arg0)
m_vqpjfuha(T arg0)
getId(T arg0)
func_177774_c(T arg0)
getKey(T arg0)
public Optional<ResourceKey<T>>
c(T arg0)
getResourceKey(T arg0)
method_29113(T arg0)
m_cjwbheqc(T arg0)
getKey(T arg0)
func_230519_c_(T arg0)
public int
a(T arg0)
getId(T arg0)
method_10249(T arg0)
m_yjcttayg(T arg0)
getRawId(T arg0)
func_148757_b(T arg0)
public T
a(ug<T> arg0)
get(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
m_jouyrjiz(C_xhhleach<T> arg0)
get(RegistryKey<T> arg0)
func_230516_a_(RegistryKey<T> arg0)
public T
a(int arg0)
byId(int arg0)
method_10200(int arg0)
m_jmjsmdoh(int arg0)
get(int arg0)
func_148745_a(int arg0)
fromId(int arg0)
public Iterator<T>
iterator()
iterator()
iterator()
iterator()
iterator()
public T
a(uh arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
m_mazpxlja(C_ncpywfca arg0)
get(Identifier arg0)
func_82594_a(ResourceLocation arg0)
get(MinecraftKey arg0)
public Optional<T>
b(uh arg0)
getOptional(ResourceLocation arg0)
method_17966(class_2960 arg0)
m_ccjpcnxk(C_ncpywfca arg0)
getOrEmpty(Identifier arg0)
func_218349_b(ResourceLocation arg0)
getOptional(MinecraftKey arg0)
public Set<ResourceLocation>
b()
keySet()
method_10235()
m_tuivosjn()
getIds()
func_148742_b()
keySet()
public Set<Map$Entry<ResourceKey<T>, T>>
c()
entrySet()
method_29722()
m_dlmnvmpq()
getEntries()
func_239659_c_()
public T
a(Random arg0)
getRandom(Random arg0)
method_10240(Random arg0)
m_maytmwct(Random arg0)
getRandom(Random arg0)
func_186801_a(Random arg0)
public boolean
c(uh arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
m_slujyvbt(C_ncpywfca arg0)
containsId(Identifier arg0)
func_212607_c(ResourceLocation arg0)
public boolean
b(int arg0)
containsId(int arg0)
method_29111(int arg0)
m_eqxeipcw(int arg0)
containsId(int arg0)
func_230518_b_(int arg0)
public boolean
c(ug<T> arg0)
persistent(ResourceKey<T> arg0)
method_29723(class_5321<T> arg0)
m_ilvplwry(C_xhhleach<T> arg0)
isLoaded(RegistryKey<T> arg0)
func_239660_c_(RegistryKey<T> arg0)
public void
d(ug<T> arg0)
setPersistent(ResourceKey<T> arg0)
method_29725(class_5321<T> arg0)
m_xbxvfifp(C_xhhleach<T> arg0)
markLoaded(RegistryKey<T> arg0)
func_239662_d_(RegistryKey<T> arg0)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
a(ug<gl<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
networkCodec(ResourceKey<Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
method_29098(class_5321<class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
m_ibtmxcjv(C_xhhleach<C_tqxyjqsk<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
method_29098(RegistryKey<Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
func_241743_a_(RegistryKey<Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
b(ug<gl<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
dataPackCodec(ResourceKey<Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
method_29721(class_5321<class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
m_pqxmhhvi(C_xhhleach<C_tqxyjqsk<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
createCodec(RegistryKey<Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.MapCodec<T> arg2)
func_241744_b_(RegistryKey<Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
c(ug<gl<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
directCodec(ResourceKey<Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
method_29724(class_5321<class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
m_tocgrkkm(C_xhhleach<C_tqxyjqsk<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)
createEmptyCodec(RegistryKey<Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.MapCodec<T> arg2)
func_241745_c_(RegistryKey<Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.MapCodec<T> arg2)