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
FieldsModifier and TypeFieldDescriptionprivate final TargetingConditionsprotected final Predicate<LivingEntity> protected final floatprotected final PathfinderMobprotected Pathprotected final PathNavigationprotected final Predicate<LivingEntity> private final doubleprotected Tprivate final double -
Constructor Summary
ConstructorsConstructorDescriptionAvoidEntityGoal(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
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, 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:
canContinueToUsein classGoal
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-