net.minecraft.predicate.entity

public record VillagerVariantPredicate

implements ComponentSubPredicate<RegistryEntry<VillagerType>>

net.minecraft.core.component.predicates.VillagerTypePredicate
net.minecraft.class_1_62
net.minecraft.predicate.entity.VillagerVariantPredicate

Field summary

Modifier and TypeField
private final RegistryEntryList<VillagerType>
villagerTypes
comp_1_39
villagerTypes
public static final com.mojang.serialization.Codec<VillagerVariantPredicate>
CODEC
field_1_715
CODEC

Constructor summary

ModifierConstructor
public (RegistryEntryList<VillagerType> villagerTypes)

Method summary

Modifier and TypeMethod
public ComponentType<RegistryEntry<VillagerType>>
componentType()
method_58163()
getComponentType()
public boolean
matches(Holder<VillagerType> villagerType)
method_1_702(class_6880<class_3854> arg0)
test(RegistryEntry<VillagerType> arg0)
public static VillagerVariantPredicate
villagerTypes(HolderSet<VillagerType> villagerTypes)
method_1_703(class_6885<class_3854> arg0)
of(RegistryEntryList<VillagerType> arg0)
public RegistryEntryList<VillagerType>
villagerTypes()
comp_1_39()
villagerTypes()
public boolean
matches(Object villagerType)
method_58167(Object arg0)
test(Object arg0)