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