Class FleeTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<PathAwareEntity>
net.minecraft.entity.ai.brain.task.FleeTask
- All Implemented Interfaces:
Task<PathAwareEntity>
- Direct Known Subclasses:
CamelBrain.CamelWalkTask
- Mappings:
Namespace Name official bhk
intermediary net/minecraft/class_6028
named net/minecraft/entity/ai/brain/task/FleeTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private static final int
private static final Predicate<PathAwareEntity>
private final Predicate<PathAwareEntity>
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, Predicate<PathAwareEntity> predicate) -
Method Summary
Modifier and TypeMethodDescriptionfindClosestWater
(BlockView world, Entity entity) findTarget
(PathAwareEntity entity, ServerWorld world) protected void
finishRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
keepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected void
run
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, PathAwareEntity pathAwareEntity) 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 official c
Lbhk;c:I
intermediary field_30107
Lnet/minecraft/class_6028;field_30107:I
named MIN_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/FleeTask;MIN_RUN_TIME:I
-
MAX_RUN_TIME
private static final int MAX_RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbhk;d:I
intermediary field_30108
Lnet/minecraft/class_6028;field_30108:I
named MAX_RUN_TIME
Lnet/minecraft/entity/ai/brain/task/FleeTask;MAX_RUN_TIME:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lbhk;e:I
intermediary field_30109
Lnet/minecraft/class_6028;field_30109:I
named HORIZONTAL_RANGE
Lnet/minecraft/entity/ai/brain/task/FleeTask;HORIZONTAL_RANGE:I
-
VERTICAL_RANGE
private static final int VERTICAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lbhk;f:I
intermediary field_30110
Lnet/minecraft/class_6028;field_30110:I
named VERTICAL_RANGE
Lnet/minecraft/entity/ai/brain/task/FleeTask;VERTICAL_RANGE:I
-
PANIC_PREDICATE
- Mappings:
Namespace Name Mixin selector official g
Lbhk;g:Ljava/util/function/Predicate;
intermediary field_42976
Lnet/minecraft/class_6028;field_42976:Ljava/util/function/Predicate;
named PANIC_PREDICATE
Lnet/minecraft/entity/ai/brain/task/FleeTask;PANIC_PREDICATE:Ljava/util/function/Predicate;
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official h
Lbhk;h:F
intermediary field_30111
Lnet/minecraft/class_6028;field_30111:F
named speed
Lnet/minecraft/entity/ai/brain/task/FleeTask;speed:F
-
predicate
- Mappings:
Namespace Name Mixin selector official i
Lbhk;i:Ljava/util/function/Predicate;
intermediary field_42977
Lnet/minecraft/class_6028;field_42977:Ljava/util/function/Predicate;
named predicate
Lnet/minecraft/entity/ai/brain/task/FleeTask;predicate:Ljava/util/function/Predicate;
-
-
Constructor Details
-
FleeTask
public FleeTask(float speed) - Mappings:
Namespace Name Mixin selector official <init>
Lbhk;<init>(F)V
intermediary <init>
Lnet/minecraft/class_6028;<init>(F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FleeTask;<init>(F)V
-
FleeTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbhk;<init>(FLjava/util/function/Predicate;)V
intermediary <init>
Lnet/minecraft/class_6028;<init>(FLjava/util/function/Predicate;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/FleeTask;<init>(FLjava/util/function/Predicate;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbhk;a(Laip;Lbgg;)Z
intermediary method_49487
Lnet/minecraft/class_6028;method_49487(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/FleeTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
shouldKeepRunning
protected boolean shouldKeepRunning(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbhk;a(Laip;Lbgg;J)Z
intermediary method_35063
Lnet/minecraft/class_6028;method_35063(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/FleeTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)Z
-
run
- Overrides:
run
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official b
Lbhk;b(Laip;Lbgg;J)V
intermediary method_35064
Lnet/minecraft/class_6028;method_35064(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/FleeTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official c
Lbhk;c(Laip;Lbgg;J)V
intermediary method_44203
Lnet/minecraft/class_6028;method_44203(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/FleeTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official d
Lbhk;d(Laip;Lbgg;J)V
intermediary method_35065
Lnet/minecraft/class_6028;method_35065(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/FleeTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-
findTarget
- Mappings:
Namespace Name Mixin selector official a
Lbhk;a(Lbgg;Laip;)Lede;
intermediary method_39761
Lnet/minecraft/class_6028;method_39761(Lnet/minecraft/class_1314;Lnet/minecraft/class_3218;)Lnet/minecraft/class_243;
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;
-
findClosestWater
- Mappings:
Namespace Name Mixin selector official a
Lbhk;a(Lclo;Lbfh;)Ljava/util/Optional;
intermediary method_39762
Lnet/minecraft/class_6028;method_39762(Lnet/minecraft/class_1922;Lnet/minecraft/class_1297;)Ljava/util/Optional;
named findClosestWater
Lnet/minecraft/entity/ai/brain/task/FleeTask;findClosestWater(Lnet/minecraft/world/BlockView;Lnet/minecraft/entity/Entity;)Ljava/util/Optional;
-