Class TemptationCooldownTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<LivingEntity>
net.minecraft.entity.ai.brain.task.TemptationCooldownTask
- All Implemented Interfaces:
Task<LivingEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/TemptationCooldownTask
intermediary net/minecraft/class_5753
official bvq
-
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
keepRunning
(ServerWorld world, LivingEntity entity, long time) protected boolean
shouldKeepRunning
(ServerWorld world, LivingEntity entity, long time) Methods inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
getName, getStatus, hasRequiredMemoryState, run, shouldRun, stop, tick, tryStarting
-
Field Details
-
moduleType
- Mappings:
Namespace Name Mixin selector named moduleType
Lnet/minecraft/entity/ai/brain/task/TemptationCooldownTask;moduleType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
intermediary field_30113
Lnet/minecraft/class_5753;field_30113:Lnet/minecraft/class_4140;
official c
Lbvq;c:Lccv;
-
-
Constructor Details
-
TemptationCooldownTask
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/TemptationCooldownTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;)V
intermediary <init>
Lnet/minecraft/class_5753;<init>(Lnet/minecraft/class_4140;)V
official <init>
Lbvq;<init>(Lccv;)V
-
-
Method Details
-
getTemptationCooldownTicks
- Mappings:
Namespace Name Mixin selector named getTemptationCooldownTicks
Lnet/minecraft/entity/ai/brain/task/TemptationCooldownTask;getTemptationCooldownTicks(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
intermediary method_33194
Lnet/minecraft/class_5753;method_33194(Lnet/minecraft/class_1309;)Ljava/util/Optional;
official b
Lbvq;b(Lbtr;)Ljava/util/Optional;
-
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
Lbvk;a(J)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
Lbvk;a(Larf;Lbtr;J)Z
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/MultiTickTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
intermediary method_18924
Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
official c
Lbvk;c(Larf;Lbtr;J)V
-
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
Lbvk;b(Larf;Lbtr;J)V
-