net.minecraft.core

public class MappedRegistry<T>

extends WritableRegistry<T>

All mapped superinterfaces:

IdMap

gi
net.minecraft.core.MappedRegistry
net.minecraft.class_2370
net.minecraft.util.registry.SimpleRegistry
net.minecraft.util.registry.SimpleRegistry
net.minecraft.server.v1_16_R2.RegistryMaterials

Field summary

Modifier and TypeField
protected static final org.apache.logging.log4j.Logger
a
LOGGER
field_11111
LOGGER
field_148743_a
private final it.unimi.dsi.fastutil.objects.ObjectList<T>
bf
byId
field_26682
rawIdToEntry
field_243533_bf
private final it.unimi.dsi.fastutil.objects.Object2IntMap<T>
bg
toId
field_26683
entryToRawId
field_243534_bg
private final com.google.common.collect.BiMap<ResourceLocation, T>
bh
storage
field_11107
idToEntry
field_82596_a
private final com.google.common.collect.BiMap<ResourceKey<T>, T>
bi
keyStorage
field_25067
keyToEntry
field_239649_bb_
private final Map<T, com.mojang.serialization.Lifecycle>
bj
lifecycles
field_26731
entryToLifecycle
field_243535_bj
private com.mojang.serialization.Lifecycle
bk
elementsLifecycle
field_26732
lifecycle
field_243536_bk
protected Object[]
b
randomCache
field_11108
randomEntries
field_186802_b
private int
bl
nextId
field_11109
nextId
field_195869_d

Constructor summary

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

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.MapCodec<MappedRegistry$RegistryEntry<T>>
a(vj<? extends gm<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
withNameAndId(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
method_30929(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
createRegistryManagerEntryCodec(RegistryKey<? extends Registry<T>> arg0, com.mojang.serialization.MapCodec<T> entryCodec)
func_243541_a(RegistryKey<? extends Registry<T>> arg0, com.mojang.serialization.MapCodec<T> arg1)
public <V extends T> V
a(int arg0, vj<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
registerMapping(int arg0, ResourceKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
method_10273(int arg0, class_5321<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
set(int arg0, RegistryKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
func_218382_a(int arg0, RegistryKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
private <V extends T> V
a(int arg0, vj<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
registerMapping(int arg0, ResourceKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
method_31051(int arg0, class_5321<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
set(int rawId, RegistryKey<T> key, V entry, com.mojang.serialization.Lifecycle arg3, boolean checkDuplicateKeys)
func_243537_a(int arg0, RegistryKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3, boolean arg4)
public <V extends T> V
a(vj<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
register(ResourceKey<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
method_10272(class_5321<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
add(RegistryKey<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
func_218381_a(RegistryKey<T> arg0, V arg1, com.mojang.serialization.Lifecycle arg2)
public <V extends T> V
a(OptionalInt arg0, vj<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
registerOrOverride(OptionalInt arg0, ResourceKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
method_31062(OptionalInt arg0, class_5321<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
replace(OptionalInt arg0, RegistryKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
func_241874_a(OptionalInt arg0, RegistryKey<T> arg1, V arg2, com.mojang.serialization.Lifecycle arg3)
public ResourceLocation
b(T arg0)
getKey(T arg0)
method_10221(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)
getKey(T arg0)
func_230519_c_(T arg0)
public int
a(T arg0)
getId(T arg0)
method_10206(T arg0)
getRawId(T arg0)
func_148757_b(T arg0)
public T
a(vj<T> arg0)
get(ResourceKey<T> arg0)
method_29107(class_5321<T> arg0)
get(RegistryKey<T> arg0)
func_230516_a_(RegistryKey<T> arg0)
public T
a(int arg0)
byId(int arg0)
method_10200(int arg0)
get(int arg0)
func_148745_a(int arg0)
fromId(int arg0)
public com.mojang.serialization.Lifecycle
d(T arg0)
lifecycle(T arg0)
method_31139(T arg0)
getEntryLifecycle(T arg0)
func_241876_d(T arg0)
public com.mojang.serialization.Lifecycle
b()
elementsLifecycle()
method_31138()
getLifecycle()
func_241875_b()
public Iterator<T>
iterator()
iterator()
iterator()
iterator()
iterator()
public T
a(vk arg0)
get(ResourceLocation arg0)
method_10223(class_2960 arg0)
get(Identifier arg0)
func_82594_a(ResourceLocation arg0)
get(MinecraftKey arg0)
public Set<ResourceLocation>
c()
keySet()
method_10235()
getIds()
func_148742_b()
keySet()
public Set<Map$Entry<ResourceKey<T>, T>>
d()
entrySet()
method_29722()
getEntries()
func_239659_c_()
public T
a(Random arg0)
getRandom(Random arg0)
method_10240(Random arg0)
getRandom(Random arg0)
func_186801_a(Random arg0)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
a(vj<? extends gm<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
networkCodec(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
method_29098(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
createRegistryManagerCodec(RegistryKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> entryCodec)
func_243539_a(RegistryKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
b(vj<? extends gm<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
dataPackCodec(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
method_29721(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
createRegistryCodec(RegistryKey<? extends Registry<T>> registryRef, com.mojang.serialization.Lifecycle lifecycle, com.mojang.serialization.Codec<T> entryCodec)
func_241744_b_(RegistryKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
public static <T> com.mojang.serialization.Codec<MappedRegistry<T>>
c(vj<? extends gm<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
directCodec(ResourceKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
method_31059(class_5321<? extends class_2378<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
createCodec(RegistryKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> entryCodec)
func_241745_c_(RegistryKey<? extends Registry<T>> arg0, com.mojang.serialization.Lifecycle arg1, com.mojang.serialization.Codec<T> arg2)
public boolean
c(vk arg0)
containsKey(ResourceLocation arg0)
method_10250(class_2960 arg0)
containsId(Identifier arg0)
func_212607_c(ResourceLocation arg0)