Class SleepTask

All Implemented Interfaces:
Task<LivingEntity>

public class SleepTask extends MultiTickTask<LivingEntity>
Mappings:
Namespace Name
official bka
intermediary net/minecraft/class_4123
named net/minecraft/entity/ai/brain/task/SleepTask
  • Field Details

    • RUN_TIME

      public static final int RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbka;c:I
      intermediary field_30175 Lnet/minecraft/class_4123;field_30175:I
      named RUN_TIME Lnet/minecraft/entity/ai/brain/task/SleepTask;RUN_TIME:I
    • startTime

      private long startTime
      Mappings:
      Namespace Name Mixin selector
      official d Lbka;d:J
      intermediary field_18848 Lnet/minecraft/class_4123;field_18848:J
      named startTime Lnet/minecraft/entity/ai/brain/task/SleepTask;startTime:J
  • Constructor Details

    • SleepTask

      public SleepTask()
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld world, LivingEntity entity)
      Overrides:
      shouldRun in class MultiTickTask<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbhr;a(Laif;Lbfz;)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
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      shouldKeepRunning in class MultiTickTask<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbhr;a(Laif;Lbfz;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
    • run

      protected void run(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      run in class MultiTickTask<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lbhr;d(Laif;Lbfz;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
    • isTimeLimitExceeded

      protected boolean isTimeLimitExceeded(long time)
      Overrides:
      isTimeLimitExceeded in class MultiTickTask<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbhr;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
    • finishRunning

      protected void finishRunning(ServerWorld world, LivingEntity entity, long time)
      Overrides:
      finishRunning in class MultiTickTask<LivingEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbhr;b(Laif;Lbfz;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