Class JumpInBedTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<MobEntity>
net.minecraft.entity.ai.brain.task.JumpInBedTask
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/JumpInBedTask
intermediary net/minecraft/class_4245
official bwj
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private int
private static final int
private static final int
private static final int
private int
private int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
finishRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) getNearestBed
(MobEntity mob) private boolean
isAboveBed
(ServerWorld world, MobEntity mob) private boolean
isBedAt
(ServerWorld world, BlockPos pos) private boolean
isBedGoneTooLong
(ServerWorld world, MobEntity mob) private boolean
isDoneJumping
(ServerWorld world, MobEntity mob) private boolean
isOnBed
(ServerWorld world, MobEntity mob) protected boolean
isTimeLimitExceeded
(long time) protected void
keepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected void
run
(ServerWorld serverWorld, MobEntity mobEntity, long long2) private void
setWalkTarget
(MobEntity mob, BlockPos pos) protected boolean
shouldKeepRunning
(ServerWorld serverWorld, MobEntity mobEntity, long long2) protected boolean
shouldRun
(ServerWorld serverWorld, MobEntity mobEntity) private boolean
shouldStartJumping
(ServerWorld world, MobEntity mob) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, stop, tick, tryStarting
-
Field Details
-
MAX_TICKS_OUT_OF_BED
private static final int MAX_TICKS_OUT_OF_BED- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_TICKS_OUT_OF_BED
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;MAX_TICKS_OUT_OF_BED:I
intermediary field_30128
Lnet/minecraft/class_4245;field_30128:I
official c
Lbwj;c:I
-
MIN_JUMP_TICKS
private static final int MIN_JUMP_TICKS- See Also:
- Mappings:
Namespace Name Mixin selector named MIN_JUMP_TICKS
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;MIN_JUMP_TICKS:I
intermediary field_30129
Lnet/minecraft/class_4245;field_30129:I
official d
Lbwj;d:I
-
JUMP_TIME_VARIANCE
private static final int JUMP_TIME_VARIANCE- See Also:
- Mappings:
Namespace Name Mixin selector named JUMP_TIME_VARIANCE
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;JUMP_TIME_VARIANCE:I
intermediary field_30130
Lnet/minecraft/class_4245;field_30130:I
official e
Lbwj;e:I
-
TICKS_TO_NEXT_JUMP
private static final int TICKS_TO_NEXT_JUMP- See Also:
- Mappings:
Namespace Name Mixin selector named TICKS_TO_NEXT_JUMP
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;TICKS_TO_NEXT_JUMP:I
intermediary field_30131
Lnet/minecraft/class_4245;field_30131:I
official f
Lbwj;f:I
-
walkSpeed
private final float walkSpeed- Mappings:
Namespace Name Mixin selector named walkSpeed
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;walkSpeed:F
intermediary field_18988
Lnet/minecraft/class_4245;field_18988:F
official g
Lbwj;g:F
-
bedPos
- Mappings:
Namespace Name Mixin selector named bedPos
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;bedPos:Lnet/minecraft/util/math/BlockPos;
intermediary field_18989
Lnet/minecraft/class_4245;field_18989:Lnet/minecraft/class_2338;
official h
Lbwj;h:Liz;
-
ticksOutOfBedUntilStopped
private int ticksOutOfBedUntilStopped- Mappings:
Namespace Name Mixin selector named ticksOutOfBedUntilStopped
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;ticksOutOfBedUntilStopped:I
intermediary field_18990
Lnet/minecraft/class_4245;field_18990:I
official i
Lbwj;i:I
-
jumpsRemaining
private int jumpsRemaining- Mappings:
Namespace Name Mixin selector named jumpsRemaining
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;jumpsRemaining:I
intermediary field_18991
Lnet/minecraft/class_4245;field_18991:I
official j
Lbwj;j:I
-
ticksToNextJump
private int ticksToNextJump- Mappings:
Namespace Name Mixin selector named ticksToNextJump
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;ticksToNextJump:I
intermediary field_18992
Lnet/minecraft/class_4245;field_18992:I
official k
Lbwj;k:I
-
-
Constructor Details
-
JumpInBedTask
public JumpInBedTask(float walkSpeed) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;<init>(F)V
intermediary <init>
Lnet/minecraft/class_4245;<init>(F)V
official <init>
Lbwj;<init>(F)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<MobEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_19971
Lnet/minecraft/class_4245;method_19971(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official a
Lbwj;a(Larf;Lbtt;)Z
-
run
- Overrides:
run
in classMultiTickTask<MobEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_19972
Lnet/minecraft/class_4245;method_19972(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official a
Lbwj;a(Larf;Lbtt;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<MobEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_19976
Lnet/minecraft/class_4245;method_19976(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official b
Lbwj;b(Larf;Lbtt;J)V
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classMultiTickTask<MobEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)Z
intermediary method_19978
Lnet/minecraft/class_4245;method_19978(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)Z
official c
Lbwj;c(Larf;Lbtt;J)Z
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time) - Overrides:
isTimeLimitExceeded
in classMultiTickTask<MobEntity>
- Mappings:
Namespace Name Mixin selector named isTimeLimitExceeded
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;isTimeLimitExceeded(J)Z
intermediary method_18915
Lnet/minecraft/class_4097;method_18915(J)Z
official a
Lbvk;a(J)Z
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<MobEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;J)V
intermediary method_19980
Lnet/minecraft/class_4245;method_19980(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;J)V
official d
Lbwj;d(Larf;Lbtt;J)V
-
setWalkTarget
- Mappings:
Namespace Name Mixin selector named setWalkTarget
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;setWalkTarget(Lnet/minecraft/entity/mob/MobEntity;Lnet/minecraft/util/math/BlockPos;)V
intermediary method_19970
Lnet/minecraft/class_4245;method_19970(Lnet/minecraft/class_1308;Lnet/minecraft/class_2338;)V
official a
Lbwj;a(Lbtt;Liz;)V
-
shouldStartJumping
- Mappings:
Namespace Name Mixin selector named shouldStartJumping
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;shouldStartJumping(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_19975
Lnet/minecraft/class_4245;method_19975(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official b
Lbwj;b(Larf;Lbtt;)Z
-
isAboveBed
- Mappings:
Namespace Name Mixin selector named isAboveBed
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isAboveBed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_19977
Lnet/minecraft/class_4245;method_19977(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official c
Lbwj;c(Larf;Lbtt;)Z
-
isOnBed
- Mappings:
Namespace Name Mixin selector named isOnBed
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isOnBed(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_19979
Lnet/minecraft/class_4245;method_19979(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official d
Lbwj;d(Larf;Lbtt;)Z
-
isBedAt
- Mappings:
Namespace Name Mixin selector named isBedAt
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isBedAt(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;)Z
intermediary method_19974
Lnet/minecraft/class_4245;method_19974(Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;)Z
official a
Lbwj;a(Larf;Liz;)Z
-
getNearestBed
- Mappings:
Namespace Name Mixin selector named getNearestBed
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;getNearestBed(Lnet/minecraft/entity/mob/MobEntity;)Ljava/util/Optional;
intermediary method_19969
Lnet/minecraft/class_4245;method_19969(Lnet/minecraft/class_1308;)Ljava/util/Optional;
official a
Lbwj;a(Lbtt;)Ljava/util/Optional;
-
isBedGoneTooLong
- Mappings:
Namespace Name Mixin selector named isBedGoneTooLong
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isBedGoneTooLong(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_19981
Lnet/minecraft/class_4245;method_19981(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official e
Lbwj;e(Larf;Lbtt;)Z
-
isDoneJumping
- Mappings:
Namespace Name Mixin selector named isDoneJumping
Lnet/minecraft/entity/ai/brain/task/JumpInBedTask;isDoneJumping(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/MobEntity;)Z
intermediary method_19982
Lnet/minecraft/class_4245;method_19982(Lnet/minecraft/class_3218;Lnet/minecraft/class_1308;)Z
official f
Lbwj;f(Larf;Lbtt;)Z
-