Class WantNewItemTask<E extends PiglinEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.WantNewItemTask<E>
- Mappings:
Namespace Name official bmo
intermediary net/minecraft/class_4827
named net/minecraft/entity/ai/brain/task/WantNewItemTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
range
private final int range- Mappings:
Namespace Name Mixin selector official a
Lbmo;a:I
intermediary field_22328
Lnet/minecraft/class_4827;field_22328:I
named range
Lnet/minecraft/entity/ai/brain/task/WantNewItemTask;range:I
-
-
Constructor Details
-
WantNewItemTask
public WantNewItemTask(int range) - Mappings:
Namespace Name Mixin selector official <init>
Lbmo;<init>(I)V
intermediary <init>
Lnet/minecraft/class_4827;<init>(I)V
named <init>
Lnet/minecraft/entity/ai/brain/task/WantNewItemTask;<init>(I)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends PiglinEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbmo;a(Ladc;Lbmg;)Z
intermediary method_24619
Lnet/minecraft/class_4827;method_24619(Lnet/minecraft/class_3218;Lnet/minecraft/class_4836;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/WantNewItemTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PiglinEntity;)Z
-
run
- Overrides:
run
in classTask<E extends PiglinEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbmo;a(Ladc;Lbmg;J)V
intermediary method_24620
Lnet/minecraft/class_4827;method_24620(Lnet/minecraft/class_3218;Lnet/minecraft/class_4836;J)V
named run
Lnet/minecraft/entity/ai/brain/task/WantNewItemTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PiglinEntity;J)V
-