net.minecraft.tags

public record TagKey<T>

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

Field summary

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

Constructor summary

ModifierConstructor
public (ResourceKey<? extends Registry<T>> registryRef, ResourceLocation id)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<TagKey<T>>
a(aku<? extends ke<T>> arg0)
codec(ResourceKey<? extends Registry<T>> arg0)
method_40090(class_5321<? extends class_2378<T>> arg0)
unprefixedCodec(RegistryKey<? extends Registry<T>> registryRef)
public static <T> com.mojang.serialization.Codec<TagKey<T>>
b(aku<? extends ke<T>> arg0)
hashedCodec(ResourceKey<? extends Registry<T>> arg0)
method_40093(class_5321<? extends class_2378<T>> arg0)
codec(RegistryKey<? extends Registry<T>> registryRef)
public static <T> StreamCodec<io.netty.buffer.ByteBuf, TagKey<T>>
c(aku<? extends ke<T>> arg0)
streamCodec(ResourceKey<? extends Registry<T>> arg0)
method_64143(class_5321<? extends class_2378<T>> arg0)
packetCodec(RegistryKey<? extends Registry<T>> registryRef)
public static <T> TagKey<T>
a(aku<? extends ke<T>> arg0, akv arg1)
create(ResourceKey<? extends Registry<T>> arg0, ResourceLocation arg1)
method_40092(class_5321<? extends class_2378<T>> arg0, class_2960 arg1)
of(RegistryKey<? extends Registry<T>> registryRef, Identifier id)
public boolean
d(aku<? extends ke<?>> arg0)
isFor(ResourceKey<? extends Registry<?>> arg0)
method_41007(class_5321<? extends class_2378<?>> arg0)
isOf(RegistryKey<? extends Registry<?>> registryRef)
public <E> Optional<TagKey<E>>
e(aku<? extends ke<E>> arg0)
cast(ResourceKey<? extends Registry<E>> arg0)
method_41008(class_5321<? extends class_2378<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> registryRef)
public ResourceKey<? extends Registry<T>>
a()
registry()
comp_326()
registryRef()
public ResourceLocation
b()
location()
comp_327()
id()