Class MultiTickTask<E extends LivingEntity>

java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<E>
All Implemented Interfaces:
Task<E>
Direct Known Subclasses:
BoneMealTask, BreedTask, CamelBrain.SitOrStandTask, CelebrateRaidWinTask, CroakTask, CrossbowAttackTask, DigTask, DismountVehicleTask, EmergeTask, FarmerVillagerTask, FleeTask, FollowCustomerTask, FrogEatEntityTask, GatherItemsVillagerTask, GiveGiftsToHeroTask, GiveInventoryToLookTargetTask, HoldTradeOffersTask, JumpInBedTask, LeapingChargeTask, LongJumpTask, LookAroundTask, PanicTask, PlayDeadTask, PrepareRamTask, RamImpactTask, RandomLookAroundTask, RoarTask, SleepTask, SnifferBrain.DiggingTask, SnifferBrain.FeelHappyTask, SnifferBrain.FinishDiggingTask, SnifferBrain.ScentingTask, SnifferBrain.SearchingTask, SnifferBrain.SniffingTask, SniffTask, SonicBoomTask, StayAboveWaterTask, TemptationCooldownTask, TemptTask, VillagerBreedTask, VillagerWorkTask, WalkTowardJobSiteTask, WanderAroundTask

public abstract class MultiTickTask<E extends LivingEntity> extends Object implements Task<E>
Mappings:
Namespace Name
official bkx
intermediary net/minecraft/class_4097
named net/minecraft/entity/ai/brain/task/MultiTickTask
  • Field Details

    • DEFAULT_RUN_TIME

      public static final int DEFAULT_RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lbkx;a:I
      intermediary field_30112 Lnet/minecraft/class_4097;field_30112:I
      named DEFAULT_RUN_TIME Lnet/minecraft/entity/ai/brain/task/MultiTickTask;DEFAULT_RUN_TIME:I
    • requiredMemoryStates

      protected final Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryStates
      Mappings:
      Namespace Name Mixin selector
      official b Lbkx;b:Ljava/util/Map;
      intermediary field_19291 Lnet/minecraft/class_4097;field_19291:Ljava/util/Map;
      named requiredMemoryStates Lnet/minecraft/entity/ai/brain/task/MultiTickTask;requiredMemoryStates:Ljava/util/Map;
    • status

      private MultiTickTask.Status status
      Mappings:
      Namespace Name Mixin selector
      official c Lbkx;c:Lbkx$a;
      intermediary field_18333 Lnet/minecraft/class_4097;field_18333:Lnet/minecraft/class_4097$class_4098;
      named status Lnet/minecraft/entity/ai/brain/task/MultiTickTask;status:Lnet/minecraft/entity/ai/brain/task/MultiTickTask$Status;
    • endTime

      private long endTime
      Mappings:
      Namespace Name Mixin selector
      official d Lbkx;d:J
      intermediary field_18334 Lnet/minecraft/class_4097;field_18334:J
      named endTime Lnet/minecraft/entity/ai/brain/task/MultiTickTask;endTime:J
    • minRunTime

      private final int minRunTime
      Mappings:
      Namespace Name Mixin selector
      official e Lbkx;e:I
      intermediary field_18335 Lnet/minecraft/class_4097;field_18335:I
      named minRunTime Lnet/minecraft/entity/ai/brain/task/MultiTickTask;minRunTime:I
    • maxRunTime

      private final int maxRunTime
      Mappings:
      Namespace Name Mixin selector
      official f Lbkx;f:I
      intermediary field_18336 Lnet/minecraft/class_4097;field_18336:I
      named maxRunTime Lnet/minecraft/entity/ai/brain/task/MultiTickTask;maxRunTime:I
  • Constructor Details

    • MultiTickTask

      public MultiTickTask(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbkx;<init>(Ljava/util/Map;)V
      intermediary <init> Lnet/minecraft/class_4097;<init>(Ljava/util/Map;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/MultiTickTask;<init>(Ljava/util/Map;)V
    • MultiTickTask

      public MultiTickTask(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState, int runTime)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbkx;<init>(Ljava/util/Map;I)V
      intermediary <init> Lnet/minecraft/class_4097;<init>(Ljava/util/Map;I)V
      named <init> Lnet/minecraft/entity/ai/brain/task/MultiTickTask;<init>(Ljava/util/Map;I)V
    • MultiTickTask

      public MultiTickTask(Map<MemoryModuleType<?>,MemoryModuleState> requiredMemoryState, int minRunTime, int maxRunTime)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbkx;<init>(Ljava/util/Map;II)V
      intermediary <init> Lnet/minecraft/class_4097;<init>(Ljava/util/Map;II)V
      named <init> Lnet/minecraft/entity/ai/brain/task/MultiTickTask;<init>(Ljava/util/Map;II)V
  • Method Details

    • getStatus

      public MultiTickTask.Status getStatus()
      Specified by:
      getStatus in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbky;a()Lbkx$a;
      intermediary method_18921 Lnet/minecraft/class_7893;method_18921()Lnet/minecraft/class_4097$class_4098;
      named getStatus Lnet/minecraft/entity/ai/brain/task/Task;getStatus()Lnet/minecraft/entity/ai/brain/task/MultiTickTask$Status;
    • tryStarting

      public final boolean tryStarting(ServerWorld world, E entity, long time)
      Specified by:
      tryStarting in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official e Lbky;e(Lakq;Lbjg;J)Z
      intermediary method_18922 Lnet/minecraft/class_7893;method_18922(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
      named tryStarting Lnet/minecraft/entity/ai/brain/task/Task;tryStarting(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
    • run

      protected void run(ServerWorld world, E entity, long time)
      Mappings:
      Namespace Name Mixin selector
      official d Lbkx;d(Lakq;Lbjg;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/MultiTickTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • tick

      public final void tick(ServerWorld world, E entity, long time)
      Specified by:
      tick in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official f Lbky;f(Lakq;Lbjg;J)V
      intermediary method_18923 Lnet/minecraft/class_7893;method_18923(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named tick Lnet/minecraft/entity/ai/brain/task/Task;tick(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • keepRunning

      protected void keepRunning(ServerWorld world, E entity, long time)
      Mappings:
      Namespace Name Mixin selector
      official c Lbkx;c(Lakq;Lbjg;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/MultiTickTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • stop

      public final void stop(ServerWorld world, E entity, long time)
      Specified by:
      stop in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official g Lbky;g(Lakq;Lbjg;J)V
      intermediary method_18925 Lnet/minecraft/class_7893;method_18925(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
      named stop Lnet/minecraft/entity/ai/brain/task/Task;stop(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • finishRunning

      protected void finishRunning(ServerWorld world, E entity, long time)
      Mappings:
      Namespace Name Mixin selector
      official b Lbkx;b(Lakq;Lbjg;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/MultiTickTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld world, E entity, long time)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkx;a(Lakq;Lbjg;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/MultiTickTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
    • isTimeLimitExceeded

      protected boolean isTimeLimitExceeded(long time)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkx;a(J)Z
      intermediary method_18915 Lnet/minecraft/class_4097;method_18915(J)Z
      named isTimeLimitExceeded Lnet/minecraft/entity/ai/brain/task/MultiTickTask;isTimeLimitExceeded(J)Z
    • shouldRun

      protected boolean shouldRun(ServerWorld world, E entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkx;a(Lakq;Lbjg;)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/MultiTickTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
    • getName

      public String getName()
      Specified by:
      getName in interface Task<E extends LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbky;b()Ljava/lang/String;
      intermediary method_46910 Lnet/minecraft/class_7893;method_46910()Ljava/lang/String;
      named getName Lnet/minecraft/entity/ai/brain/task/Task;getName()Ljava/lang/String;
    • hasRequiredMemoryState

      protected boolean hasRequiredMemoryState(E entity)
      Mappings:
      Namespace Name Mixin selector
      official a Lbkx;a(Lbjg;)Z
      intermediary method_19546 Lnet/minecraft/class_4097;method_19546(Lnet/minecraft/class_1309;)Z
      named hasRequiredMemoryState Lnet/minecraft/entity/ai/brain/task/MultiTickTask;hasRequiredMemoryState(Lnet/minecraft/entity/LivingEntity;)Z