Class TimeLimitedTask<E extends LivingEntity>

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

public class TimeLimitedTask<E extends LivingEntity> extends Task<E>
Mappings:
Namespace Name
official beq
intermediary net/minecraft/class_4821
named net/minecraft/entity/ai/brain/task/TimeLimitedTask
  • Field Details

    • needsTimeReset

      private boolean needsTimeReset
      Mappings:
      Namespace Name Mixin selector
      official a Lbeq;a:Z
      intermediary field_22316 Lnet/minecraft/class_4821;field_22316:Z
      named needsTimeReset Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;needsTimeReset:Z
    • delegateRunning

      private boolean delegateRunning
      Mappings:
      Namespace Name Mixin selector
      official d Lbeq;d:Z
      intermediary field_22317 Lnet/minecraft/class_4821;field_22317:Z
      named delegateRunning Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;delegateRunning:Z
    • timeRange

      private final UniformIntProvider timeRange
      Mappings:
      Namespace Name Mixin selector
      official e Lbeq;e:Layx;
      intermediary field_22318 Lnet/minecraft/class_4821;field_22318:Lnet/minecraft/class_6019;
      named timeRange Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;timeRange:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
    • delegate

      private final Task<? super E extends LivingEntity> delegate
      Mappings:
      Namespace Name Mixin selector
      official f Lbeq;f:Lbcr;
      intermediary field_22319 Lnet/minecraft/class_4821;field_22319:Lnet/minecraft/class_4097;
      named delegate Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;delegate:Lnet/minecraft/entity/ai/brain/task/Task;
    • timeLeft

      private int timeLeft
      Mappings:
      Namespace Name Mixin selector
      official g Lbeq;g:I
      intermediary field_22320 Lnet/minecraft/class_4821;field_22320:I
      named timeLeft Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;timeLeft:I
  • Constructor Details

    • TimeLimitedTask

      public TimeLimitedTask(Task<? super E> delegate, UniformIntProvider timeRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbeq;<init>(Lbcr;Layx;)V
      intermediary <init> Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;Lnet/minecraft/class_6019;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;Lnet/minecraft/util/math/intprovider/UniformIntProvider;)V
    • TimeLimitedTask

      public TimeLimitedTask(Task<? super E> delegate, boolean skipFirstRun, UniformIntProvider timeRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbeq;<init>(Lbcr;ZLayx;)V
      intermediary <init> Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;ZLnet/minecraft/class_6019;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;ZLnet/minecraft/util/math/intprovider/UniformIntProvider;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld world, E entity)
      Overrides:
      shouldRun in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;)Z
      intermediary method_18919 Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
    • run

      protected void run(ServerWorld world, E entity, long time)
      Overrides:
      run in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(Lafo;Lbbf;J)V
      intermediary method_18920 Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named run Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld world, E entity, long time)
      Overrides:
      shouldKeepRunning in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbcr;b(Lafo;Lbbf;J)Z
      intermediary method_18927 Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/Task;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
    • keepRunning

      protected void keepRunning(ServerWorld world, E entity, long time)
      Overrides:
      keepRunning in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lbcr;d(Lafo;Lbbf;J)V
      intermediary method_18924 Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/Task;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • finishRunning

      protected void finishRunning(ServerWorld world, E entity, long time)
      Overrides:
      finishRunning in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lbcr;c(Lafo;Lbbf;J)V
      intermediary method_18926 Lnet/minecraft/class_4097;method_18926(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/Task;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • resetTimeLeft

      private void resetTimeLeft(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbeq;a(Lafo;)V
      intermediary method_24598 Lnet/minecraft/class_4821;method_24598(Lnet/minecraft/class_3218;)V
      named resetTimeLeft Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;resetTimeLeft(Lnet/minecraft/server/world/ServerWorld;)V
    • isTimeLimitExceeded

      protected boolean isTimeLimitExceeded(long time)
      Overrides:
      isTimeLimitExceeded in class Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbcr;a(J)Z
      intermediary method_18915 Lnet/minecraft/class_4097;method_18915(J)Z
      named isTimeLimitExceeded Lnet/minecraft/entity/ai/brain/task/Task;isTimeLimitExceeded(J)Z
    • toString

      public String toString()
      Overrides:
      toString in class Task<E extends LivingEntity>