Class GoToNearbyPositionTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToNearbyPositionTask
- Mappings:
Namespace Name official bfkintermediary net/minecraft/class_4219named net/minecraft/entity/ai/brain/task/GoToNearbyPositionTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final MemoryModuleType<GlobalPos>private longprivate final floatFields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates -
Constructor Summary
ConstructorsConstructorDescriptionGoToNearbyPositionTask(MemoryModuleType<GlobalPos> memoryModuleType, float walkSpeed, int completionRange, int maxDistance) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidrun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2) protected booleanshouldRun(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
-
memoryModuleType
- Mappings:
Namespace Name Mixin selector official aLbfk;a:Lbjx;intermediary field_18862Lnet/minecraft/class_4219;field_18862:Lnet/minecraft/class_4140;named memoryModuleTypeLnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;memoryModuleType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
-
completionRange
private final int completionRange- Mappings:
Namespace Name Mixin selector official dLbfk;d:Iintermediary field_18863Lnet/minecraft/class_4219;field_18863:Inamed completionRangeLnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;completionRange:I
-
maxDistance
private final int maxDistance- Mappings:
Namespace Name Mixin selector official eLbfk;e:Iintermediary field_18864Lnet/minecraft/class_4219;field_18864:Inamed maxDistanceLnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;maxDistance:I
-
walkSpeed
private final float walkSpeed- Mappings:
Namespace Name Mixin selector official fLbfk;f:Fintermediary field_25753Lnet/minecraft/class_4219;field_25753:Fnamed walkSpeedLnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;walkSpeed:F
-
nextRunTime
private long nextRunTime- Mappings:
Namespace Name Mixin selector official gLbfk;g:Jintermediary field_18865Lnet/minecraft/class_4219;field_18865:Jnamed nextRunTimeLnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;nextRunTime:J
-
-
Constructor Details
-
GoToNearbyPositionTask
public GoToNearbyPositionTask(MemoryModuleType<GlobalPos> memoryModuleType, float walkSpeed, int completionRange, int maxDistance) - Mappings:
Namespace Name Mixin selector official <init>Lbfk;<init>(Lbjx;FII)Vintermediary <init>Lnet/minecraft/class_4219;<init>(Lnet/minecraft/class_4140;FII)Vnamed <init>Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FII)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRunin classTask<PathAwareEntity>- Mappings:
Namespace Name Mixin selector official aLbfk;a(Lafo;Lbbo;)Zintermediary method_19607Lnet/minecraft/class_4219;method_19607(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Znamed shouldRunLnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
-
run
- Overrides:
runin classTask<PathAwareEntity>- Mappings:
Namespace Name Mixin selector official aLbfk;a(Lafo;Lbbo;J)Vintermediary method_19608Lnet/minecraft/class_4219;method_19608(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)Vnamed runLnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V
-