Class WalkTowardClosestAdultTask<E extends PassiveEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.WalkTowardClosestAdultTask<E>
- Mappings:
Namespace Name official avd
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
Modifier and TypeFieldDescriptionprivate UniformIntProvider
private Function<LivingEntity,Float>
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionWalkTowardClosestAdultTask(UniformIntProvider executionRange, float speed)
WalkTowardClosestAdultTask(UniformIntProvider executionRange, Function<LivingEntity,Float> speed)
-
Method Summary
Modifier and TypeMethodDescriptionprivate 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 a
Lavd;a:Larm;
intermediary field_25357
Lnet/minecraft/class_5355;field_25357:Lnet/minecraft/class_6019;
named executionRange
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;executionRange:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
speed
- Mappings:
Namespace Name Mixin selector official c
Lavd;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>
Lavd;<init>(Larm;F)V
intermediary <init>
Lnet/minecraft/class_5355;<init>(Lnet/minecraft/class_6019;F)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;F)V
-
WalkTowardClosestAdultTask
public WalkTowardClosestAdultTask(UniformIntProvider executionRange, Function<LivingEntity,Float> speed)- Mappings:
Namespace Name Mixin selector official <init>
Lavd;<init>(Larm;Ljava/util/function/Function;)V
intermediary <init>
Lnet/minecraft/class_5355;<init>(Lnet/minecraft/class_6019;Ljava/util/function/Function;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkTowardClosestAdultTask;<init>(Lnet/minecraft/util/math/intprovider/UniformIntProvider;Ljava/util/function/Function;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends PassiveEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavd;a(Labr;Latd;)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
Lavd;a(Labr;Latd;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
Lavd;a(Latd;)Latd;
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;
-