Class GoToSecondaryPositionTask

java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.GoToSecondaryPositionTask

public class GoToSecondaryPositionTask extends Task<VillagerEntity>
Mappings:
Namespace Name
official bgi
intermediary net/minecraft/class_4220
named net/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask
  • Field Details

    • secondaryPositions

      private final MemoryModuleType<List<GlobalPos>> secondaryPositions
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a:Lbku;
      intermediary field_18866 Lnet/minecraft/class_4220;field_18866:Lnet/minecraft/class_4140;
      named secondaryPositions Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;secondaryPositions:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • primaryPosition

      private final MemoryModuleType<GlobalPos> primaryPosition
      Mappings:
      Namespace Name Mixin selector
      official d Lbgi;d:Lbku;
      intermediary field_18867 Lnet/minecraft/class_4220;field_18867:Lnet/minecraft/class_4140;
      named primaryPosition Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;primaryPosition:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official e Lbgi;e:F
      intermediary field_18868 Lnet/minecraft/class_4220;field_18868:F
      named speed Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;speed:F
    • completionRange

      private final int completionRange
      Mappings:
      Namespace Name Mixin selector
      official f Lbgi;f:I
      intermediary field_18869 Lnet/minecraft/class_4220;field_18869:I
      named completionRange Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;completionRange:I
    • primaryPositionActivationDistance

      private final int primaryPositionActivationDistance
      Mappings:
      Namespace Name Mixin selector
      official g Lbgi;g:I
      intermediary field_18870 Lnet/minecraft/class_4220;field_18870:I
      named primaryPositionActivationDistance Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;primaryPositionActivationDistance:I
    • nextRunTime

      private long nextRunTime
      Mappings:
      Namespace Name Mixin selector
      official h Lbgi;h:J
      intermediary field_18871 Lnet/minecraft/class_4220;field_18871:J
      named nextRunTime Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;nextRunTime:J
    • chosenPosition

      @Nullable private @Nullable GlobalPos chosenPosition
      Mappings:
      Namespace Name Mixin selector
      official i Lbgi;i:Lhb;
      intermediary field_18872 Lnet/minecraft/class_4220;field_18872:Lnet/minecraft/class_4208;
      named chosenPosition Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;chosenPosition:Lnet/minecraft/util/math/GlobalPos;
  • Constructor Details

    • GoToSecondaryPositionTask

      public GoToSecondaryPositionTask(MemoryModuleType<List<GlobalPos>> secondaryPositions, float speed, int completionRange, int primaryPositionActivationDistance, MemoryModuleType<GlobalPos> primaryPosition)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbgi;<init>(Lbku;FIILbku;)V
      intermediary <init> Lnet/minecraft/class_4220;<init>(Lnet/minecraft/class_4140;FIILnet/minecraft/class_4140;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIILnet/minecraft/entity/ai/brain/MemoryModuleType;)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
      Overrides:
      shouldRun in class Task<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lagg;Lbtp;)Z
      intermediary method_19609 Lnet/minecraft/class_4220;method_19609(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
    • run

      protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      run in class Task<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbgi;a(Lagg;Lbtp;J)V
      intermediary method_19610 Lnet/minecraft/class_4220;method_19610(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named run Lnet/minecraft/entity/ai/brain/task/GoToSecondaryPositionTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V