Class WantNewItemTask<E extends PiglinEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.WantNewItemTask<E>
public class WantNewItemTask<E extends PiglinEntity> extends Task<E>
- Mappings:
Namespace Name official bgp
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 Modifier and Type Field Description private int
range
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description WantNewItemTask(int range)
-
Method Summary
Modifier and Type Method Description 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
-
range
private final int range- Mappings:
Namespace Name Mixin selector official b
Lbgp;b: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>
Lbgp;<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
Lbgp;a(Laav;Lbgh;)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
Lbgp;a(Laav;Lbgh;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
-