Class WalkTowardClosestAdultTask<E extends PassiveEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.WalkTowardClosestAdultTask<E>
public class WalkTowardClosestAdultTask<E extends PassiveEntity> extends Task<E>
- Mappings:
Namespace Name official asp
intermediary net/minecraft/class_5355
named net/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private IntRange
executionRange
private Function<LivingEntity,Float>
speed
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description WalkTowardClosestAdultTask(IntRange executionRange, float speed)
WalkTowardClosestAdultTask(IntRange executionRange, Function<LivingEntity,Float> speed)
-
Method Summary
Modifier and Type Method Description private PassiveEntity
getNearestVisibleAdult(E entity)
protected void
run(ServerWorld serverWorld, E e, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, E e)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
executionRange
- Mappings:
Namespace Name Mixin selector official b
Lasp;b:Lafy;
intermediary field_25357
Lnet/minecraft/class_5355;field_25357:Lnet/minecraft/class_4801;
named executionRange
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;executionRange:Lnet/minecraft/util/math/IntRange;
-
speed
- Mappings:
Namespace Name Mixin selector official c
Lasp;c:Ljava/util/function/Function;
intermediary field_25358
Lnet/minecraft/class_5355;field_25358:Ljava/util/function/Function;
named speed
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;speed:Ljava/util/function/Function;
-
-
Constructor Details
-
WalkTowardClosestAdultTask
- Mappings:
Namespace Name Mixin selector official <init>
Lasp;<init>(Lafy;F)V
intermediary <init>
Lnet/minecraft/class_5355;<init>(Lnet/minecraft/class_4801;F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;<init>(Lnet/minecraft/util/math/IntRange;F)V
-
WalkTowardClosestAdultTask
- Mappings:
Namespace Name Mixin selector official <init>
Lasp;<init>(Lafy;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_5355;<init>(Lnet/minecraft/class_4801;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;<init>(Lnet/minecraft/util/math/IntRange;Ljava/util/function/Function;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends PassiveEntity>
- Mappings:
Namespace Name Mixin selector official a
Lasp;a(Laav;Laqt;)Z
intermediary method_29521
Lnet/minecraft/class_5355;method_29521(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Z
-
run
- Overrides:
run
in classTask<E extends PassiveEntity>
- Mappings:
Namespace Name Mixin selector official a
Lasp;a(Laav;Laqt;J)V
intermediary method_29522
Lnet/minecraft/class_5355;method_29522(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;J)V
named run
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;J)V
-
getNearestVisibleAdult
- Mappings:
Namespace Name Mixin selector official a
Lasp;a(Laqt;)Laqt;
intermediary method_29520
Lnet/minecraft/class_5355;method_29520(Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
named getNearestVisibleAdult
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;getNearestVisibleAdult(Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
-