net.minecraft.entity.ai.goal

public class FleeEntityGoal<T extends LivingEntity>

extends Goal

net.minecraft.world.entity.ai.goal.AvoidEntityGoal
net.minecraft.class_1338
net.minecraft.entity.ai.goal.FleeEntityGoal

Field summary

Modifier and TypeField
protected final PathAwareEntity
mob
field_6391
mob
private final double
walkSpeedModifier
field_6385
slowSpeed
private final double
sprintSpeedModifier
field_6395
fastSpeed
protected T
toAvoid
field_6390
targetEntity
protected final float
maxDist
field_6386
fleeDistance
protected Path
path
field_6387
fleePath
protected final EntityNavigation
pathNav
field_6394
fleeingEntityNavigation
protected final Class<T>
avoidClass
field_6392
classToFleeFrom
protected final Predicate<? super LivingEntity>
avoidPredicate
field_6393
extraInclusionSelector
protected final Predicate<? super LivingEntity>
predicateOnAvoidEntity
field_6388
inclusionSelector
private final TargetPredicate
avoidEntityTargeting
field_18084
withinRangePredicate

Constructor summary

ModifierConstructor
public (PathAwareEntity mob, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
public (PathAwareEntity mob, Class<T> fleeFromType, Predicate<LivingEntity> extraInclusionSelector, float distance, double slowSpeed, double fastSpeed, Predicate<? super LivingEntity> inclusionSelector)
public (PathAwareEntity fleeingEntity, Class<T> classToFleeFrom, float fleeDistance, double fleeSlowSpeed, double fleeFastSpeed, Predicate<? super LivingEntity> inclusionSelector)

Method summary

Modifier and TypeMethod
public boolean
canUse()
method_6264()
canStart()
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()
public void
tick()
method_6268()
tick()
private static boolean
lambda$canUse$3(LivingEntity arg0)
method_31501(class_1309 arg0)
method_31501(LivingEntity arg0)
private static boolean
lambda$new$2(LivingEntity arg0)
method_6245(class_1309 arg0)
method_6245(LivingEntity entity)
private static boolean
lambda$new$1(Predicate arg0, Predicate arg1, LivingEntity arg2, ServerLevel arg3)
method_64450(Predicate arg0, Predicate arg1, class_1309 arg2, class_3218 arg3)
method_64450(Predicate arg0, Predicate arg1, LivingEntity entity, ServerWorld world)
private static boolean
lambda$new$0(LivingEntity arg0)
method_6246(class_1309 arg0)
method_6246(LivingEntity entity)