net.minecraft.predicate

public record TagPredicate<T>

net.minecraft.advancements.predicates.TagPredicate
net.minecraft.class_8129
net.minecraft.predicate.TagPredicate

Field summary

Modifier and TypeField
private final RegistryEntryList<T>
tag
comp_1_1380
tag
private final boolean
expected
comp_1837
expected

Constructor summary

ModifierConstructor
public (RegistryEntryList<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(HolderGetter<T> lookup, TagKey<T> tag)
method_48965(class_7871<T> arg0, class_6862<T> arg1)
expected(RegistryEntryLookup<T> arg0, TagKey<T> tag)
public static <T> TagPredicate<T>
is(HolderSet<T> tag)
method_1_8764(class_6885<T> arg0)
method_1_8764(RegistryEntryList<T> arg0)
public static <T> TagPredicate<T>
isNot(HolderGetter<T> lookup, TagKey<T> tag)
method_48968(class_7871<T> arg0, class_6862<T> arg1)
unexpected(RegistryEntryLookup<T> arg0, TagKey<T> tag)
public static <T> TagPredicate<T>
isNot(HolderSet<T> tag)
method_1_8765(class_6885<T> arg0)
method_1_8765(RegistryEntryList<T> arg0)
public boolean
matches(Holder<T> holder)
method_48967(class_6880<T> arg0)
test(RegistryEntry<T> arg0)
public RegistryEntryList<T>
tag()
comp_1_1380()
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)