net.minecraft.registry

public class RegistryKey<T>

net.minecraft.resources.ResourceKey
net.minecraft.class_5321
net.minecraft.registry.RegistryKey

Field summary

Modifier and TypeField
private static final ConcurrentMap<RegistryKey$RegistryIdPair, RegistryKey<?>>
VALUES
field_25136
INSTANCES
private final Identifier
registryName
field_25137
registry
private final Identifier
identifier
field_25138
value

Constructor summary

ModifierConstructor
private (Identifier registry, Identifier value)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<RegistryKey<T>>
codec(ResourceKey<? extends Registry<T>> registryName)
method_39154(class_5321<? extends class_2378<T>> arg0)
createCodec(RegistryKey<? extends Registry<T>> registry)
public static <T> PacketCodec<io.netty.buffer.ByteBuf, RegistryKey<T>>
streamCodec(ResourceKey<? extends Registry<T>> registryName)
method_56038(class_5321<? extends class_2378<T>> arg0)
createPacketCodec(RegistryKey<? extends Registry<T>> registry)
public static <T> RegistryKey<T>
create(ResourceKey<? extends Registry<T>> registryName, Identifier location)
method_29179(class_5321<? extends class_2378<T>> arg0, class_2960 arg1)
of(RegistryKey<? extends Registry<T>> registry, Identifier value)
public static <T> RegistryKey<Registry<T>>
createRegistryKey(Identifier identifier)
method_29180(class_2960 arg0)
ofRegistry(Identifier registry)
private static <T> RegistryKey<T>
create(Identifier registryName, Identifier identifier)
method_29181(class_2960 arg0, class_2960 arg1)
of(Identifier registry, Identifier value)
public boolean
isFor(ResourceKey<? extends Registry<?>> registry)
method_31163(class_5321<? extends class_2378<?>> arg0)
isOf(RegistryKey<? extends Registry<?>> registry)
public <E> Optional<RegistryKey<E>>
cast(ResourceKey<? extends Registry<E>> registry)
method_39752(class_5321<? extends class_2378<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> registryRef)
public Identifier
identifier()
method_29177()
getValue()
public Identifier
registry()
method_41185()
getRegistry()
public RegistryKey<Registry<T>>
registryKey()
method_58273()
getRegistryRef()
private static RegistryKey
lambda$create$2(ResourceKey$InternKey arg0)
method_29182(class_5321$class_7892 arg0)
method_29182(RegistryKey$RegistryIdPair pair)
private static RegistryKey
lambda$streamCodec$1(ResourceKey arg0, Identifier arg1)
method_56039(class_5321 arg0, class_2960 arg1)
method_56039(RegistryKey arg0, Identifier id)
private static RegistryKey
lambda$codec$0(ResourceKey arg0, Identifier arg1)
method_39155(class_5321 arg0, class_2960 arg1)
method_39155(RegistryKey arg0, Identifier id)