类 GiveGiftsToHeroTask


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

      • field_30117

        private static final int field_30117
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a:I
        intermediary field_30117 Lnet/minecraft/class_4243;field_30117:I
        named field_30117 Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30117:I
      • field_30118

        private static final int field_30118
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lauw;c:I
        intermediary field_30118 Lnet/minecraft/class_4243;field_30118:I
        named field_30118 Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30118:I
      • field_30119

        private static final int field_30119
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official d Lauw;d:I
        intermediary field_30119 Lnet/minecraft/class_4243;field_30119:I
        named field_30119 Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30119:I
      • field_30120

        private static final int field_30120
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official e Lauw;e:I
        intermediary field_30120 Lnet/minecraft/class_4243;field_30120:I
        named field_30120 Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30120:I
      • GIFTS

        private static final Map<VillagerProfession,​Identifier> GIFTS
        Mappings:
        Namespace Name Mixin selector
        official f Lauw;f:Ljava/util/Map;
        intermediary field_18984 Lnet/minecraft/class_4243;field_18984:Ljava/util/Map;
        named GIFTS Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;GIFTS:Ljava/util/Map;
      • field_30121

        private static final float field_30121
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official g Lauw;g:F
        intermediary field_30121 Lnet/minecraft/class_4243;field_30121:F
        named field_30121 Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;field_30121:F
      • ticksLeft

        private int ticksLeft
        Mappings:
        Namespace Name Mixin selector
        official h Lauw;h:I
        intermediary field_18985 Lnet/minecraft/class_4243;field_18985:I
        named ticksLeft Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;ticksLeft:I
      • done

        private boolean done
        Mappings:
        Namespace Name Mixin selector
        official i Lauw;i:Z
        intermediary field_18986 Lnet/minecraft/class_4243;field_18986:Z
        named done Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;done:Z
      • startTime

        private long startTime
        Mappings:
        Namespace Name Mixin selector
        official j Lauw;j:J
        intermediary field_18987 Lnet/minecraft/class_4243;field_18987:J
        named startTime Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;startTime:J
    • 构造器详细资料

      • GiveGiftsToHeroTask

        public GiveGiftsToHeroTask​(int delay)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lauw;<init>(I)V
        intermediary <init> Lnet/minecraft/class_4243;<init>(I)V
        named <init> Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;<init>(I)V
    • 方法详细资料

      • shouldRun

        protected boolean shouldRun​(ServerWorld serverWorld,
                                    VillagerEntity villagerEntity)
        覆盖:
        shouldRun 在类中 Task<VillagerEntity>
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a(Labj;Lbis;)Z
        intermediary method_19962 Lnet/minecraft/class_4243;method_19962(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
        named shouldRun Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
      • run

        protected void run​(ServerWorld serverWorld,
                           VillagerEntity villagerEntity,
                           long long2)
        覆盖:
        run 在类中 Task<VillagerEntity>
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a(Labj;Lbis;J)V
        intermediary method_19963 Lnet/minecraft/class_4243;method_19963(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
        named run Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
      • shouldKeepRunning

        protected boolean shouldKeepRunning​(ServerWorld serverWorld,
                                            VillagerEntity villagerEntity,
                                            long long2)
        覆盖:
        shouldKeepRunning 在类中 Task<VillagerEntity>
        Mappings:
        Namespace Name Mixin selector
        official b Lauw;b(Labj;Lbis;J)Z
        intermediary method_19965 Lnet/minecraft/class_4243;method_19965(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
        named shouldKeepRunning Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
      • keepRunning

        protected void keepRunning​(ServerWorld serverWorld,
                                   VillagerEntity villagerEntity,
                                   long long2)
        覆盖:
        keepRunning 在类中 Task<VillagerEntity>
        Mappings:
        Namespace Name Mixin selector
        official c Lauw;c(Labj;Lbis;J)V
        intermediary method_19967 Lnet/minecraft/class_4243;method_19967(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
        named keepRunning Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
      • finishRunning

        protected void finishRunning​(ServerWorld serverWorld,
                                     VillagerEntity villagerEntity,
                                     long long2)
        覆盖:
        finishRunning 在类中 Task<VillagerEntity>
        Mappings:
        Namespace Name Mixin selector
        official d Lauw;d(Labj;Lbis;J)V
        intermediary method_19968 Lnet/minecraft/class_4243;method_19968(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
        named finishRunning Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
      • giveGifts

        private void giveGifts​(VillagerEntity villager,
                               LivingEntity recipient)
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a(Lbis;Lasy;)V
        intermediary method_19957 Lnet/minecraft/class_4243;method_19957(Lnet/minecraft/class_1646;Lnet/minecraft/class_1309;)V
        named giveGifts Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;giveGifts(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/LivingEntity;)V
      • getGifts

        private List<ItemStack> getGifts​(VillagerEntity villager)
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a(Lbis;)Ljava/util/List;
        intermediary method_19956 Lnet/minecraft/class_4243;method_19956(Lnet/minecraft/class_1646;)Ljava/util/List;
        named getGifts Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;getGifts(Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/List;
      • isNearestPlayerHero

        private boolean isNearestPlayerHero​(VillagerEntity villager)
        Mappings:
        Namespace Name Mixin selector
        official b Lauw;b(Lbis;)Z
        intermediary method_19964 Lnet/minecraft/class_4243;method_19964(Lnet/minecraft/class_1646;)Z
        named isNearestPlayerHero Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;isNearestPlayerHero(Lnet/minecraft/entity/passive/VillagerEntity;)Z
      • getNearestPlayerIfHero

        private Optional<PlayerEntity> getNearestPlayerIfHero​(VillagerEntity villager)
        Mappings:
        Namespace Name Mixin selector
        official c Lauw;c(Lbis;)Ljava/util/Optional;
        intermediary method_19966 Lnet/minecraft/class_4243;method_19966(Lnet/minecraft/class_1646;)Ljava/util/Optional;
        named getNearestPlayerIfHero Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;getNearestPlayerIfHero(Lnet/minecraft/entity/passive/VillagerEntity;)Ljava/util/Optional;
      • isHero

        private boolean isHero​(PlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a(Lbjf;)Z
        intermediary method_19959 Lnet/minecraft/class_4243;method_19959(Lnet/minecraft/class_1657;)Z
        named isHero Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;isHero(Lnet/minecraft/entity/player/PlayerEntity;)Z
      • isCloseEnough

        private boolean isCloseEnough​(VillagerEntity villager,
                                      PlayerEntity player)
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a(Lbis;Lbjf;)Z
        intermediary method_19958 Lnet/minecraft/class_4243;method_19958(Lnet/minecraft/class_1646;Lnet/minecraft/class_1657;)Z
        named isCloseEnough Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;isCloseEnough(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/player/PlayerEntity;)Z
      • getNextGiftDelay

        private static int getNextGiftDelay​(ServerWorld world)
        Mappings:
        Namespace Name Mixin selector
        official a Lauw;a(Labj;)I
        intermediary method_19961 Lnet/minecraft/class_4243;method_19961(Lnet/minecraft/class_3218;)I
        named getNextGiftDelay Lnet/minecraft/entity/ai/brain/task/GiveGiftsToHeroTask;getNextGiftDelay(Lnet/minecraft/server/world/ServerWorld;)I