net.minecraft.registry.tag

public record TagKey<T>

net.minecraft.tags.TagKey
net.minecraft.class_6862
net.minecraft.registry.tag.TagKey

Field summary

Modifier and TypeField
private final RegistryKey<? extends Registry<T>>
registry
comp_326
registryRef
private final Identifier
location
comp_327
id
private static final com.google.common.collect.Interner<TagKey<?>>
VALUES
field_36394
INTERNER

Constructor summary

ModifierConstructor
public (RegistryKey<? extends Registry<T>> registryRef, Identifier id)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<TagKey<T>>
codec(ResourceKey<? extends Registry<T>> registryName)
method_40090(class_5321<? extends class_2378<T>> arg0)
unprefixedCodec(RegistryKey<? extends Registry<T>> registryRef)
public static <T> com.mojang.serialization.Codec<TagKey<T>>
hashedCodec(ResourceKey<? extends Registry<T>> registryName)
method_40093(class_5321<? extends class_2378<T>> arg0)
codec(RegistryKey<? extends Registry<T>> registryRef)
public static <T> PacketCodec<io.netty.buffer.ByteBuf, TagKey<T>>
streamCodec(ResourceKey<? extends Registry<T>> registryName)
method_64143(class_5321<? extends class_2378<T>> arg0)
packetCodec(RegistryKey<? extends Registry<T>> registryRef)
public static <T> TagKey<T>
create(ResourceKey<? extends Registry<T>> registry, Identifier location)
method_40092(class_5321<? extends class_2378<T>> arg0, class_2960 arg1)
of(RegistryKey<? extends Registry<T>> registryRef, Identifier id)
public boolean
isFor(ResourceKey<? extends Registry<?>> registry)
method_41007(class_5321<? extends class_2378<?>> arg0)
isOf(RegistryKey<? extends Registry<?>> registryRef)
public <E> Optional<TagKey<E>>
cast(ResourceKey<? extends Registry<E>> registry)
method_41008(class_5321<? extends class_2378<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> registryRef)
public RegistryKey<? extends Registry<T>>
registry()
comp_326()
registryRef()
public Identifier
location()
comp_327()
id()
private static TagKey
lambda$streamCodec$0(ResourceKey arg0, Identifier arg1)
method_64142(class_5321 arg0, class_2960 arg1)
method_64142(RegistryKey arg0, Identifier id)
private static String
lambda$hashedCodec$3(TagKey arg0)
method_40089(class_6862 arg0)
method_40089(TagKey string)
private static com.mojang.serialization.DataResult
lambda$hashedCodec$0(ResourceKey arg0, String arg1)
method_40091(class_5321 arg0, String arg1)
method_40091(RegistryKey arg0, String string)
private static String
lambda$hashedCodec$2()
method_49429()
method_49429()
private static TagKey
lambda$hashedCodec$1(ResourceKey arg0, Identifier arg1)
method_40094(class_5321 arg0, class_2960 arg1)
method_40094(RegistryKey arg0, Identifier id)
private static TagKey
lambda$codec$0(ResourceKey arg0, Identifier arg1)
method_40095(class_5321 arg0, class_2960 arg1)
method_40095(RegistryKey arg0, Identifier id)