net.minecraft.predicate

public record TagPredicate<T>

net.minecraft.advancements.criterion.TagPredicate
net.minecraft.class_8129
net.minecraft.predicate.TagPredicate

Field summary

Modifier and TypeField
private final TagKey<T>
tag
comp_1836
tag
private final boolean
expected
comp_1837
expected

Constructor summary

ModifierConstructor
public (TagKey<T> tag, boolean expected)

Method summary

Modifier and TypeMethod
public static <T> com.mojang.serialization.Codec<TagPredicate<T>>
codec(ResourceKey<? extends Registry<T>> registryKey)
method_53245(class_5321<? extends class_2378<T>> arg0)
createCodec(RegistryKey<? extends Registry<T>> registryRef)
public static <T> TagPredicate<T>
is(TagKey<T> tag)
method_48965(class_6862<T> arg0)
expected(TagKey<T> tag)
public static <T> TagPredicate<T>
isNot(TagKey<T> tag)
method_48968(class_6862<T> arg0)
unexpected(TagKey<T> tag)
public boolean
matches(Holder<T> holder)
method_48967(class_6880<T> arg0)
test(RegistryEntry<T> registryEntry)
public TagKey<T>
tag()
comp_1836()
tag()
public boolean
expected()
comp_1837()
expected()
private static com.mojang.datafixers.kinds.App
lambda$codec$0(ResourceKey arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg1)
method_53246(class_5321 arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance arg1)
method_53246(RegistryKey arg0, com.mojang.serialization.codecs.RecordCodecBuilder$Instance instance)