类 TakeJobSiteTask


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

      • speed

        private final float speed
        Mappings:
        Namespace Name Mixin selector
        official a Laxn;a:F
        intermediary field_25158 Lnet/minecraft/class_5327;field_25158:F
        named speed Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;speed:F
    • 构造器详细资料

      • TakeJobSiteTask

        public TakeJobSiteTask​(float speed)
        Mappings:
        Namespace Name Mixin selector
        official <init> Laxn;<init>(F)V
        intermediary <init> Lnet/minecraft/class_5327;<init>(F)V
        named <init> Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;<init>(F)V
    • 方法详细资料

      • shouldRun

        protected boolean shouldRun​(ServerWorld serverWorld,
                                    VillagerEntity villagerEntity)
        覆盖:
        shouldRun 在类中 Task<VillagerEntity>
        Mappings:
        Namespace Name Mixin selector
        official a Laxn;a(Labj;Lbis;)Z
        intermediary method_29264 Lnet/minecraft/class_5327;method_29264(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
        named shouldRun Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;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 Laxn;a(Labj;Lbis;J)V
        intermediary method_29265 Lnet/minecraft/class_5327;method_29265(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
        named run Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
      • canUseJobSite

        private boolean canUseJobSite​(PointOfInterestType poiType,
                                      VillagerEntity villager,
                                      BlockPos pos)
        Mappings:
        Namespace Name Mixin selector
        official a Laxn;a(Lbcr;Lbis;Lgb;)Z
        intermediary method_29260 Lnet/minecraft/class_5327;method_29260(Lnet/minecraft/class_4158;Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;)Z
        named canUseJobSite Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;canUseJobSite(Lnet/minecraft/world/poi/PointOfInterestType;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/BlockPos;)Z
      • claimSite

        private void claimSite​(ServerWorld world,
                               VillagerEntity previousOwner,
                               VillagerEntity newOwner,
                               BlockPos pos,
                               boolean jobSitePresent)
        Mappings:
        Namespace Name Mixin selector
        official a Laxn;a(Labj;Lbis;Lbis;Lgb;Z)V
        intermediary method_29266 Lnet/minecraft/class_5327;method_29266(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;Z)V
        named claimSite Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;claimSite(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/BlockPos;Z)V
      • canReachJobSite

        private boolean canReachJobSite​(VillagerEntity villager,
                                        BlockPos pos,
                                        PointOfInterestType poiType)
        Mappings:
        Namespace Name Mixin selector
        official a Laxn;a(Lbis;Lgb;Lbcr;)Z
        intermediary method_29262 Lnet/minecraft/class_5327;method_29262(Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;Lnet/minecraft/class_4158;)Z
        named canReachJobSite Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;canReachJobSite(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/world/poi/PointOfInterestType;)Z
      • forgetJobSiteAndWalkTarget

        private void forgetJobSiteAndWalkTarget​(VillagerEntity villager)
        Mappings:
        Namespace Name Mixin selector
        official a Laxn;a(Lbis;)V
        intermediary method_29261 Lnet/minecraft/class_5327;method_29261(Lnet/minecraft/class_1646;)V
        named forgetJobSiteAndWalkTarget Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;forgetJobSiteAndWalkTarget(Lnet/minecraft/entity/passive/VillagerEntity;)V