Class TimeLimitedTask<E extends LivingEntity>
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<E>
net.minecraft.entity.ai.brain.task.TimeLimitedTask<E>
- Mappings:
Namespace Name official axb
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
Modifier and TypeFieldDescriptionprivate boolean
private boolean
private int
private final UniformIntProvider
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionTimeLimitedTask
(Task<? super E> delegate, boolean skipFirstRun, UniformIntProvider timeRange) TimeLimitedTask
(Task<? super E> delegate, UniformIntProvider timeRange) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) 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 a
Laxb;a: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
Laxb;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
Laxb;d:Larm;
intermediary field_22318
Lnet/minecraft/class_4821;field_22318:Lnet/minecraft/class_6019;
named timeRange
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;timeRange:Lnet/minecraft/util/math/intprovider/UniformIntProvider;
-
delegate
- Mappings:
Namespace Name Mixin selector official e
Laxb;e:Lavg;
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
Laxb;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>
Laxb;<init>(Lavg;Larm;)V
intermediary <init>
Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;Lnet/minecraft/class_6019;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;Lnet/minecraft/util/math/intprovider/UniformIntProvider;)V
-
TimeLimitedTask
public TimeLimitedTask(Task<? super E> delegate, boolean skipFirstRun, UniformIntProvider timeRange) - Mappings:
Namespace Name Mixin selector official <init>
Laxb;<init>(Lavg;ZLarm;)V
intermediary <init>
Lnet/minecraft/class_4821;<init>(Lnet/minecraft/class_4097;ZLnet/minecraft/class_6019;)V
named <init>
Lnet/minecraft/entity/ai/brain/task/TimeLimitedTask;<init>(Lnet/minecraft/entity/ai/brain/task/Task;ZLnet/minecraft/util/math/intprovider/UniformIntProvider;)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<E extends LivingEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavg;a(Labr;Latt;)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
Lavg;a(Labr;Latt;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
Lavg;b(Labr;Latt;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
Lavg;d(Labr;Latt;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
Lavg;c(Labr;Latt;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
Laxb;a(Labr;)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
Lavg;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>
-