Class JumpInBedTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<MobEntity>
net.minecraft.entity.ai.brain.task.JumpInBedTask

public class JumpInBedTask
extends Task<MobEntity>
Mappings:
Namespace Name
official atp
intermediary net/minecraft/class_4245
named net/minecraft/entity/ai/brain/task/JumpInBedTask
  • Field Details

    • walkSpeed

      private final float walkSpeed
      Mappings:
      Namespace Name Mixin selector
      official b Latp;b:F
      intermediary field_18988 Lnet/minecraft/class_4245;field_18988:F
      named walkSpeed Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;walkSpeed:F
    • bedPos

      @Nullable private BlockPos bedPos
      Mappings:
      Namespace Name Mixin selector
      official c Latp;c:Lfx;
      intermediary field_18989 Lnet/minecraft/class_4245;field_18989:Lnet/minecraft/class_2338;
      named bedPos Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;bedPos:Lnet/minecraft/util/math/BlockPos;
    • ticksOutOfBedUntilStopped

      private int ticksOutOfBedUntilStopped
      Mappings:
      Namespace Name Mixin selector
      official d Latp;d:I
      intermediary field_18990 Lnet/minecraft/class_4245;field_18990:I
      named ticksOutOfBedUntilStopped Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;ticksOutOfBedUntilStopped:I
    • jumpsRemaining

      private int jumpsRemaining
      Mappings:
      Namespace Name Mixin selector
      official e Latp;e:I
      intermediary field_18991 Lnet/minecraft/class_4245;field_18991:I
      named jumpsRemaining Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;jumpsRemaining:I
    • ticksToNextJump

      private int ticksToNextJump
      Mappings:
      Namespace Name Mixin selector
      official f Latp;f:I
      intermediary field_18992 Lnet/minecraft/class_4245;field_18992:I
      named ticksToNextJump Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;ticksToNextJump:I
  • Constructor Details

    • JumpInBedTask

      public JumpInBedTask​(float walkSpeed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Latp;<init>(F)V
      intermediary <init> Lnet/minecraft/class_4245;<init>(F)V
      named <init> Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;<init>(F)V
  • Method Details

    • shouldRun

      protected boolean shouldRun​(ServerWorld serverWorld, MobEntity mobEntity)
      Overrides:
      shouldRun in class Task<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Latp;a(Laav;Larj;)Z
      intermediary method_19971 Lnet/minecraft/class_4245;method_19971(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
    • run

      protected void run​(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      run in class Task<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Latp;a(Laav;Larj;J)V
      intermediary method_19972 Lnet/minecraft/class_4245;method_19972(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named run Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • finishRunning

      protected void finishRunning​(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      finishRunning in class Task<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Latp;b(Laav;Larj;J)V
      intermediary method_19976 Lnet/minecraft/class_4245;method_19976(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • shouldKeepRunning

      protected boolean shouldKeepRunning​(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      shouldKeepRunning in class Task<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Latp;c(Laav;Larj;J)Z
      intermediary method_19978 Lnet/minecraft/class_4245;method_19978(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
    • isTimeLimitExceeded

      protected boolean isTimeLimitExceeded​(long time)
      Overrides:
      isTimeLimitExceeded in class Task<MobEntity>
      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
    • keepRunning

      protected void keepRunning​(ServerWorld serverWorld, MobEntity mobEntity, long long2)
      Overrides:
      keepRunning in class Task<MobEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Latp;d(Laav;Larj;J)V
      intermediary method_19980 Lnet/minecraft/class_4245;method_19980(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
    • setWalkTarget

      private void setWalkTarget​(MobEntity mob, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Latp;a(Larj;Lfx;)V
      intermediary method_19970 Lnet/minecraft/class_4245;method_19970(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)V
      named setWalkTarget Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;setWalkTarget(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)V
    • shouldStartJumping

      private boolean shouldStartJumping​(ServerWorld world, MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official b Latp;b(Laav;Larj;)Z
      intermediary method_19975 Lnet/minecraft/class_4245;method_19975(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named shouldStartJumping Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;shouldStartJumping(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
    • isAboveBed

      private boolean isAboveBed​(ServerWorld world, MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official c Latp;c(Laav;Larj;)Z
      intermediary method_19977 Lnet/minecraft/class_4245;method_19977(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named isAboveBed Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isAboveBed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
    • isOnBed

      private boolean isOnBed​(ServerWorld world, MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official d Latp;d(Laav;Larj;)Z
      intermediary method_19979 Lnet/minecraft/class_4245;method_19979(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named isOnBed Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isOnBed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
    • isBedAt

      private boolean isBedAt​(ServerWorld world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Latp;a(Laav;Lfx;)Z
      intermediary method_19974 Lnet/minecraft/class_4245;method_19974(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
      named isBedAt Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isBedAt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
    • getNearestBed

      private Optional<BlockPos> getNearestBed​(MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official a Latp;a(Larj;)Ljava/util/Optional;
      intermediary method_19969 Lnet/minecraft/class_4245;method_19969(Lnet/minecraft/class_1308;)Ljava/util/Optional;
      named getNearestBed Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;getNearestBed(Lnet/minecraft/entity/mob/MobEntity;)Ljava/util/Optional;
    • isBedGoneTooLong

      private boolean isBedGoneTooLong​(ServerWorld world, MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official e Latp;e(Laav;Larj;)Z
      intermediary method_19981 Lnet/minecraft/class_4245;method_19981(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named isBedGoneTooLong Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isBedGoneTooLong(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
    • isDoneJumping

      private boolean isDoneJumping​(ServerWorld world, MobEntity mob)
      Mappings:
      Namespace Name Mixin selector
      official f Latp;f(Laav;Larj;)Z
      intermediary method_19982 Lnet/minecraft/class_4245;method_19982(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
      named isDoneJumping Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isDoneJumping(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z