Class GoToIfNearbyTask

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

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

    • UPDATE_INTERVAL

      private static final int UPDATE_INTERVAL
      See Also:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official a Laxt;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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official c Laxt;c: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:
      Constant Field Values
      Mappings:
      Namespace Name Mixin selector
      official d Laxt;d: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

      private final MemoryModuleType<GlobalPos> target
      Mappings:
      Namespace Name Mixin selector
      official e Laxt;e:Lbbt;
      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 f Laxt;f: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 g Laxt;g: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 h Laxt;h: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

      public GoToIfNearbyTask(MemoryModuleType<GlobalPos> target, float walkSpeed, int maxDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Laxt;<init>(Lbbt;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

      protected boolean shouldRun(ServerWorld serverWorld, PathAwareEntity pathAwareEntity)
      Overrides:
      shouldRun in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laxt;a(Labr;Lauc;)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

      protected void run(ServerWorld serverWorld, PathAwareEntity pathAwareEntity, long long2)
      Overrides:
      run in class Task<PathAwareEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Laxt;a(Labr;Lauc;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