Package net.minecraft.entity.ai.goal
Class FleeEntityGoal<T extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.FleeEntityGoal<T>
- Direct Known Subclasses:
CatEntity.CatFleeGoal
,OcelotEntity.FleeGoal
,PandaEntity.PandaFleeGoal
,RabbitEntity.FleeGoal
,WolfEntity.AvoidLlamaGoal
- Mappings:
Namespace Name official ayw
intermediary net/minecraft/class_1338
named net/minecraft/entity/ai/goal/FleeEntityGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprotected Predicate<LivingEntity>
private double
protected float
protected EntityNavigation
protected Path
protected Predicate<LivingEntity>
protected PathAwareEntity
private double
protected T
private TargetPredicate
-
Constructor Summary
ConstructorDescriptionFleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)
FleeEntityGoal(PathAwareEntity fleeingEntity, Class<T> classToFleeFrom, float fleeDistance, double fleeSlowSpeed, double fleeFastSpeed, Predicate<LivingEntity> inclusionSelector)
FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, Predicate<LivingEntity> extraInclusionSelector, float distance, double slowSpeed, double fastSpeed, Predicate<LivingEntity> inclusionSelector)
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector official a
Layw;a:Lauc;
intermediary field_6391
Lnet/minecraft/class_1338;field_6391:Lnet/minecraft/class_1314;
named mob
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
-
slowSpeed
private final double slowSpeed- Mappings:
Namespace Name Mixin selector official i
Layw;i:D
intermediary field_6385
Lnet/minecraft/class_1338;field_6385:D
named slowSpeed
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;slowSpeed:D
-
fastSpeed
private final double fastSpeed- Mappings:
Namespace Name Mixin selector official j
Layw;j:D
intermediary field_6395
Lnet/minecraft/class_1338;field_6395:D
named fastSpeed
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fastSpeed:D
-
targetEntity
- Mappings:
Namespace Name Mixin selector official b
Layw;b:Latt;
intermediary field_6390
Lnet/minecraft/class_1338;field_6390:Lnet/minecraft/class_1309;
named targetEntity
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;targetEntity:Lnet/minecraft/entity/LivingEntity;
-
fleeDistance
protected final float fleeDistance- Mappings:
Namespace Name Mixin selector official c
Layw;c:F
intermediary field_6386
Lnet/minecraft/class_1338;field_6386:F
named fleeDistance
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fleeDistance:F
-
fleePath
- Mappings:
Namespace Name Mixin selector official d
Layw;d:Ldha;
intermediary field_6387
Lnet/minecraft/class_1338;field_6387:Lnet/minecraft/class_11;
named fleePath
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fleePath:Lnet/minecraft/entity/ai/pathing/Path;
-
classToFleeFrom
- Mappings:
Namespace Name Mixin selector official f
Layw;f:Ljava/lang/Class;
intermediary field_6392
Lnet/minecraft/class_1338;field_6392:Ljava/lang/Class;
named classToFleeFrom
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;classToFleeFrom:Ljava/lang/Class;
-
extraInclusionSelector
- Mappings:
Namespace Name Mixin selector official g
Layw;g:Ljava/util/function/Predicate;
intermediary field_6393
Lnet/minecraft/class_1338;field_6393:Ljava/util/function/Predicate;
named extraInclusionSelector
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;extraInclusionSelector:Ljava/util/function/Predicate;
-
inclusionSelector
- Mappings:
Namespace Name Mixin selector official h
Layw;h:Ljava/util/function/Predicate;
intermediary field_6388
Lnet/minecraft/class_1338;field_6388:Ljava/util/function/Predicate;
named inclusionSelector
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;inclusionSelector:Ljava/util/function/Predicate;
-
withinRangePredicate
- Mappings:
Namespace Name Mixin selector official k
Layw;k:Lbcz;
intermediary field_18084
Lnet/minecraft/class_1338;field_18084:Lnet/minecraft/class_4051;
named withinRangePredicate
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;withinRangePredicate:Lnet/minecraft/entity/ai/TargetPredicate;
-
-
Constructor Details
-
FleeEntityGoal
public FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed)- Mappings:
Namespace Name Mixin selector official <init>
Layw;<init>(Lauc;Ljava/lang/Class;FDD)V
intermediary <init>
Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;FDD)V
named <init>
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;FDD)V
-
FleeEntityGoal
public FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, Predicate<LivingEntity> extraInclusionSelector, float distance, double slowSpeed, double fastSpeed, Predicate<LivingEntity> inclusionSelector)- Mappings:
Namespace Name Mixin selector official <init>
Layw;<init>(Lauc;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
-
FleeEntityGoal
public FleeEntityGoal(PathAwareEntity fleeingEntity, Class<T> classToFleeFrom, float fleeDistance, double fleeSlowSpeed, double fleeFastSpeed, Predicate<LivingEntity> inclusionSelector)- Mappings:
Namespace Name Mixin selector official <init>
Layw;<init>(Lauc;Ljava/lang/Class;FDDLjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;FDDLjava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;FDDLjava/util/function/Predicate;)V
-
-
Method Details
-
canStart
public boolean canStart() -
shouldContinue
public boolean shouldContinue()- Overrides:
shouldContinue
in classGoal
- Mappings:
Namespace Name Mixin selector official b
Lazo;b()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-