Class TimeLimitedTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.TimeLimitedTask<E>
public class TimeLimitedTask<E extends LivingEntity> extends Task<E>
- Mappings:
Namespace Name official auj
intermediary net/minecraft/class_4821
named net/minecraft/entity/ai/brain/task/TimeLimitedTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private Task<? super E>
delegate
private boolean
delegateRunning
private boolean
needsTimeReset
private int
timeLeft
private IntRange
timeRange
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description TimeLimitedTask(Task<? super E> delegate, boolean skipFirstRun, IntRange timeRange)
TimeLimitedTask(Task<? super E> delegate, IntRange timeRange)
-
Method Summary
Modifier and Type Method Description protected void
finishRunning(ServerWorld world, E entity, long time)
protected boolean
isTimeLimitExceeded(long time)
protected void
keepRunning(ServerWorld world, E entity, long time)
private void
resetTimeLeft(ServerWorld world)
protected void
run(ServerWorld world, E entity, long time)
protected boolean
shouldKeepRunning(ServerWorld world, E entity, long time)
protected boolean
shouldRun(ServerWorld world, E entity)
String
toString()
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, stop, tick, tryStarting
-
Field Details
-
needsTimeReset
private boolean needsTimeReset- Mappings:
Namespace Name Mixin selector official b
Lauj;b:Z
intermediary field_22316
Lnet/minecraft/class_4821;field_22316:Z
named needsTimeReset
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;needsTimeReset:Z
-
delegateRunning
private boolean delegateRunning- Mappings:
Namespace Name Mixin selector official c
Lauj;c:Z
intermediary field_22317
Lnet/minecraft/class_4821;field_22317:Z
named delegateRunning
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;delegateRunning:Z
-
timeRange
- Mappings:
Namespace Name Mixin selector official d
Lauj;d:Lafy;
intermediary field_22318
Lnet/minecraft/class_4821;field_22318:Lnet/minecraft/class_4801;
named timeRange
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;timeRange:Lnet/minecraft/util/math/IntRange;
-
delegate
- Mappings:
Namespace Name Mixin selector official e
Lauj;e:Lass;
intermediary field_22319
Lnet/minecraft/class_4821;field_22319:Lnet/minecraft/class_4097;
named delegate
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;delegate:Lnet/minecraft/entity/ai/brain/task/Task;
-
timeLeft
private int timeLeft- Mappings:
Namespace Name Mixin selector official f
Lauj;f:I
intermediary field_22320
Lnet/minecraft/class_4821;field_22320:I
named timeLeft
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;timeLeft:I
-
-
Constructor Details
-
TimeLimitedTask
- Mappings:
Namespace Name Mixin selector official <init>
Lauj;<init>(Lass;Lafy;)V
intermediary <init>
Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;Lnet/minecraft/class_4801;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;Lnet/minecraft/util/math/IntRange;)V
-
TimeLimitedTask
- Mappings:
Namespace Name Mixin selector official <init>
Lauj;<init>(Lass;ZLafy;)V
intermediary <init>
Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;ZLnet/minecraft/class_4801;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;ZLnet/minecraft/util/math/IntRange;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;)Z
intermediary method_18919
Lnet/minecraft/class_4097;method_18919(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/Task;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;)Z
-
run
- Overrides:
run
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lass;a(Laav;Lari;J)V
intermediary method_18920
Lnet/minecraft/class_4097;method_18920(Lnet/minecraft/class_3218;Lnet/minecraft/class_1309;J)V
named run
Lnet/minecraft/entity/ai/brain/task/Task;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/LivingEntity;J)V
-
shouldKeepRunning
- Overrides:
shouldKeepRunning
in classTask<E extends 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<E extends 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<E extends 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
-
resetTimeLeft
- Mappings:
Namespace Name Mixin selector official a
Lauj;a(Laav;)V
intermediary method_24598
Lnet/minecraft/class_4821;method_24598(Lnet/minecraft/class_3218;)V
named resetTimeLeft
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;resetTimeLeft(Lnet/minecraft/server/world/ServerWorld;)V
-
isTimeLimitExceeded
protected boolean isTimeLimitExceeded(long time)- Overrides:
isTimeLimitExceeded
in classTask<E extends LivingEntity>
- 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
-
toString
- Overrides:
toString
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official toString
Lass;toString()Ljava/lang/String;
intermediary toString
Lnet/minecraft/class_4097;toString()Ljava/lang/String;
named toString
Lnet/minecraft/entity/ai/brain/task/Task;toString()Ljava/lang/String;
-