Class AvoidEntityGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.AvoidEntityGoal<T>
- Direct Known Subclasses:
Cat.CatAvoidEntityGoal
,Ocelot.OcelotAvoidEntityGoal
,Panda.PandaAvoidGoal
,Rabbit.RabbitAvoidEntityGoal
,Wolf.WolfAvoidEntityGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate TargetingConditions
protected Predicate<LivingEntity>
protected float
protected PathfinderMob
protected Path
protected PathNavigation
protected Predicate<LivingEntity>
private double
protected T
private double
-
Constructor Summary
ConstructorDescriptionAvoidEntityGoal(PathfinderMob p_25027_, Class<T> p_25028_, float p_25029_, double p_25030_, double p_25031_)
AvoidEntityGoal(PathfinderMob p_25033_, Class<T> p_25034_, float p_25035_, double p_25036_, double p_25037_, Predicate<LivingEntity> p_25038_)
AvoidEntityGoal(PathfinderMob p_25040_, Class<T> p_25041_, Predicate<LivingEntity> p_25042_, float p_25043_, double p_25044_, double p_25045_, Predicate<LivingEntity> p_25046_)
-
Method Summary
Methods inherited from class net.minecraft.world.entity.ai.goal.Goal
getFlags, isInterruptable, setFlags, toString
-
Field Details
-
mob
-
walkSpeedModifier
private final double walkSpeedModifier -
sprintSpeedModifier
private final double sprintSpeedModifier -
toAvoid
-
maxDist
protected final float maxDist -
path
-
avoidClass
-
avoidPredicate
-
predicateOnAvoidEntity
-
avoidEntityTargeting
-
-
Constructor Details
-
AvoidEntityGoal
public AvoidEntityGoal(PathfinderMob p_25027_, Class<T> p_25028_, float p_25029_, double p_25030_, double p_25031_) -
AvoidEntityGoal
public AvoidEntityGoal(PathfinderMob p_25040_, Class<T> p_25041_, Predicate<LivingEntity> p_25042_, float p_25043_, double p_25044_, double p_25045_, Predicate<LivingEntity> p_25046_) -
AvoidEntityGoal
public AvoidEntityGoal(PathfinderMob p_25033_, Class<T> p_25034_, float p_25035_, double p_25036_, double p_25037_, Predicate<LivingEntity> p_25038_)
-
-
Method Details
-
canUse
public boolean canUse() -
canContinueToUse
public boolean canContinueToUse()- Overrides:
canContinueToUse
in classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-