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
  • 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

      protected boolean shouldRun​(ServerWorld serverWorld, E e)
      Overrides:
      shouldRun in class Task<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

      protected void run​(ServerWorld serverWorld, E e, long long2)
      Overrides:
      run in class Task<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