net.minecraft.core

public class MappedRegistry<T>

implements WritableRegistry<T>

jz
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 final ResourceKey<? extends Registry<T>>
b
key
field_41126
f_onmwzliz
key
key
f_256817_
private final it.unimi.dsi.fastutil.objects.ObjectList<Holder$Reference<T>>
c
byId
field_26682
f_kyghykib
rawIdToEntry
rawIdToEntry
f_122672_
private final it.unimi.dsi.fastutil.objects.Reference2IntMap<T>
d
toId
field_26683
f_tmrvgtrj
entryToRawId
entryToRawId
f_122673_
private final Map<ResourceLocation, Holder$Reference<T>>
e
byLocation
field_11107
f_oyicsmaj
idToEntry
byId
f_205841_
private final Map<ResourceKey<T>, Holder$Reference<T>>
f
byKey
field_25067
f_vizxqybx
keyToEntry
byKey
f_205842_
private final Map<T, Holder$Reference<T>>
g
byValue
field_36461
f_fahngefb
valueToEntry
byValue
f_205843_
private final Map<ResourceKey<T>, RegistrationInfo>
h
registrationInfos
field_49135
f_mxojfjuq
keyToEntryInfo
keyToRegistrationInfo
f_314552_
private com.mojang.serialization.Lifecycle
i
registryLifecycle
field_26732
f_ntcgjudy
lifecycle
lifecycle
f_256989_
private final Map<TagKey<T>, HolderSet$Named<T>>
j
frozenTags
field_53686
f_tbjdirup
tags
tags
f_348494_
MappedRegistry$TagSet<T>
k
allTags
field_53687
f_ynokispn
tagLookup
tagBinding
f_346616_
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_

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 Stream<HolderSet$Named<T>>
e()
listTags()
method_42020()
m_rpikeuoc()
getTags()
streamTags()
m_214063_()
public ResourceKey<? extends Registry<T>>
g()
key()
method_46765()
m_wgqigdhk()
getKey()
getKey()
m_123023_()
private void
b()
validateWrite()
method_45939()
m_gqfaubze()
assertNotFrozen()
requireNotFrozen()
m_245419_()
private void
h(aku<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> entryKey)
m_205921_(C_5264_<T> arg0)
public Holder$Reference<T>
a(aku<T> arg0, T arg1, kd 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
c(aku<T> arg0)
getValue(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
m_ifyosden(C_xhhleach<T> arg0)
get(RegistryKey<T> arg0)
get(RegistryKey<T> arg0)
m_122713_(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)
get(int arg0)
method_40265(int arg0)
m_iotvxcay(int arg0)
getEntry(int arg0)
find(int arg0)
m_7745_(int arg0)
public Optional<Holder$Reference<T>>
c(akv arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
m_hnixtpdg(C_ncpywfca arg0)
getEntry(Identifier arg0)
find(Identifier arg0)
m_6246_(C_5265_ arg0)
public Optional<Holder$Reference<T>>
a(aku<T> arg0)
get(ResourceKey<T> arg0)
method_46746(class_5321<T> arg0)
m_yyleelhl(C_xhhleach<T> arg0)
getOptional(RegistryKey<T> arg0)
getHolder(RegistryKey<T> arg0)
m_205904_(C_5264_<T> arg0)
public Optional<Holder$Reference<T>>
a()
getAny()
method_60385()
m_vongjcbr()
getDefaultEntry()
findAny()
m_338366_()
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(aku<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> key)
m_245420_(C_5264_<T> arg0)
public int
d()
size()
method_10204()
m_mblxrshb()
size()
size()
m_13562_()
public Optional<RegistrationInfo>
d(aku<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
h()
registryLifecycle()
method_46766()
m_vhaoljfo()
getLifecycle()
getRegistryLifecycle()
m_255098_()
public Iterator<T>
iterator()
iterator()
iterator()
public T
a(akv arg0)
getValue(ResourceLocation arg0)
method_63535(class_2960 arg0)
m_kxeijgiq(C_ncpywfca arg0)
get(Identifier arg0)
get(Identifier arg0)
m_122327_(C_5265_ arg0)
private static <T> T
a(jr$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>
i()
keySet()
method_10235()
m_tuivosjn()
getIds()
getIds()
m_6566_()
public Set<ResourceKey<T>>
j()
registryKeySet()
method_42021()
m_ckzkjowv()
getKeys()
getKeys()
m_214010_()
public Set<Map$Entry<ResourceKey<T>, T>>
k()
entrySet()
method_29722()
m_nqoydeav()
getEntrySet()
getEntries()
m_6579_()
public Stream<Holder$Reference<T>>
c()
listElements()
method_42017()
m_cjhuibvn()
streamEntries()
streamHolders()
m_205916_()
public Stream<HolderSet$Named<T>>
l()
getTags()
method_40272()
m_wicxsqqn()
streamTags()
streamBoundTags()
m_203612_()
HolderSet$Named<T>
d(axf<T> arg0)
getOrCreateTagForRegistration(TagKey<T> arg0)
method_62690(class_6862<T> arg0)
m_ndsbyjne(C_ednuhnnn<T> arg0)
getTag(TagKey<T> key)
getOrCreateTag(TagKey<T> key)
m_354248_(C_203208_<T> arg0)
private HolderSet$Named<T>
e(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 boolean
m()
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(akv 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
e(aku<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>
n()
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>>
a(axf<T> arg0)
get(TagKey<T> arg0)
method_46733(class_6862<T> arg0)
m_iyekinih(C_ednuhnnn<T> arg0)
getOptional(TagKey<T> arg0)
getTag(TagKey<T> arg0)
m_255050_(C_203208_<T> arg0)
private Holder$Reference<T>
a(axf<T> arg0, jr<T> arg1)
validateAndUnwrapTagElement(TagKey<T> arg0, Holder<T> arg1)
method_62682(class_6862<T> arg0, class_6880<T> arg1)
m_sskehwlu(C_ednuhnnn<T> arg0, C_cjzoxshv<T> arg1)
ensureTagable(TagKey<T> key, RegistryEntry<T> entry)
requireOwnedReference(TagKey<T> tag, Holder<T> holder)
m_353859_(C_203208_<T> p_362647_, C_203228_<T> arg1)
public void
a(axf<T> arg0, List<jr<T>> arg1)
bindTag(TagKey<T> arg0, List<Holder<T>> arg1)
method_62681(class_6862<T> arg0, List<class_6880<T>> arg1)
m_eneptwjq(C_ednuhnnn<T> arg0, List<C_cjzoxshv<T>> arg1)
setEntries(TagKey<T> arg0, List<RegistryEntry<T>> arg1)
bindTag(TagKey<T> arg0, List<Holder<T>> arg1)
m_355219_(C_203208_<T> p_361891_, List<C_203228_<T>> arg1)
void
u()
refreshTagsInHolders()
method_62692()
m_gyjyxear()
refreshTags()
refreshByKey()
m_353357_()
public void
o()
bindAllTagsToEmpty()
method_62691()
m_mvpkkzyf()
resetTagEntries()
bindTagsToEmpty()
m_357154_()
public HolderGetter<T>
p()
createRegistrationLookup()
method_46769()
m_ulbocxwk()
createMutableRegistryLookup()
getHolderProvider()
m_203505_()
public Registry$PendingTags<T>
a(axg$c<T> arg0)
prepareTagReload(TagLoader$LoadResult<T> arg0)
method_62683(class_3503$class_6863<T> arg0)
m_prsibeni(C_loluvnda$C_shtfmyxy<T> arg0)
startTagReload(TagGroupLoader$RegistryTags<T> arg0)
startTagReload(TagGroupLoader$RegistryTags<T> arg0)
m_351680_(C_161_$C_345882_<T> arg0)