Class VillagerWalkTowardsTask

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

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

    • destination

      private final MemoryModuleType<GlobalPos> destination
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a:Lbjx;
      intermediary field_18382 Lnet/minecraft/class_4122;field_18382:Lnet/minecraft/class_4140;
      named destination Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;destination:Lnet/minecraft/entity/ai/brain/MemoryModuleType;
    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official d Lbey;d:F
      intermediary field_18383 Lnet/minecraft/class_4122;field_18383:F
      named speed Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;speed:F
    • completionRange

      private final int completionRange
      Mappings:
      Namespace Name Mixin selector
      official e Lbey;e:I
      intermediary field_18384 Lnet/minecraft/class_4122;field_18384:I
      named completionRange Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;completionRange:I
    • maxRange

      private final int maxRange
      Mappings:
      Namespace Name Mixin selector
      official f Lbey;f:I
      intermediary field_18385 Lnet/minecraft/class_4122;field_18385:I
      named maxRange Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;maxRange:I
    • maxRunTime

      private final int maxRunTime
      Mappings:
      Namespace Name Mixin selector
      official g Lbey;g:I
      intermediary field_19292 Lnet/minecraft/class_4122;field_19292:I
      named maxRunTime Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;maxRunTime:I
  • Constructor Details

    • VillagerWalkTowardsTask

      public VillagerWalkTowardsTask(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxRange, int maxRunTime)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbey;<init>(Lbjx;FIII)V
      intermediary <init> Lnet/minecraft/class_4122;<init>(Lnet/minecraft/class_4140;FIII)V
      named <init> Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;<init>(Lnet/minecraft/entity/ai/brain/MemoryModuleType;FIII)V
  • Method Details

    • giveUp

      private void giveUp(VillagerEntity villager, long time)
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a(Lbss;J)V
      intermediary method_21722 Lnet/minecraft/class_4122;method_21722(Lnet/minecraft/class_1646;J)V
      named giveUp Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;giveUp(Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • run

      protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      run in class Task<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a(Lafo;Lbss;J)V
      intermediary method_19509 Lnet/minecraft/class_4122;method_19509(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named run Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • shouldGiveUp

      private boolean shouldGiveUp(ServerWorld world, VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a(Lafo;Lbss;)Z
      intermediary method_20498 Lnet/minecraft/class_4122;method_20498(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
      named shouldGiveUp Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;shouldGiveUp(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
    • exceedsMaxRange

      private boolean exceedsMaxRange(VillagerEntity villager, GlobalPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a(Lbss;Lhb;)Z
      intermediary method_19597 Lnet/minecraft/class_4122;method_19597(Lnet/minecraft/class_1646;Lnet/minecraft/class_4208;)Z
      named exceedsMaxRange Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;exceedsMaxRange(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/GlobalPos;)Z
    • dimensionMismatches

      private boolean dimensionMismatches(ServerWorld world, GlobalPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a(Lafo;Lhb;)Z
      intermediary method_30952 Lnet/minecraft/class_4122;method_30952(Lnet/minecraft/class_3218;Lnet/minecraft/class_4208;)Z
      named dimensionMismatches Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;dimensionMismatches(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/GlobalPos;)Z
    • reachedDestination

      private boolean reachedDestination(ServerWorld world, VillagerEntity villager, GlobalPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbey;a(Lafo;Lbss;Lhb;)Z
      intermediary method_19988 Lnet/minecraft/class_4122;method_19988(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_4208;)Z
      named reachedDestination Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;reachedDestination(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/GlobalPos;)Z