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 avc
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 b Lavc;b:Lazf;
      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 c Lavc;c: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 d Lavc;d:I
      intermediary field_18864 Lnet/minecraft/class_4219;field_18864:I
      named maxDistance Lnet/minecraft/entity/ai/brain/task/GoToNearbyPositionTask;maxDistance:I
    • field_25753

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

      private long nextRunTime
      Mappings:
      Namespace Name Mixin selector
      official f Lavc;f: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 float2, int completionRange, int maxDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lavc;<init>(Lazf;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 Lavc;a(Laav;Larq;)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 Lavc;a(Laav;Larq;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