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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionAvoidEntityGoal(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 SummaryMethods inherited from class net.minecraft.world.entity.ai.goal.GoaladjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, toString
- 
Field Details- 
mob
- 
walkSpeedModifierprivate final double walkSpeedModifier
- 
sprintSpeedModifierprivate final double sprintSpeedModifier
- 
toAvoid
- 
maxDistprotected final float maxDist
- 
path
- 
avoidClass
- 
avoidPredicate
- 
predicateOnAvoidEntity
- 
avoidEntityTargeting
 
- 
- 
Constructor Details- 
AvoidEntityGoalpublic AvoidEntityGoal(PathfinderMob p_25027_, Class<T> p_25028_, float p_25029_, double p_25030_, double p_25031_) 
- 
AvoidEntityGoalpublic 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_) 
- 
AvoidEntityGoalpublic AvoidEntityGoal(PathfinderMob p_25033_, Class<T> p_25034_, float p_25035_, double p_25036_, double p_25037_, Predicate<LivingEntity> p_25038_) 
 
- 
- 
Method Details- 
canUsepublic boolean canUse()
- 
canContinueToUsepublic boolean canContinueToUse()- Overrides:
- canContinueToUsein class- Goal
 
- 
startpublic void start()
- 
stoppublic void stop()
- 
tickpublic void tick()
 
-