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 bdm
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
DEFAULT_RUN_TIME, 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) private boolean
isInPickupCooldown
(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
Lbdm;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 d
Lbdm;d: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 e
Lbdm;e: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>
Lbdm;<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>
Lbdm;<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
Lbcr;a(Lafo;Lbbf;)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
Lbcr;a(Lafo;Lbbf;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
-
isInPickupCooldown
- Mappings:
Namespace Name Mixin selector official a
Lbdm;a(Lbbf;)Z
intermediary method_42652
Lnet/minecraft/class_4815;method_42652(Lnet/minecraft/class_1309;)Z
named isInPickupCooldown
Lnet/minecraft/entity/ai/brain/task/WalkToNearestVisibleWantedItemTask;isInPickupCooldown(Lnet/minecraft/entity/LivingEntity;)Z
-
getNearestVisibleWantedItem
- Mappings:
Namespace Name Mixin selector official b
Lbdm;b(Lbbf;)Lbpy;
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;
-