Class FarmerVillagerTask

java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.FarmerVillagerTask
All Implemented Interfaces:
Task<VillagerEntity>

public class FarmerVillagerTask extends MultiTickTask<VillagerEntity>
Mappings:
Namespace Name
official bim
intermediary net/minecraft/class_4217
named net/minecraft/entity/ai/brain/task/FarmerVillagerTask
  • Field Details

    • MAX_RUN_TIME

      private static final int MAX_RUN_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbim;d:I
      intermediary field_30124 Lnet/minecraft/class_4217;field_30124:I
      named MAX_RUN_TIME Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;MAX_RUN_TIME:I
    • WALK_SPEED

      public static final float WALK_SPEED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbim;c:F
      intermediary field_30123 Lnet/minecraft/class_4217;field_30123:F
      named WALK_SPEED Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;WALK_SPEED:F
    • currentTarget

      @Nullable private @Nullable BlockPos currentTarget
      Mappings:
      Namespace Name Mixin selector
      official e Lbim;e:Lgu;
      intermediary field_18858 Lnet/minecraft/class_4217;field_18858:Lnet/minecraft/class_2338;
      named currentTarget Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;currentTarget:Lnet/minecraft/util/math/BlockPos;
    • nextResponseTime

      private long nextResponseTime
      Mappings:
      Namespace Name Mixin selector
      official f Lbim;f:J
      intermediary field_18861 Lnet/minecraft/class_4217;field_18861:J
      named nextResponseTime Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;nextResponseTime:J
    • ticksRan

      private int ticksRan
      Mappings:
      Namespace Name Mixin selector
      official g Lbim;g:I
      intermediary field_19239 Lnet/minecraft/class_4217;field_19239:I
      named ticksRan Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;ticksRan:I
    • targetPositions

      private final List<BlockPos> targetPositions
      Mappings:
      Namespace Name Mixin selector
      official h Lbim;h:Ljava/util/List;
      intermediary field_19351 Lnet/minecraft/class_4217;field_19351:Ljava/util/List;
      named targetPositions Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;targetPositions:Ljava/util/List;
  • Constructor Details

    • FarmerVillagerTask

      public FarmerVillagerTask()
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
      Overrides:
      shouldRun in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbim;a(Laif;Lbyb;)Z
      intermediary method_19564 Lnet/minecraft/class_4217;method_19564(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
      named shouldRun Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
    • chooseRandomTarget

      @Nullable private @Nullable BlockPos chooseRandomTarget(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbim;a(Laif;)Lgu;
      intermediary method_20641 Lnet/minecraft/class_4217;method_20641(Lnet/minecraft/class_3218;)Lnet/minecraft/class_2338;
      named chooseRandomTarget Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;chooseRandomTarget(Lnet/minecraft/server/world/ServerWorld;)Lnet/minecraft/util/math/BlockPos;
    • isSuitableTarget

      private boolean isSuitableTarget(BlockPos pos, ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official a Lbim;a(Lgu;Laif;)Z
      intermediary method_20640 Lnet/minecraft/class_4217;method_20640(Lnet/minecraft/class_2338;Lnet/minecraft/class_3218;)Z
      named isSuitableTarget Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;isSuitableTarget(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/server/world/ServerWorld;)Z
    • run

      protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      run in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbim;a(Laif;Lbyb;J)V
      intermediary method_20392 Lnet/minecraft/class_4217;method_20392(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named run Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • finishRunning

      protected void finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      finishRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbim;b(Laif;Lbyb;J)V
      intermediary method_19566 Lnet/minecraft/class_4217;method_19566(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named finishRunning Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • keepRunning

      protected void keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lbim;c(Laif;Lbyb;J)V
      intermediary method_19565 Lnet/minecraft/class_4217;method_19565(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named keepRunning Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • shouldKeepRunning

      protected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      shouldKeepRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lbim;d(Laif;Lbyb;J)Z
      intermediary method_20394 Lnet/minecraft/class_4217;method_20394(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
      named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/FarmerVillagerTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z