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 bmv
intermediary net/minecraft/class_4827
named net/minecraft/entity/ai/brain/task/WantNewItemTask
  • Field Details

    • range

      private final int range
      Mappings:
      Namespace Name Mixin selector
      official a Lbmv;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> Lbmv;<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

      protected boolean shouldRun(ServerWorld serverWorld, E e)
      Overrides:
      shouldRun in class Task<E extends PiglinEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbmv;a(Ladi;Lbmn;)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

      protected void run(ServerWorld serverWorld, E e, long long2)
      Overrides:
      run in class Task<E extends PiglinEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbmv;a(Ladi;Lbmn;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