Class FindRoarTargetTask<E extends WardenEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.FindRoarTargetTask<E>

public class FindRoarTargetTask<E extends WardenEntity> extends Task<E>
Mappings:
Namespace Name
official bgk
intermediary net/minecraft/class_7256
named net/minecraft/entity/ai/brain/task/FindRoarTargetTask
  • Field Details

    • targetFinder

      private final Function<E extends WardenEntity,Optional<? extends LivingEntity>> targetFinder
      Mappings:
      Namespace Name Mixin selector
      official a Lbgk;a:Ljava/util/function/Function;
      intermediary field_38132 Lnet/minecraft/class_7256;field_38132:Ljava/util/function/Function;
      named targetFinder Lnet/minecraft/entity/ai/brain/task/FindRoarTargetTask;targetFinder:Ljava/util/function/Function;
  • Constructor Details

    • FindRoarTargetTask

      public FindRoarTargetTask(Function<E,Optional<? extends LivingEntity>> targetFinder)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbgk;<init>(Ljava/util/function/Function;)V
      intermediary <init> Lnet/minecraft/class_7256;<init>(Ljava/util/function/Function;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/FindRoarTargetTask;<init>(Ljava/util/function/Function;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, E e)
      Overrides:
      shouldRun in class Task<E extends WardenEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbgk;a(Lafo;Lbsj;)Z
      intermediary method_42193 Lnet/minecraft/class_7256;method_42193(Lnet/minecraft/class_3218;Lnet/minecraft/class_7260;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/FindRoarTargetTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/WardenEntity;)Z
    • run

      protected void run(ServerWorld serverWorld, E e, long long2)
      Overrides:
      run in class Task<E extends WardenEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbgk;a(Lafo;Lbsj;J)V
      intermediary method_42194 Lnet/minecraft/class_7256;method_42194(Lnet/minecraft/class_3218;Lnet/minecraft/class_7260;J)V
      named run Lnet/minecraft/entity/ai/brain/task/FindRoarTargetTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/WardenEntity;J)V