Uses of Class
net.minecraft.entity.ai.TargetPredicate
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of TargetPredicate in net.minecraft.entity
Modifier and TypeMethodDescriptionboolean
LivingEntity.isTarget
(LivingEntity entity, TargetPredicate predicate) -
Uses of TargetPredicate in net.minecraft.entity.ai
Modifier and TypeMethodDescriptionTargetPredicate.copy()
static TargetPredicate
TargetPredicate.createAttackable()
static TargetPredicate
TargetPredicate.createNonAttackable()
TargetPredicate.ignoreDistanceScalingFactor()
TargetPredicate.ignoreVisibility()
TargetPredicate.setBaseMaxDistance
(double baseMaxDistance) TargetPredicate.setPredicate
(@Nullable Predicate<LivingEntity> predicate) -
Uses of TargetPredicate in net.minecraft.entity.ai.brain.sensor
Modifier and TypeFieldDescriptionprivate static final TargetPredicate
Sensor.ATTACKABLE_TARGET_PREDICATE
private static final TargetPredicate
private static final TargetPredicate
private static final TargetPredicate
private static final TargetPredicate
Sensor.TARGET_PREDICATE
private static final TargetPredicate
private static final TargetPredicate
TemptationsSensor.TEMPTER_PREDICATE
-
Uses of TargetPredicate in net.minecraft.entity.ai.brain.task
Modifier and TypeFieldDescriptionprivate final TargetPredicate
PrepareRamTask.targetPredicate
private final TargetPredicate
RamImpactTask.targetPredicate
ModifierConstructorDescriptionPrepareRamTask
(ToIntFunction<E> cooldownFactory, int minDistance, int maxDistance, float speed, TargetPredicate targetPredicate, int prepareTime, Function<E, SoundEvent> soundFactory) Creates a ram preparation task.RamImpactTask
(Function<GoatEntity, UniformIntProvider> cooldownRangeFactory, TargetPredicate targetPredicate, float speed, ToDoubleFunction<GoatEntity> strengthMultiplierFactory, Function<GoatEntity, SoundEvent> impactSoundFactory, Function<GoatEntity, SoundEvent> hornBreakSoundFactory) -
Uses of TargetPredicate in net.minecraft.entity.ai.goal
Modifier and TypeFieldDescriptionprivate static final TargetPredicate
IronGolemLookGoal.CLOSE_VILLAGER_PREDICATE
private final TargetPredicate
TemptGoal.predicate
protected TargetPredicate
ActiveTargetGoal.targetPredicate
protected final TargetPredicate
LookAtEntityGoal.targetPredicate
private final TargetPredicate
TrackIronGolemTargetGoal.targetPredicate
private static final TargetPredicate
TemptGoal.TEMPTING_ENTITY_PREDICATE
private static final TargetPredicate
RevengeGoal.VALID_AVOIDABLES_PREDICATE
private static final TargetPredicate
AnimalMateGoal.VALID_MATE_PREDICATE
private final TargetPredicate
WolfBegGoal.validPlayerPredicate
private final TargetPredicate
FleeEntityGoal.withinRangePredicate
Modifier and TypeMethodDescriptionprotected boolean
TrackTargetGoal.canTrack
(@Nullable LivingEntity target, TargetPredicate targetPredicate) -
Uses of TargetPredicate in net.minecraft.entity.boss
Modifier and TypeFieldDescriptionprivate static final TargetPredicate
WitherEntity.HEAD_TARGET_PREDICATE
-
Uses of TargetPredicate in net.minecraft.entity.boss.dragon
Modifier and TypeFieldDescriptionprivate static final TargetPredicate
EnderDragonEntity.CLOSE_PLAYER_PREDICATE
-
Uses of TargetPredicate in net.minecraft.entity.boss.dragon.phase
Modifier and TypeFieldDescriptionprivate final TargetPredicate
SittingScanningPhase.CLOSE_PLAYER_PREDICATE
private static final TargetPredicate
SittingScanningPhase.PLAYER_WITHIN_RANGE_PREDICATE
private static final TargetPredicate
HoldingPatternPhase.PLAYERS_IN_RANGE_PREDICATE
private static final TargetPredicate
LandingApproachPhase.PLAYERS_IN_RANGE_PREDICATE
-
Uses of TargetPredicate in net.minecraft.entity.mob
Modifier and TypeFieldDescriptionprivate final TargetPredicate
EvokerEntity.SummonVexGoal.closeVexPredicate
private final TargetPredicate
EvokerEntity.WololoGoal.convertibleSheepPredicate
private final TargetPredicate
PhantomEntity.FindTargetGoal.PLAYERS_IN_RANGE_PREDICATE
private final TargetPredicate
EndermanEntity.TeleportTowardsPlayerGoal.staringPlayerPredicate
private final TargetPredicate
VexEntity.TrackOwnerTargetGoal.targetPredicate
private final TargetPredicate
EndermanEntity.TeleportTowardsPlayerGoal.validTargetPredicate
-
Uses of TargetPredicate in net.minecraft.entity.passive
Modifier and TypeFieldDescription(package private) static final TargetPredicate
PandaEntity.ASK_FOR_BAMBOO_TARGET
(package private) static final TargetPredicate
PufferfishEntity.BLOW_UP_TARGET_PREDICATE
private static final TargetPredicate
BatEntity.CLOSE_PLAYER_PREDICATE
(package private) static final TargetPredicate
DolphinEntity.CLOSE_PLAYER_PREDICATE
private static final TargetPredicate
AbstractHorseEntity.PARENT_HORSE_PREDICATE
private static final TargetPredicate
GoatBrain.RAM_TARGET_PREDICATE
private final TargetPredicate
FoxEntity.CalmDownGoal.WORRIABLE_ENTITY_PREDICATE
-
Uses of TargetPredicate in net.minecraft.entity.raid
Modifier and TypeFieldDescriptionfinal TargetPredicate
RaiderEntity.PatrolApproachGoal.closeRaiderPredicate
-
Uses of TargetPredicate in net.minecraft.world
Modifier and TypeMethodDescriptiondefault <T extends LivingEntity>
TEntityView.getClosestEntity
(Class<? extends T> entityClass, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z, Box box) default <T extends LivingEntity>
TEntityView.getClosestEntity
(List<? extends T> entityList, TargetPredicate targetPredicate, @Nullable LivingEntity entity, double x, double y, double z) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(TargetPredicate targetPredicate, double x, double y, double z) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(TargetPredicate targetPredicate, LivingEntity entity) default @Nullable PlayerEntity
EntityView.getClosestPlayer
(TargetPredicate targetPredicate, LivingEntity entity, double x, double y, double z) default List
<PlayerEntity> EntityView.getPlayers
(TargetPredicate targetPredicate, LivingEntity entity, Box box) default <T extends LivingEntity>
List<T> EntityView.getTargets
(Class<T> entityClass, TargetPredicate targetPredicate, LivingEntity targetingEntity, Box box)