Class SleepTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<LivingEntity>
net.minecraft.entity.ai.brain.task.SleepTask
- All Implemented Interfaces:
Task<LivingEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/SleepTask
intermediary net/minecraft/class_4123
official bxf
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
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 world, LivingEntity entity, long time) protected boolean
isTimeLimitExceeded
(long time) protected void
run
(ServerWorld world, LivingEntity entity, long time) protected boolean
shouldKeepRunning
(ServerWorld world, LivingEntity entity, long time) protected boolean
shouldRun
(ServerWorld world, LivingEntity entity) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, keepRunning, stop, tick, tryStarting
-
Field Details
-
RUN_TIME
public static final int RUN_TIME- See Also:
- Mappings:
Namespace Name Mixin selector named RUN_TIME
Lnet/minecraft/entity/ai/brain/task/SleepTask;RUN_TIME:I
intermediary field_30175
Lnet/minecraft/class_4123;field_30175:I
official c
Lbxf;c:I
-
startTime
private long startTime- Mappings:
Namespace Name Mixin selector named startTime
Lnet/minecraft/entity/ai/brain/task/SleepTask;startTime:J
intermediary field_18848
Lnet/minecraft/class_4123;field_18848:J
official d
Lbxf;d:J
-
-
Constructor Details
-
SleepTask
public SleepTask()
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
official a
Lbuv;a(Laqm;Lbtc;)Z
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classMultiTickTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
intermediary method_18927
Lnet/minecraft/class_4097;method_18927(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)Z
official a
Lbuv;a(Laqm;Lbtc;J)Z
-
run
- Overrides:
run
in classMultiTickTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official d
Lbuv;d(Laqm;Lbtc;J)V
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time) - Overrides:
isTimeLimitExceeded
in classMultiTickTask<LivingEntity>
- 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
Lbuv;a(J)Z
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18926
Lnet/minecraft/class_4097;method_18926(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official b
Lbuv;b(Laqm;Lbtc;J)V
-