net.minecraft.world.entity.ai.goal

public class AvoidEntityGoal<T extends LivingEntity>

extends Goal

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

Field summary

Modifier and TypeField
protected final PathfinderMob
a
mob
field_6391
mob
private final double
i
walkSpeedModifier
field_6385
slowSpeed
private final double
j
sprintSpeedModifier
field_6395
fastSpeed
protected T
b
toAvoid
field_6390
targetEntity
protected final float
c
maxDist
field_6386
fleeDistance
protected Path
d
path
field_6387
fleePath
protected final PathNavigation
e
pathNav
field_6394
fleeingEntityNavigation
protected final Class<T>
f
avoidClass
field_6392
classToFleeFrom
protected final Predicate<LivingEntity>
g
avoidPredicate
field_6393
extraInclusionSelector
protected final Predicate<LivingEntity>
h
predicateOnAvoidEntity
field_6388
inclusionSelector
private final TargetingConditions
k
avoidEntityTargeting
field_18084
withinRangePredicate

Constructor summary

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

Method summary

Modifier and TypeMethod
public boolean
b()
canUse()
method_6264()
canStart()
public boolean
c()
canContinueToUse()
method_6266()
shouldContinue()
public void
d()
start()
method_6269()
start()
public void
e()
stop()
method_6270()
stop()
public void
a()
tick()
method_6268()
tick()