Class WorkStationCompetitionTask

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

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

    • profession

      final VillagerProfession profession
      Mappings:
      Namespace Name Mixin selector
      official a Lbfb;a:Lbts;
      intermediary field_25156 Lnet/minecraft/class_5326;field_25156:Lnet/minecraft/class_3852;
      named profession Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;profession:Lnet/minecraft/village/VillagerProfession;
  • Constructor Details

    • WorkStationCompetitionTask

      public WorkStationCompetitionTask(VillagerProfession profession)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbfb;<init>(Lbts;)V
      intermediary <init> Lnet/minecraft/class_5326;<init>(Lnet/minecraft/class_3852;)V
      named <init> Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;<init>(Lnet/minecraft/village/VillagerProfession;)V
  • Method Details

    • run

      protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      run in class Task<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbfb;a(Lagg;Lbtp;J)V
      intermediary method_29258 Lnet/minecraft/class_5326;method_29258(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
      named run Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
    • keepJobSiteForMoreExperiencedVillager

      private static VillagerEntity keepJobSiteForMoreExperiencedVillager(VillagerEntity first, VillagerEntity second)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfb;a(Lbtp;Lbtp;)Lbtp;
      intermediary method_29255 Lnet/minecraft/class_5326;method_29255(Lnet/minecraft/class_1646;Lnet/minecraft/class_1646;)Lnet/minecraft/class_1646;
      named keepJobSiteForMoreExperiencedVillager Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;keepJobSiteForMoreExperiencedVillager(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/entity/passive/VillagerEntity;)Lnet/minecraft/entity/passive/VillagerEntity;
    • isUsingWorkStationAt

      private boolean isUsingWorkStationAt(GlobalPos pos, RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfb;a(Lhb;Lhc;Lbtp;)Z
      intermediary method_29257 Lnet/minecraft/class_5326;method_29257(Lnet/minecraft/class_4208;Lnet/minecraft/class_6880;Lnet/minecraft/class_1646;)Z
      named isUsingWorkStationAt Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;isUsingWorkStationAt(Lnet/minecraft/util/math/GlobalPos;Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/entity/passive/VillagerEntity;)Z
    • isCompletedWorkStation

      private boolean isCompletedWorkStation(RegistryEntry<PointOfInterestType> poiType, VillagerProfession profession)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfb;a(Lhc;Lbts;)Z
      intermediary method_29253 Lnet/minecraft/class_5326;method_29253(Lnet/minecraft/class_6880;Lnet/minecraft/class_3852;)Z
      named isCompletedWorkStation Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;isCompletedWorkStation(Lnet/minecraft/util/registry/RegistryEntry;Lnet/minecraft/village/VillagerProfession;)Z
    • hasJobSite

      private boolean hasJobSite(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Lbfb;a(Lbtp;)Z
      intermediary method_29254 Lnet/minecraft/class_5326;method_29254(Lnet/minecraft/class_1646;)Z
      named hasJobSite Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;hasJobSite(Lnet/minecraft/entity/passive/VillagerEntity;)Z