Class WorkStationCompetitionTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.WorkStationCompetitionTask
- Mappings:
Namespace Name official bfb
intermediary net/minecraft/class_5326
named net/minecraft/entity/ai/brain/task/WorkStationCompetitionTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
hasJobSite
(VillagerEntity villager) private boolean
isCompletedWorkStation
(RegistryEntry<PointOfInterestType> poiType, VillagerProfession profession) private boolean
isUsingWorkStationAt
(GlobalPos pos, RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager) private static VillagerEntity
keepJobSiteForMoreExperiencedVillager
(VillagerEntity first, VillagerEntity second) protected void
run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
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
- 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
- Overrides:
run
in classTask<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
- 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
-