net.minecraft.core

public class MappedRegistry<T>

implements WritableRegistry<T>

jq
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.Reference2IntMap<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<ResourceKey<T>, RegistrationInfo>
i
registrationInfos
field_49135
f_mxojfjuq
keyToEntryInfo
keyToRegistrationInfo
f_314552_
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 final HolderLookup$RegistryLookup<T>
n
lookup
field_41127
f_kyevqbpf
wrapper
lookup
f_256971_
private final Object
o
tagAdditionLock
field_51521
f_tscllrzp
tagLock
f_336400_

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 void
a()
validateWrite()
method_45939()
m_gqfaubze()
assertNotFrozen()
requireNotFrozen()
m_245419_()
private void
h(ale<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(ale<T> arg0, T arg1, ju arg2)
register(ResourceKey<T> arg0, T arg1, RegistrationInfo arg2)
method_10272(class_5321<T> arg0, T arg1, class_9248 arg2)
m_yomgwjob(C_xhhleach<T> arg0, T arg1, C_jhxfjegj arg2)
add(RegistryKey<T> arg0, T arg1, RegistryEntryInfo arg2)
register(RegistryKey<T> arg0, T arg1, RegistrationInfo arg2)
m_255290_(C_5264_<T> p_256591_, T p_329661_, C_313696_ 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>>
d(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(ale<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>>
c(alf arg0)
getHolder(ResourceLocation arg0)
method_55841(class_2960 arg0)
m_nxhthmir(C_ncpywfca arg0)
getEntry(Identifier arg0)
getHolder(Identifier arg0)
m_320017_(C_5265_ arg0)
public Optional<Holder$Reference<T>>
b(ale<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>
e(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>
i(ale<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 Optional<RegistrationInfo>
c(ale<T> arg0)
registrationInfo(ResourceKey<T> arg0)
method_57058(class_5321<T> arg0)
m_nlhggctm(C_xhhleach<T> arg0)
getEntryInfo(RegistryKey<T> arg0)
getRegistrationInfo(RegistryKey<T> arg0)
m_6228_(C_5264_<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(alf 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(ji$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(axf<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(axf<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(azh 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
d(alf 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
d(ale<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(axf<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<axf<T>, List<ji<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_()