类 VillagerWalkTowardsTask


  • public class VillagerWalkTowardsTask
    extends Task<VillagerEntity>
    Mappings:
    Namespace Name
    official awl
    intermediary net/minecraft/class_4122
    named net/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask
    • 字段详细资料

      • destination

        private final MemoryModuleType<GlobalPos> destination
        Mappings:
        Namespace Name Mixin selector
        official a Lawl;a:Lbav;
        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 c Lawl;c: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 d Lawl;d: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 e Lawl;e: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 f Lawl;f:I
        intermediary field_19292 Lnet/minecraft/class_4122;field_19292:I
        named maxRunTime Lnet/minecraft/entity/ai/brain/task/VillagerWalkTowardsTask;maxRunTime:I
    • 构造器详细资料

      • VillagerWalkTowardsTask

        public VillagerWalkTowardsTask​(MemoryModuleType<GlobalPos> destination,
                                       float speed,
                                       int completionRange,
                                       int maxRange,
                                       int maxRunTime)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lawl;<init>(Lbav;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
    • 方法详细资料

      • giveUp

        private void giveUp​(VillagerEntity villager,
                            long time)
        Mappings:
        Namespace Name Mixin selector
        official a Lawl;a(Lbis;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)
        覆盖:
        run 在类中 Task<VillagerEntity>
        Mappings:
        Namespace Name Mixin selector
        official a Lawl;a(Labj;Lbis;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 Lawl;a(Labj;Lbis;)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 Lawl;a(Lbis;Lgj;)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/dynamic/GlobalPos;)Z
      • dimensionMismatches

        private boolean dimensionMismatches​(ServerWorld world,
                                            GlobalPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lawl;a(Labj;Lgj;)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/dynamic/GlobalPos;)Z
      • reachedDestination

        private boolean reachedDestination​(ServerWorld world,
                                           VillagerEntity villager,
                                           GlobalPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Lawl;a(Labj;Lbis;Lgj;)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/dynamic/GlobalPos;)Z