net.minecraft.core

public class MappedRegistry<T>

implements WritableRegistry<T>

jz
net.minecraft.core.MappedRegistry
net.minecraft.class_2370
net.minecraft.registry.SimpleRegistry
net.minecraft.core.RegistryMaterials

Field summary

Modifier and TypeField
private final ResourceKey<? extends Registry<T>>
b
key
field_41126
key
private final it.unimi.dsi.fastutil.objects.ObjectList<Holder$Reference<T>>
c
byId
field_26682
rawIdToEntry
private final it.unimi.dsi.fastutil.objects.Reference2IntMap<T>
d
toId
field_26683
entryToRawId
private final Map<ResourceLocation, Holder$Reference<T>>
e
byLocation
field_11107
idToEntry
private final Map<ResourceKey<T>, Holder$Reference<T>>
f
byKey
field_25067
keyToEntry
private final Map<T, Holder$Reference<T>>
g
byValue
field_36461
valueToEntry
private final Map<ResourceKey<T>, RegistrationInfo>
h
registrationInfos
field_49135
keyToEntryInfo
private com.mojang.serialization.Lifecycle
i
registryLifecycle
field_26732
lifecycle
private final Map<TagKey<T>, HolderSet$Named<T>>
j
frozenTags
field_53686
tags
MappedRegistry$TagSet<T>
k
allTags
field_53687
tagLookup
private boolean
l
frozen
field_36463
frozen
private Map<T, Holder$Reference<T>>
m
unregisteredIntrusiveHolders
field_40584
intrusiveValueToEntry

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()
getTags()
public ResourceKey<? extends Registry<T>>
g()
key()
method_46765()
getKey()
private void
b()
validateWrite()
method_45939()
assertNotFrozen()
private void
h(aku<T> arg0)
validateWrite(ResourceKey<T> arg0)
method_40274(class_5321<T> arg0)
assertNotFrozen(RegistryKey<T> key)
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)
add(RegistryKey<T> arg0, T arg1, RegistryEntryInfo arg2)
public ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(T arg0)
getId(T arg0)
public Optional<ResourceKey<T>>
d(T arg0)
getResourceKey(T arg0)
method_29113(T arg0)
getKey(T arg0)
public int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
getRawId(T arg0)
public T
c(aku<T> arg0)
getValue(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
get(RegistryKey<T> arg0)
public T
a(int arg0)
byId(int arg0)
method_10200(int arg0)
get(int arg0)
public Optional<Holder$Reference<T>>
c(int arg0)
get(int arg0)
method_40265(int arg0)
getEntry(int arg0)
public Optional<Holder$Reference<T>>
c(akv arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
getEntry(Identifier arg0)
public Optional<Holder$Reference<T>>
a(aku<T> arg0)
get(ResourceKey<T> arg0)
method_46746(class_5321<T> arg0)
getOptional(RegistryKey<T> arg0)
public Optional<Holder$Reference<T>>
a()
getAny()
method_60385()
getDefaultEntry()
public Holder<T>
e(T arg0)
wrapAsHolder(T arg0)
method_47983(T arg0)
getEntry(T arg0)
Holder$Reference<T>
i(aku<T> arg0)
getOrCreateHolderOrThrow(ResourceKey<T> arg0)
method_44298(class_5321<T> arg0)
getOrCreateEntry(RegistryKey<T> key)
public int
d()
size()
method_10204()
size()
public Optional<RegistrationInfo>
d(aku<T> arg0)
registrationInfo(ResourceKey<T> arg0)
method_57058(class_5321<T> arg0)
getEntryInfo(RegistryKey<T> arg0)
public com.mojang.serialization.Lifecycle
h()
registryLifecycle()
method_46766()
getLifecycle()
public Iterator<T>
iterator()
iterator()
public T
a(akv arg0)
getValue(ResourceLocation arg0)
method_63535(class_2960 arg0)
get(Identifier arg0)
private static <T> T
a(jr$c<T> arg0)
getValueFromNullable(Holder$Reference<T> arg0)
method_40253(class_6880$class_6883<T> arg0)
getValue(RegistryEntry$Reference<T> entry)
public Set<ResourceLocation>
i()
keySet()
method_10235()
getIds()
public Set<ResourceKey<T>>
j()
registryKeySet()
method_42021()
getKeys()
public Set<Map$Entry<ResourceKey<T>, T>>
k()
entrySet()
method_29722()
getEntrySet()
public Stream<Holder$Reference<T>>
c()
listElements()
method_42017()
streamEntries()
public Stream<HolderSet$Named<T>>
l()
getTags()
method_40272()
streamTags()
HolderSet$Named<T>
d(axf<T> arg0)
getOrCreateTagForRegistration(TagKey<T> arg0)
method_62690(class_6862<T> arg0)
getTag(TagKey<T> key)
private HolderSet$Named<T>
e(axf<T> arg0)
createTag(TagKey<T> arg0)
method_40562(class_6862<T> arg0)
createNamedEntryList(TagKey<T> tag)
public boolean
m()
isEmpty()
method_35863()
isEmpty()
public Optional<Holder$Reference<T>>
a(azh arg0)
getRandom(RandomSource arg0)
method_10240(class_5819 arg0)
getRandom(Random arg0)
public boolean
d(akv arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
containsId(Identifier arg0)
public boolean
e(aku<T> arg0)
containsKey(ResourceKey<T> arg0)
method_35842(class_5321<T> arg0)
contains(RegistryKey<T> arg0)
public Registry<T>
n()
freeze()
method_40276()
freeze()
public Holder$Reference<T>
f(T arg0)
createIntrusiveHolder(T arg0)
method_40269(T arg0)
createEntry(T arg0)
public Optional<HolderSet$Named<T>>
a(axf<T> arg0)
get(TagKey<T> arg0)
method_46733(class_6862<T> arg0)
getOptional(TagKey<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)
ensureTagable(TagKey<T> key, RegistryEntry<T> entry)
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)
setEntries(TagKey<T> arg0, List<RegistryEntry<T>> arg1)
void
u()
refreshTagsInHolders()
method_62692()
refreshTags()
public void
o()
bindAllTagsToEmpty()
method_62691()
resetTagEntries()
public HolderGetter<T>
p()
createRegistrationLookup()
method_46769()
createMutableRegistryLookup()
public Registry$PendingTags<T>
a(axg$c<T> arg0)
prepareTagReload(TagLoader$LoadResult<T> arg0)
method_62683(class_3503$class_6863<T> arg0)
startTagReload(TagGroupLoader$RegistryTags<T> arg0)