Class TemptationCooldownTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<LivingEntity>
net.minecraft.entity.ai.brain.task.TemptationCooldownTask
public class TemptationCooldownTask extends Task<LivingEntity>
- Mappings:
Namespace Name official asx
intermediary net/minecraft/class_5753
named net/minecraft/entity/ai/brain/task/TemptationCooldownTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description TemptationCooldownTask()
-
Method Summary
Modifier and Type Method Description protected void
finishRunning(ServerWorld world, LivingEntity entity, long time)
private Optional<Integer>
getTemptationCooldownTicks(LivingEntity entity)
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.Task
getStatus, isTimeLimitExceeded, run, shouldRun, stop, tick, toString, tryStarting
-
Constructor Details
-
TemptationCooldownTask
public TemptationCooldownTask()
-
-
Method Details
-
getTemptationCooldownTicks
- Mappings:
Namespace Name Mixin selector official a
Lasx;a(Lari;)Ljava/util/Optional;
intermediary method_33194
Lnet/minecraft/class_5753;method_33194(Lnet/minecraft/class_1309;)Ljava/util/Optional;
named getTemptationCooldownTicks
Lnet/minecraft/entity/ai/brain/task/TemptationCooldownTask;getTemptationCooldownTicks(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official b
Lass;b(Laav;Lari;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/Task;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)Z
-
keepRunning
- Overrides:
keepRunning
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official d
Lass;d(Laav;Lari;J)V
intermediary method_18924
Lnet/minecraft/class_4097;method_18924(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/Task;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classTask<LivingEntity>
- Mappings:
Namespace Name Mixin selector official c
Lass;c(Laav;Lari;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/Task;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-