net.minecraft.core

public class MappedRegistry<T>

implements WritableRegistry<T>

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

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_36635
f_wddqhgft
LOGGER
LOGGER
f_211050_
final ResourceKey<? extends Registry<T>>
c
key
field_41126
f_onmwzliz
key
registryKey
f_256817_
private final it.unimi.dsi.fastutil.objects.ObjectList<Holder$Reference<T>>
d
byId
field_26682
f_kyghykib
rawIdToEntry
rawIdToEntry
f_122672_
private final it.unimi.dsi.fastutil.objects.Object2IntMap<T>
e
toId
field_26683
f_tmrvgtrj
entryToRawId
entryToRawId
f_122673_
private final Map<ResourceLocation, Holder$Reference<T>>
f
byLocation
field_11107
f_oyicsmaj
idToEntry
byId
f_205841_
private final Map<ResourceKey<T>, Holder$Reference<T>>
g
byKey
field_25067
f_vizxqybx
keyToEntry
byKey
f_205842_
private final Map<T, Holder$Reference<T>>
h
byValue
field_36461
f_fahngefb
valueToEntry
byValue
f_205843_
private final Map<T, com.mojang.serialization.Lifecycle>
i
lifecycles
field_26731
f_tlngcayg
entryToLifecycle
entryToLifecycle
f_122676_
private com.mojang.serialization.Lifecycle
j
registryLifecycle
field_26732
f_ntcgjudy
lifecycle
lifecycle
f_256989_
private volatile Map<TagKey<T>, HolderSet$Named<T>>
k
tags
field_36462
f_cqbzxral
tagToEntryList
tags
f_205844_
private boolean
l
frozen
field_36463
f_ytdkeyex
frozen
frozen
f_205845_
private Map<T, Holder$Reference<T>>
m
unregisteredIntrusiveHolders
field_40584
f_gvnmqrzd
intrusiveValueToEntry
entryToIntrusiveHolder
f_244282_
private List<Holder$Reference<T>>
n
holdersInOrder
field_36634
f_iogkqurh
cachedEntries
holdersInOrder
f_211051_
private int
o
nextId
field_11109
f_rbivtjbc
nextId
nextId
f_122678_
private final HolderLookup$RegistryLookup<T>
p
lookup
field_41127
f_kyevqbpf
wrapper
lookup
f_256971_

Constructor summary

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

Method summary

Modifier and TypeMethod
public ResourceKey<? extends Registry<T>>
c()
key()
method_30517()
m_akxosniq()
getKey()
getKey()
m_123023_()
private List<Holder$Reference<T>>
a()
holdersInOrder()
method_40561()
m_onyhfito()
getEntries()
getHoldersInOrder()
m_211053_()
private void
v()
validateWrite()
method_45939()
m_gqfaubze()
assertNotFrozen()
requireNotFrozen()
m_245419_()
private void
g(acp<T> arg0)
validateWrite(ResourceKey<T> arg0)
method_40274(class_5321<T> arg0)
m_vnznjtqt(C_xhhleach<T> arg0)
assertNotFrozen(RegistryKey<T> key)
requireNotFrozen(RegistryKey<T> registryKey)
m_205921_(C_5264_<T> arg0)
public Holder$Reference<T>
a(int arg0, acp<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)
m_zuaztmwn(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_256594_, C_5264_<T> p_256374_, T p_256469_, com.mojang.serialization.Lifecycle arg3)
public Holder$Reference<T>
a(acp<T> arg0, T arg1, com.mojang.serialization.Lifecycle arg2)
register(ResourceKey<T> arg0, T arg1, com.mojang.serialization.Lifecycle arg2)
method_10272(class_5321<T> arg0, T arg1, com.mojang.serialization.Lifecycle arg2)
m_yomgwjob(C_xhhleach<T> arg0, T arg1, com.mojang.serialization.Lifecycle arg2)
add(RegistryKey<T> arg0, T arg1, com.mojang.serialization.Lifecycle arg2)
register(RegistryKey<T> arg0, T arg1, com.mojang.serialization.Lifecycle arg2)
m_255290_(C_5264_<T> p_256591_, T p_256255_, com.mojang.serialization.Lifecycle arg2)
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 Optional<ResourceKey<T>>
c(T arg0)
getResourceKey(T arg0)
method_29113(T arg0)
m_cjwbheqc(T arg0)
getKey(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)
getRawId(T arg0)
m_7447_(T arg0)
public T
a(acp<T> arg0)
get(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
m_jouyrjiz(C_xhhleach<T> arg0)
get(RegistryKey<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)
get(int arg0)
m_7942_(int arg0)
public Optional<Holder$Reference<T>>
c(int arg0)
getHolder(int arg0)
method_40265(int arg0)
m_icvixlic(int arg0)
getEntry(int arg0)
getHolder(int arg0)
m_203300_(int arg0)
public Optional<Holder$Reference<T>>
b(acp<T> arg0)
getHolder(ResourceKey<T> arg0)
method_40264(class_5321<T> arg0)
m_jrpizpyt(C_xhhleach<T> arg0)
getEntry(RegistryKey<T> arg0)
getHolder(RegistryKey<T> arg0)
m_203636_(C_5264_<T> arg0)
public Holder<T>
d(T arg0)
wrapAsHolder(T arg0)
method_47983(T arg0)
m_bpoptgww(T arg0)
getEntry(T arg0)
wrapAsHolder(T arg0)
m_263177_(T arg0)
Holder$Reference<T>
h(acp<T> arg0)
getOrCreateHolderOrThrow(ResourceKey<T> arg0)
method_44298(class_5321<T> arg0)
m_nikmvqdb(C_xhhleach<T> arg0)
getOrCreateEntry(RegistryKey<T> key)
getOrCreateHolderOrThrow(RegistryKey<T> registryKey)
m_245420_(C_5264_<T> arg0)
public int
b()
size()
method_10204()
m_mblxrshb()
size()
size()
m_13562_()
public com.mojang.serialization.Lifecycle
e(T arg0)
lifecycle(T arg0)
method_31139(T arg0)
m_sefrrypp(T arg0)
getEntryLifecycle(T arg0)
getEntryLifecycle(T arg0)
m_6228_(T arg0)
public com.mojang.serialization.Lifecycle
d()
registryLifecycle()
method_31138()
m_aotfisde()
getLifecycle()
getLifecycle()
m_203658_()
public Iterator<T>
iterator()
iterator()
iterator()
public T
a(acq 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)
private static <T> T
a(he$c<T> arg0)
getValueFromNullable(Holder$Reference<T> arg0)
method_40253(class_6880$class_6883<T> arg0)
m_xynptmgp(C_cjzoxshv$C_rjzpeyec<T> arg0)
getValue(RegistryEntry$Reference<T> entry)
getValueFromNullable(Holder$Reference<T> reference)
m_205865_(C_203228_$C_203231_<T> p_205866_)
public Set<ResourceLocation>
e()
keySet()
method_10235()
m_tuivosjn()
getIds()
getIds()
m_6566_()
public Set<ResourceKey<T>>
f()
registryKeySet()
method_42021()
m_ckzkjowv()
getKeys()
getKeys()
m_214010_()
public Set<Map$Entry<ResourceKey<T>, T>>
g()
entrySet()
method_29722()
m_nqoydeav()
getEntrySet()
getEntries()
m_6579_()
public Stream<Holder$Reference<T>>
h()
holders()
method_40270()
m_aeozypen()
streamEntries()
holders()
m_203611_()
public Stream<com.mojang.datafixers.util.Pair<TagKey<T>, HolderSet$Named<T>>>
i()
getTags()
method_40272()
m_wicxsqqn()
streamTagsAndEntries()
getTags()
m_203612_()
public HolderSet$Named<T>
a(anl<T> arg0)
getOrCreateTag(TagKey<T> arg0)
method_40260(class_6862<T> arg0)
m_yixsuhqe(C_ednuhnnn<T> arg0)
getOrCreateEntryList(TagKey<T> arg0)
getOrCreateTag(TagKey<T> arg0)
m_203561_(C_203208_<T> arg0)
private HolderSet$Named<T>
d(anl<T> arg0)
createTag(TagKey<T> arg0)
method_40562(class_6862<T> arg0)
m_myvytbrr(C_ednuhnnn<T> arg0)
createNamedEntryList(TagKey<T> tag)
createTag(TagKey<T> key)
m_211067_(C_203208_<T> arg0)
public Stream<TagKey<T>>
j()
getTagNames()
method_40273()
m_ojrrpohi()
streamTags()
getTagKeys()
m_203613_()
public boolean
k()
isEmpty()
method_35863()
m_uapzeinx()
isEmpty()
empty()
m_142427_()
public Optional<Holder$Reference<T>>
a(apf 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 boolean
c(acq arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
m_slujyvbt(C_ncpywfca arg0)
containsId(Identifier arg0)
containsId(Identifier arg0)
m_7804_(C_5265_ arg0)
public boolean
c(acp<T> arg0)
containsKey(ResourceKey<T> arg0)
method_35842(class_5321<T> arg0)
m_ueokaqte(C_xhhleach<T> arg0)
contains(RegistryKey<T> arg0)
contains(RegistryKey<T> arg0)
m_142003_(C_5264_<T> arg0)
public Registry<T>
l()
freeze()
method_40276()
m_fiunuwfp()
freeze()
freeze()
m_203521_()
public Holder$Reference<T>
f(T arg0)
createIntrusiveHolder(T arg0)
method_40269(T arg0)
m_dixnzblu(T arg0)
createEntry(T arg0)
createIntrusiveHolder(T arg0)
m_203693_(T arg0)
public Optional<HolderSet$Named<T>>
b(anl<T> arg0)
getTag(TagKey<T> arg0)
method_40266(class_6862<T> arg0)
m_zmzcglcp(C_ednuhnnn<T> arg0)
getEntryList(TagKey<T> arg0)
getTag(TagKey<T> arg0)
m_203431_(C_203208_<T> arg0)
public void
a(Map<anl<T>, List<he<T>>> arg0)
bindTags(Map<TagKey<T>, List<Holder<T>>> arg0)
method_40257(Map<class_6862<T>, List<class_6880<T>>> arg0)
m_hcgrzopp(Map<C_ednuhnnn<T>, List<C_cjzoxshv<T>>> arg0)
populateTags(Map<TagKey<T>, List<RegistryEntry<T>>> arg0)
bindTags(Map<TagKey<T>, List<Holder<T>>> arg0)
m_203652_(Map<C_203208_<T>, List<C_203228_<T>>> arg0)
public void
m()
resetTags()
method_40278()
m_rpcsjdnz()
clearTags()
resetTags()
m_203635_()
public HolderGetter<T>
n()
createRegistrationLookup()
method_46769()
m_ulbocxwk()
createMutableEntryLookup()
getHolderProvider()
m_203505_()
public HolderOwner<T>
o()
holderOwner()
method_46770()
m_zyikfshi()
getEntryOwner()
asHolderOwner()
m_255331_()
public HolderLookup$RegistryLookup<T>
p()
asLookup()
method_46771()
m_ecfgtygn()
getReadOnlyWrapper()
asLookup()
m_255303_()