Class GoToIfNearbyTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToIfNearbyTask
- Mappings:
Namespace Name official bfj
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
Modifier and TypeFieldDescriptionprivate static final int
private final int
private long
private final MemoryModuleType<GlobalPos>
private static final int
private static final int
private final float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
ConstructorDescriptionGoToIfNearbyTask
(MemoryModuleType<GlobalPos> target, float walkSpeed, int maxDistance) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
UPDATE_INTERVAL
private static final int UPDATE_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lbfj;a:I
intermediary field_30179
Lnet/minecraft/class_4116;field_30179:I
named UPDATE_INTERVAL
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;UPDATE_INTERVAL:I
-
HORIZONTAL_RANGE
private static final int HORIZONTAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official d
Lbfj;d:I
intermediary field_30180
Lnet/minecraft/class_4116;field_30180:I
named HORIZONTAL_RANGE
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;HORIZONTAL_RANGE:I
-
VERTICAL_RANGE
private static final int VERTICAL_RANGE- See Also:
- Mappings:
Namespace Name Mixin selector official e
Lbfj;e:I
intermediary field_30181
Lnet/minecraft/class_4116;field_30181:I
named VERTICAL_RANGE
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;VERTICAL_RANGE:I
-
target
- Mappings:
Namespace Name Mixin selector official f
Lbfj;f:Lbjx;
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 g
Lbfj;g: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 h
Lbfj;h:I
intermediary field_18374
Lnet/minecraft/class_4116;field_18374:I
named maxDistance
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;maxDistance:I
-
walkSpeed
private final float walkSpeed- Mappings:
Namespace Name Mixin selector official i
Lbfj;i:F
intermediary field_25752
Lnet/minecraft/class_4116;field_25752:F
named walkSpeed
Lnet/minecraft/entity/ai/brain/task/GoToIfNearbyTask;walkSpeed:F
-
-
Constructor Details
-
GoToIfNearbyTask
- Mappings:
Namespace Name Mixin selector official <init>
Lbfj;<init>(Lbjx;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
Lbfj;a(Lafo;Lbbo;)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
Lbfj;a(Lafo;Lbbo;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
-