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 named net/minecraft/entity/ai/goal/FleeEntityGoal
intermediary net/minecraft/class_1338
official bzw
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Predicate
<LivingEntity> private final double
protected final float
protected final EntityNavigation
protected final Predicate
<LivingEntity> protected final PathAwareEntity
private final double
protected T
private final 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, getTickCount, setControls, shouldRunEveryTick, toGoalTicks, toString
-
Field Details
-
mob
- Mappings:
Namespace Name Mixin selector named mob
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;mob:Lnet/minecraft/entity/mob/PathAwareEntity;
intermediary field_6391
Lnet/minecraft/class_1338;field_6391:Lnet/minecraft/class_1314;
official a
Lbzw;a:Lbua;
-
slowSpeed
private final double slowSpeed- Mappings:
Namespace Name Mixin selector named slowSpeed
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;slowSpeed:D
intermediary field_6385
Lnet/minecraft/class_1338;field_6385:D
official i
Lbzw;i:D
-
fastSpeed
private final double fastSpeed- Mappings:
Namespace Name Mixin selector named fastSpeed
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fastSpeed:D
intermediary field_6395
Lnet/minecraft/class_1338;field_6395:D
official j
Lbzw;j:D
-
targetEntity
- Mappings:
Namespace Name Mixin selector named targetEntity
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;targetEntity:Lnet/minecraft/entity/LivingEntity;
intermediary field_6390
Lnet/minecraft/class_1338;field_6390:Lnet/minecraft/class_1309;
official b
Lbzw;b:Lbtr;
-
fleeDistance
protected final float fleeDistance- Mappings:
Namespace Name Mixin selector named fleeDistance
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fleeDistance:F
intermediary field_6386
Lnet/minecraft/class_1338;field_6386:F
official c
Lbzw;c:F
-
fleePath
- Mappings:
Namespace Name Mixin selector named fleePath
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;fleePath:Lnet/minecraft/entity/ai/pathing/Path;
intermediary field_6387
Lnet/minecraft/class_1338;field_6387:Lnet/minecraft/class_11;
official d
Lbzw;d:Leol;
-
classToFleeFrom
- Mappings:
Namespace Name Mixin selector named classToFleeFrom
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;classToFleeFrom:Ljava/lang/Class;
intermediary field_6392
Lnet/minecraft/class_1338;field_6392:Ljava/lang/Class;
official f
Lbzw;f:Ljava/lang/Class;
-
extraInclusionSelector
- Mappings:
Namespace Name Mixin selector named extraInclusionSelector
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;extraInclusionSelector:Ljava/util/function/Predicate;
intermediary field_6393
Lnet/minecraft/class_1338;field_6393:Ljava/util/function/Predicate;
official g
Lbzw;g:Ljava/util/function/Predicate;
-
inclusionSelector
- Mappings:
Namespace Name Mixin selector named inclusionSelector
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;inclusionSelector:Ljava/util/function/Predicate;
intermediary field_6388
Lnet/minecraft/class_1338;field_6388:Ljava/util/function/Predicate;
official h
Lbzw;h:Ljava/util/function/Predicate;
-
withinRangePredicate
- Mappings:
Namespace Name Mixin selector named withinRangePredicate
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;withinRangePredicate:Lnet/minecraft/entity/ai/TargetPredicate;
intermediary field_18084
Lnet/minecraft/class_1338;field_18084:Lnet/minecraft/class_4051;
official k
Lbzw;k:Lcei;
-
-
Constructor Details
-
FleeEntityGoal
public FleeEntityGoal(PathAwareEntity mob, Class<T> fleeFromType, float distance, double slowSpeed, double fastSpeed) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;Ljava/lang/Class;FDD)V
intermediary <init>
Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;FDD)V
official <init>
Lbzw;<init>(Lbua;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 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
intermediary <init>
Lnet/minecraft/class_1338;<init>(Lnet/minecraft/class_1314;Ljava/lang/Class;Ljava/util/function/Predicate;FDDLjava/util/function/Predicate;)V
official <init>
Lbzw;<init>(Lbua;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 named <init>
Lnet/minecraft/entity/ai/goal/FleeEntityGoal;<init>(Lnet/minecraft/entity/mob/PathAwareEntity;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
official <init>
Lbzw;<init>(Lbua;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 named shouldContinue
Lnet/minecraft/entity/ai/goal/Goal;shouldContinue()Z
intermediary method_6266
Lnet/minecraft/class_1352;method_6266()Z
official b
Lcap;b()Z
-
start
public void start() -
stop
public void stop() -
tick
public void tick()
-