Class GoToNearbyPositionTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<PathAwareEntity>
net.minecraft.entity.ai.brain.task.GoToNearbyPositionTask

public class GoToNearbyPositionTask extends Task<PathAwareEntity>
Mappings:
Namespace Name
official bgh
intermediary net/minecraft/class_4219
named net/minecraft/entity/ai/brain/task/GoToNearbyPositionTask
  • Field Details

    • memoryModuleType

      private final MemoryModuleType<GlobalPos> memoryModuleType
      Mappings:
      Namespace Name Mixin selector
      official a Lbgh;a:Lbku;
      intermediary field_18862 Lnet/minecraft/class_4219;field_18862:Lnet/minecraft/class_4140;
      named memoryModuleType Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;memoryModuleType:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • completionRange

      private final int completionRange
      Mappings:
      Namespace Name Mixin selector
      official d Lbgh;d:I
      intermediary field_18863 Lnet/minecraft/class_4219;field_18863:I
      named completionRange Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;completionRange:I
    • maxDistance

      private final int maxDistance
      Mappings:
      Namespace Name Mixin selector
      official e Lbgh;e:I
      intermediary field_18864 Lnet/minecraft/class_4219;field_18864:I
      named maxDistance Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;maxDistance:I
    • walkSpeed

      private final float walkSpeed
      Mappings:
      Namespace Name Mixin selector
      official f Lbgh;f:F
      intermediary field_25753 Lnet/minecraft/class_4219;field_25753:F
      named walkSpeed Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;walkSpeed:F
    • nextRunTime

      private long nextRunTime
      Mappings:
      Namespace Name Mixin selector
      official g Lbgh;g:J
      intermediary field_18865 Lnet/minecraft/class_4219;field_18865:J
      named nextRunTime Lnet/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> Lbgh;<init>(Lbku;FII)V
      intermediary <init> Lnet/minecraft/class_4219;<init>(Lnet/minecraft/class_4140;FII)V
      named <init> Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FII)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
      Overrides:
      shouldRun in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbgh;a(Lagg;Lbcl;)Z
      intermediary method_19607 Lnet/minecraft/class_4219;method_19607(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;)Z
    • run

      protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbgh;a(Lagg;Lbcl;J)V
      intermediary method_19608 Lnet/minecraft/class_4219;method_19608(Lnet/minecraft/class_3218;Lnet/minecraft/class_1314;J)V
      named run Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/mob/PathAwareEntity;J)V