Class GoToIfNearbyTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToIfNearbyTask
public class GoToIfNearbyTask extends Task<PathAwareEntity>
- Mappings:
Namespace Name official avb
intermediary net/minecraft/class_4116
named net/minecraft/entity/ai/brain/task/GoToIfNearbyTask
-
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 float
field_25752
private int
maxDistance
private long
nextUpdateTime
private MemoryModuleType<GlobalPos>
target
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description GoToIfNearbyTask(MemoryModuleType<GlobalPos> target, float float2, int maxDistance)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
target
- Mappings:
Namespace Name Mixin selector official b
Lavb;b:Lazf;
intermediary field_18372
Lnet/minecraft/class_4116;field_18372:Lnet/minecraft/class_4140;
named target
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;target:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
nextUpdateTime
private long nextUpdateTime- Mappings:
Namespace Name Mixin selector official c
Lavb;c:J
intermediary field_18373
Lnet/minecraft/class_4116;field_18373:J
named nextUpdateTime
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;nextUpdateTime:J
-
maxDistance
private final int maxDistance- Mappings:
Namespace Name Mixin selector official d
Lavb;d:I
intermediary field_18374
Lnet/minecraft/class_4116;field_18374:I
named maxDistance
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;maxDistance:I
-
field_25752
private final float field_25752- Mappings:
Namespace Name Mixin selector official e
Lavb;e:F
intermediary field_25752
Lnet/minecraft/class_4116;field_25752:F
named field_25752
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;field_25752:F
-
-
Constructor Details
-
GoToIfNearbyTask
- Mappings:
Namespace Name Mixin selector official <init>
Lavb;<init>(Lazf;FI)V
intermediary <init>
Lnet/minecraft/class_4116;<init>(Lnet/minecraft/class_4140;FI)V
named <init>
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FI)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavb;a(Laav;Larq;)Z
intermediary method_18993
Lnet/minecraft/class_4116;method_18993(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
run
- Overrides:
run
in classTask<PathAwareEntity>
- Mappings:
Namespace Name Mixin selector official a
Lavb;a(Laav;Larq;J)V
intermediary method_18994
Lnet/minecraft/class_4116;method_18994(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
named run
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-