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 atz
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 b Latz;b:Lbhb;
      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> Latz;<init>(Lbhb;)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 Latz;a(Laav;Lbgy;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 Latz;a(Lbgy;Lbgy;)Lbgy;
      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, PointOfInterestType poiType, VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Latz;a(Lgf;Lbbb;Lbgy;)Z
      intermediary method_29257 Lnet/minecraft/class_5326;method_29257(Lnet/minecraft/class_4208;Lnet/minecraft/class_4158;Lnet/minecraft/class_1646;)Z
      named isUsingWorkStationAt Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;isUsingWorkStationAt(Lnet/minecraft/util/dynamic/GlobalPos;Lnet/minecraft/world/poi/PointOfInterestType;Lnet/minecraft/entity/passive/VillagerEntity;)Z
    • isCompletedWorkStation

      private boolean isCompletedWorkStation​(PointOfInterestType poiType, VillagerProfession profession)
      Mappings:
      Namespace Name Mixin selector
      official a Latz;a(Lbbb;Lbhb;)Z
      intermediary method_29253 Lnet/minecraft/class_5326;method_29253(Lnet/minecraft/class_4158;Lnet/minecraft/class_3852;)Z
      named isCompletedWorkStation Lnet/minecraft/entity/ai/brain/task/WorkStationCompetitionTask;isCompletedWorkStation(Lnet/minecraft/world/poi/PointOfInterestType;Lnet/minecraft/village/VillagerProfession;)Z
    • hasJobSite

      private boolean hasJobSite​(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Latz;a(Lbgy;)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