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
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description (package private) VillagerProfession
profession
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description WorkStationCompetitionTask(VillagerProfession profession)
-
Method Summary
Modifier and Type Method Description private boolean
hasJobSite(VillagerEntity villager)
private boolean
isCompletedWorkStation(PointOfInterestType poiType, VillagerProfession profession)
private boolean
isUsingWorkStationAt(GlobalPos pos, 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 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
- 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
- Overrides:
run
in classTask<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
- 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
- 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
-