Class WalkToNearestVisibleWantedItemTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.WalkToNearestVisibleWantedItemTask<E>
- Mappings:
Namespace Name official azl
intermediary net/minecraft/class_4815
named net/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionWalkToNearestVisibleWantedItemTask
(float speed, boolean requiresWalkTarget, int radius) WalkToNearestVisibleWantedItemTask
(Predicate<E> startCondition, float speed, boolean requiresWalkTarget, int radius) -
Method Summary
Modifier and TypeMethodDescriptionprivate ItemEntity
getNearestVisibleWantedItem
(E entity) protected void
run
(ServerWorld world, E entity, long time) protected boolean
shouldRun
(ServerWorld world, E entity) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
startCondition
- Mappings:
Namespace Name Mixin selector official a
Lazl;a:Ljava/util/function/Predicate;
intermediary field_22305
Lnet/minecraft/class_4815;field_22305:Ljava/util/function/Predicate;
named startCondition
Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;startCondition:Ljava/util/function/Predicate;
-
radius
private final int radius- Mappings:
Namespace Name Mixin selector official c
Lazl;c:I
intermediary field_22306
Lnet/minecraft/class_4815;field_22306:I
named radius
Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;radius:I
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official d
Lazl;d:F
intermediary field_23131
Lnet/minecraft/class_4815;field_23131:F
named speed
Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;speed:F
-
-
Constructor Details
-
WalkToNearestVisibleWantedItemTask
public WalkToNearestVisibleWantedItemTask(float speed, boolean requiresWalkTarget, int radius) - Mappings:
Namespace Name Mixin selector official <init>
Lazl;<init>(FZI)V
intermediary <init>
Lnet/minecraft/class_4815;<init>(FZI)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;<init>(FZI)V
-
WalkToNearestVisibleWantedItemTask
public WalkToNearestVisibleWantedItemTask(Predicate<E> startCondition, float speed, boolean requiresWalkTarget, int radius) - Mappings:
Namespace Name Mixin selector official <init>
Lazl;<init>(Ljava/util/function/Predicate;FZI)V
intermediary <init>
Lnet/minecraft/class_4815;<init>(Ljava/util/function/Predicate;FZI)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;<init>(Ljava/util/function/Predicate;FZI)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Layt;a(Ladi;Laxh;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Layt;a(Ladi;Laxh;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
getNearestVisibleWantedItem
- Mappings:
Namespace Name Mixin selector official a
Lazl;a(Laxh;)Lbkq;
intermediary method_24580
Lnet/minecraft/class_4815;method_24580(Lnet/minecraft/class_1309;)Lnet/minecraft/class_1542;
named getNearestVisibleWantedItem
Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;getNearestVisibleWantedItem(Lnet/minecraft/entity/LivingEntity;)Lnet/minecraft/entity/ItemEntity;
-