Package net.minecraft.entity.ai.goal
Class AvoidEntityGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.AvoidEntityGoal<T>
- Direct Known Subclasses:
CatEntity.AvoidPlayerGoal
,OcelotEntity.AvoidEntityGoal
,PandaEntity.AvoidGoal
,RabbitEntity.AvoidEntityGoal
,WolfEntity.AvoidEntityGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityPredicate
protected final Predicate<LivingEntity>
protected final float
protected final CreatureEntity
protected Path
protected final PathNavigator
protected final Predicate<LivingEntity>
private final double
protected T
private final double
-
Constructor Summary
ConstructorDescriptionAvoidEntityGoal
(CreatureEntity p_i46404_1_, Class<T> p_i46404_2_, float p_i46404_3_, double p_i46404_4_, double p_i46404_6_) AvoidEntityGoal
(CreatureEntity p_i48860_1_, Class<T> p_i48860_2_, float p_i48860_3_, double p_i48860_4_, double p_i48860_6_, Predicate<LivingEntity> p_i48860_8_) AvoidEntityGoal
(CreatureEntity p_i48859_1_, Class<T> p_i48859_2_, Predicate<LivingEntity> p_i48859_3_, float p_i48859_4_, double p_i48859_5_, double p_i48859_7_, Predicate<LivingEntity> p_i48859_9_) -
Method Summary
Methods inherited from class net.minecraft.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(CreatureEntity p_i46404_1_, Class<T> p_i46404_2_, float p_i46404_3_, double p_i46404_4_, double p_i46404_6_) -
AvoidEntityGoal
public AvoidEntityGoal(CreatureEntity p_i48859_1_, Class<T> p_i48859_2_, Predicate<LivingEntity> p_i48859_3_, float p_i48859_4_, double p_i48859_5_, double p_i48859_7_, Predicate<LivingEntity> p_i48859_9_) -
AvoidEntityGoal
public AvoidEntityGoal(CreatureEntity p_i48860_1_, Class<T> p_i48860_2_, float p_i48860_3_, double p_i48860_4_, double p_i48860_6_, Predicate<LivingEntity> p_i48860_8_)
-
-
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()
-