net.minecraft.tags

public record TagKey<T>

asw
net.minecraft.tags.TagKey
net.minecraft.class_6862
net.minecraft.registry.tag.TagKey
net.minecraft.src.C_203208_
net.minecraft.tags.TagKey

Field summary

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

Constructor summary

ModifierConstructor
public (ResourceKey<? extends Registry<T>> f_203868_, ResourceLocation arg1)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<TagKey<T>>
a(ahf<? extends it<T>> arg0)
codec(ResourceKey<? extends Registry<T>> arg0)
method_40090(class_5321<? extends class_2378<T>> arg0)
unprefixedCodec(RegistryKey<? extends Registry<T>> registry)
m_203877_(C_5264_<? extends C_4705_<T>> p_203878_)
public static <T> com.mojang.serialization.Codec<TagKey<T>>
b(ahf<? extends it<T>> arg0)
hashedCodec(ResourceKey<? extends Registry<T>> arg0)
method_40093(class_5321<? extends class_2378<T>> arg0)
codec(RegistryKey<? extends Registry<T>> registry)
m_203886_(C_5264_<? extends C_4705_<T>> p_203887_)
public static <T> TagKey<T>
a(ahf<? extends it<T>> arg0, ahg 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>> registry, Identifier id)
m_203882_(C_5264_<? extends C_4705_<T>> p_203883_, C_5265_ p_203884_)
public boolean
c(ahf<? extends it<?>> arg0)
isFor(ResourceKey<? extends Registry<?>> arg0)
method_41007(class_5321<? extends class_2378<?>> arg0)
isOf(RegistryKey<? extends Registry<?>> registryRef)
m_207645_(C_5264_<? extends C_4705_<?>> arg0)
public <E> Optional<TagKey<E>>
d(ahf<? extends it<E>> arg0)
cast(ResourceKey<? extends Registry<E>> arg0)
method_41008(class_5321<? extends class_2378<E>> arg0)
tryCast(RegistryKey<? extends Registry<E>> registryRef)
m_207647_(C_5264_<? extends C_4705_<E>> arg0)
public ResourceKey<? extends Registry<T>>
a()
registry()
comp_326()
registry()
f_203867_()
public ResourceLocation
b()
location()
comp_327()
id()
f_203868_()