net.minecraft.predicate.entity

public record EntityTypeSubPredicate

implements EntitySubPredicate

net.minecraft.advancements.predicates.entity.EntityTypePredicate
net.minecraft.class_2050
net.minecraft.predicate.entity.EntityTypeSubPredicate

Field summary

Modifier and TypeField
private final RegistryEntryList<EntityType<?>>
types
comp_1775
types
public static final com.mojang.serialization.Codec<EntityTypeSubPredicate>
CODEC
field_45749
CODEC

Constructor summary

ModifierConstructor
public (RegistryEntryList<EntityType<?>> types)

Method summary

Modifier and TypeMethod
public static EntityTypeSubPredicate
of(HolderGetter<EntityType<?>> lookup, EntityType<?> type)
method_8929(class_7871<class_1299<?>> arg0, class_1299<?> arg1)
create(RegistryEntryLookup<EntityType<?>> entityTypeRegistry, EntityType<?> type)
public static EntityTypeSubPredicate
of(HolderGetter<EntityType<?>> lookup, TagKey<EntityType<?>> type)
method_8926(class_7871<class_1299<?>> arg0, class_6862<class_1299<?>> arg1)
create(RegistryEntryLookup<EntityType<?>> entityTypeRegistry, TagKey<EntityType<?>> tag)
public boolean
matches(Holder<EntityType<?>> type)
method_8925(class_6880<class_1299<?>> arg0)
matches(RegistryEntry<EntityType<?>> arg0)
public boolean
matches(Entity entity, ServerLevel level, Vec3 position)
method_22497(class_1297 arg0, class_3218 arg1, class_243 arg2)
test(Entity arg0, ServerWorld arg1, Vec3d arg2)
public RegistryEntryList<EntityType<?>>
types()
comp_1775()
types()