Class GoToIfNearbyTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToIfNearbyTask
- Mappings:
Namespace Name official bgg
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
FieldsModifier 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
ConstructorsConstructorDescriptionGoToIfNearbyTask
(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
Lbgg;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
Lbgg;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
Lbgg;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
Lbgg;f:Lbku;
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
Lbgg;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
Lbgg;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
Lbgg;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>
Lbgg;<init>(Lbku;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
Lbgg;a(Lagg;Lbcl;)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
Lbgg;a(Lagg;Lbcl;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
-