Class FleeTask<E extends PathAwareEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
net.minecraft.entity.ai.brain.task.FleeTask<E>
- All Implemented Interfaces:
Task<E>
- Direct Known Subclasses:
ArmadilloBrain.UnrollAndFleeTask
,CamelBrain.CamelWalkTask
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/FleeTask
intermediary net/minecraft/class_6028
official bvc
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Function
<PathAwareEntity, TagKey<DamageType>> private static final int
private static final int
private static final int
private final float
private static final int
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionFleeTask
(float speed) FleeTask
(float speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) -
Method Summary
Modifier and TypeMethodDescriptionfindClosestWater
(BlockView world, Entity entity) findTarget
(E entity, ServerWorld world) protected void
finishRunning
(ServerWorld serverWorld, E e, long long2) protected void
keepRunning
(ServerWorld serverWorld, E e, long long2) protected void
run
(ServerWorld serverWorld, E e, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, E e, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, E e) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
MIN_RUN_TIME
private static final int MIN_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/FleeTask;MIN_RUN_TIME:I
intermediary field_30107
Lnet/minecraft/class_6028;field_30107:I
official c
Lbvc;c:I
-
MAX_RUN_TIME
private static final int MAX_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/FleeTask;MAX_RUN_TIME:I
intermediary field_30108
Lnet/minecraft/class_6028;field_30108:I
official d
Lbvc;d:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named HORIZONTAL_RANGE
Lnet/minecraft/entity/ai/brain/task/FleeTask;HORIZONTAL_RANGE:I
intermediary field_30109
Lnet/minecraft/class_6028;field_30109:I
official e
Lbvc;e:I
-
VERTICAL_RANGE
private static final int VERTICAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector named VERTICAL_RANGE
Lnet/minecraft/entity/ai/brain/task/FleeTask;VERTICAL_RANGE:I
intermediary field_30110
Lnet/minecraft/class_6028;field_30110:I
official f
Lbvc;f:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector named speed
Lnet/minecraft/entity/ai/brain/task/FleeTask;speed:F
intermediary field_30111
Lnet/minecraft/class_6028;field_30111:F
official g
Lbvc;g:F
-
entityToDangerousDamageTypes
- Mappings:
Namespace Name Mixin selector named entityToDangerousDamageTypes
Lnet/minecraft/entity/ai/brain/task/FleeTask;entityToDangerousDamageTypes:Ljava/util/function/Function;
intermediary field_52010
Lnet/minecraft/class_6028;field_52010:Ljava/util/function/Function;
official h
Lbvc;h:Ljava/util/function/Function;
-
-
Constructor Details
-
FleeTask
public FleeTask(float speed) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/FleeTask;<init>(F)V
intermediary <init>
Lnet/minecraft/class_6028;<init>(F)V
official <init>
Lbvc;<init>(F)V
-
FleeTask
public FleeTask(float speed, Function<PathAwareEntity, TagKey<DamageType>> entityToDangerousDamageTypes) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/FleeTask;<init>(FLjava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_6028;<init>(FLjava/util/function/Function;)V
official <init>
Lbvc;<init>(FLjava/util/function/Function;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<E extends PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/FleeTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
intermediary method_49487
Lnet/minecraft/class_6028;method_49487(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
official a
Lbvc;a(Laqu;Lbtw;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classMultiTickTask<E extends PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/FleeTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)Z
intermediary method_35063
Lnet/minecraft/class_6028;method_35063(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Z
official a
Lbvc;a(Laqu;Lbtw;J)Z
-
run
- Overrides:
run
in classMultiTickTask<E extends PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/FleeTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
intermediary method_35064
Lnet/minecraft/class_6028;method_35064(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
official b
Lbvc;b(Laqu;Lbtw;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<E extends PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/FleeTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
intermediary method_44203
Lnet/minecraft/class_6028;method_44203(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
official c
Lbvc;c(Laqu;Lbtw;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<E extends PathAwareEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/FleeTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
intermediary method_35065
Lnet/minecraft/class_6028;method_35065(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
official d
Lbvc;d(Laqu;Lbtw;J)V
-
findTarget
- Mappings:
Namespace Name Mixin selector named findTarget
Lnet/minecraft/entity/ai/brain/task/FleeTask;findTarget(Lnet/minecraft/entity/mob/PathAwareEntity;Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/Vec3d;
intermediary method_39761
Lnet/minecraft/class_6028;method_39761(Lnet/minecraft/class_1314;Lnet/minecraft/class_3218;)Lnet/minecraft/class_243;
official a
Lbvc;a(Lbtw;Laqu;)Lexc;
-
findClosestWater
- Mappings:
Namespace Name Mixin selector named findClosestWater
Lnet/minecraft/entity/ai/brain/task/FleeTask;findClosestWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)Ljava/util/Optional;
intermediary method_39762
Lnet/minecraft/class_6028;method_39762(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;)Ljava/util/Optional;
official a
Lbvc;a(Ldcc;Lbsr;)Ljava/util/Optional;
-