Class TakeJobSiteTask

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

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

    • speed

      private final float speed
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a:F
      intermediary field_25158 Lnet/minecraft/class_5327;field_25158:F
      named speed Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;speed:F
  • Constructor Details

    • TakeJobSiteTask

      public TakeJobSiteTask(float speed)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbhb;<init>(F)V
      intermediary <init> Lnet/minecraft/class_5327;<init>(F)V
      named <init> Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;<init>(F)V
  • Method Details

    • shouldRun

      protected boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
      Overrides:
      shouldRun in class Task<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lagg;Lbtp;)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)
      Overrides:
      run in class Task<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lagg;Lbtp;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(RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbhb;a(Lhc;Lbtp;Lgt;)Z
      intermediary method_29260 Lnet/minecraft/class_5327;method_29260(Lnet/minecraft/class_6880;Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;)Z
      named canUseJobSite Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;canUseJobSite(Lnet/minecraft/util/registry/RegistryEntry;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 Lbhb;a(Lagg;Lbtp;Lbtp;Lgt;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 Lbhb;a(Lbtp;Lgt;Lbmv;)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 Lbhb;a(Lbtp;)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