Class AdmireItemTask<E extends PiglinEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.AdmireItemTask<E>
- Mappings:
Namespace Name official bnl
intermediary net/minecraft/class_4823
named net/minecraft/entity/ai/brain/task/AdmireItemTask
-
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
-
duration
private final int duration- Mappings:
Namespace Name Mixin selector official a
Lbnl;a:I
intermediary field_22324
Lnet/minecraft/class_4823;field_22324:I
named duration
Lnet/minecraft/entity/ai/brain/task/AdmireItemTask;duration:I
-
-
Constructor Details
-
AdmireItemTask
public AdmireItemTask(int duration) - Mappings:
Namespace Name Mixin selector official <init>
Lbnl;<init>(I)V
intermediary <init>
Lnet/minecraft/class_4823;<init>(I)V
named <init>
Lnet/minecraft/entity/ai/brain/task/AdmireItemTask;<init>(I)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends PiglinEntity>
- Mappings:
Namespace Name Mixin selector official a
Lbnl;a(Ladw;Lbnf;)Z
intermediary method_24609
Lnet/minecraft/class_4823;method_24609(Lnet/minecraft/class_3218;Lnet/minecraft/class_4836;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/AdmireItemTask;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
Lbnl;a(Ladw;Lbnf;J)V
intermediary method_24610
Lnet/minecraft/class_4823;method_24610(Lnet/minecraft/class_3218;Lnet/minecraft/class_4836;J)V
named run
Lnet/minecraft/entity/ai/brain/task/AdmireItemTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PiglinEntity;J)V
-