Class EntityPredicate.Builder
- java.lang.Object
-
- net.minecraft.advancements.criterion.EntityPredicate.Builder
-
- Enclosing class:
- EntityPredicate
public static class EntityPredicate.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
catType
private DistancePredicate
distanceToPlayer
private MobEffectsPredicate
effects
private EntityTypePredicate
entityType
private EntityEquipmentPredicate
equipment
private FishingPredicate
fishingHook
private EntityFlagsPredicate
flags
private LocationPredicate
location
private NBTPredicate
nbt
private PlayerPredicate
player
private EntityPredicate
targetedEntity
private java.lang.String
team
private EntityPredicate
vehicle
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Field Detail
-
entityType
private EntityTypePredicate entityType
-
distanceToPlayer
private DistancePredicate distanceToPlayer
-
location
private LocationPredicate location
-
effects
private MobEffectsPredicate effects
-
nbt
private NBTPredicate nbt
-
flags
private EntityFlagsPredicate flags
-
equipment
private EntityEquipmentPredicate equipment
-
player
private PlayerPredicate player
-
fishingHook
private FishingPredicate fishingHook
-
vehicle
private EntityPredicate vehicle
-
targetedEntity
private EntityPredicate targetedEntity
-
team
private java.lang.String team
-
catType
private ResourceLocation catType
-
-
Method Detail
-
entity
public static EntityPredicate.Builder entity()
-
of
public EntityPredicate.Builder of(EntityType<?> p_203998_1_)
-
of
public EntityPredicate.Builder of(ITag<EntityType<?>> p_217989_1_)
-
of
public EntityPredicate.Builder of(ResourceLocation p_217986_1_)
-
entityType
public EntityPredicate.Builder entityType(EntityTypePredicate p_209366_1_)
-
distance
public EntityPredicate.Builder distance(DistancePredicate p_203997_1_)
-
located
public EntityPredicate.Builder located(LocationPredicate p_203999_1_)
-
effects
public EntityPredicate.Builder effects(MobEffectsPredicate p_209367_1_)
-
nbt
public EntityPredicate.Builder nbt(NBTPredicate p_209365_1_)
-
flags
public EntityPredicate.Builder flags(EntityFlagsPredicate p_217987_1_)
-
equipment
public EntityPredicate.Builder equipment(EntityEquipmentPredicate p_217985_1_)
-
player
public EntityPredicate.Builder player(PlayerPredicate p_226613_1_)
-
fishingHook
public EntityPredicate.Builder fishingHook(FishingPredicate p_234580_1_)
-
vehicle
public EntityPredicate.Builder vehicle(EntityPredicate p_234579_1_)
-
targetedEntity
public EntityPredicate.Builder targetedEntity(EntityPredicate p_234581_1_)
-
team
public EntityPredicate.Builder team(@Nullable java.lang.String p_226614_1_)
-
catType
public EntityPredicate.Builder catType(@Nullable ResourceLocation p_217988_1_)
-
build
public EntityPredicate build()
-
-