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 auj
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 b Lauj;b: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 c Lauj;c: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 IntRange timeRange
      Mappings:
      Namespace Name Mixin selector
      official d Lauj;d:Lafy;
      intermediary field_22318 Lnet/minecraft/class_4821;field_22318:Lnet/minecraft/class_4801;
      named timeRange Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;timeRange:Lnet/minecraft/util/math/IntRange;
    • delegate

      private final Task<? super E extends LivingEntity> delegate
      Mappings:
      Namespace Name Mixin selector
      official e Lauj;e:Lass;
      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 f Lauj;f: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, IntRange timeRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lauj;<init>(Lass;Lafy;)V
      intermediary <init> Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;Lnet/minecraft/class_4801;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;Lnet/minecraft/util/math/IntRange;)V
    • TimeLimitedTask

      public TimeLimitedTask​(Task<? super E> delegate, boolean skipFirstRun, IntRange timeRange)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lauj;<init>(Lass;ZLafy;)V
      intermediary <init> Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;ZLnet/minecraft/class_4801;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;ZLnet/minecraft/util/math/IntRange;)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 Lass;a(Laav;Lari;)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 Lass;a(Laav;Lari;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 Lass;b(Laav;Lari;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 Lass;d(Laav;Lari;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 Lass;c(Laav;Lari;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 Lauj;a(Laav;)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 Lass;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>
      Mappings:
      Namespace Name Mixin selector
      official toString Lass;toString()Ljava/lang/String;
      intermediary toString Lnet/minecraft/class_4097;toString()Ljava/lang/String;
      named toString Lnet/minecraft/entity/ai/brain/task/Task;toString()Ljava/lang/String;