Class TakeJobSiteTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.TakeJobSiteTask
- Mappings:
Namespace Name official ayl
intermediary net/minecraft/class_5327
named net/minecraft/entity/ai/brain/task/TakeJobSiteTask
-
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
requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
canReachJobSite(VillagerEntity villager, BlockPos pos, PointOfInterestType poiType)
private boolean
canUseJobSite(PointOfInterestType poiType, VillagerEntity villager, BlockPos pos)
private void
claimSite(ServerWorld world, VillagerEntity previousOwner, VillagerEntity newOwner, BlockPos pos, boolean jobSitePresent)
private void
forgetJobSiteAndWalkTarget(VillagerEntity villager)
protected void
run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
protected boolean
shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
-
Field Details
-
speed
private final float speed- Mappings:
Namespace Name Mixin selector official a
Layl;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>
Layl;<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
- Overrides:
shouldRun
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Layl;a(Labr;Lbjq;)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
- Overrides:
run
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Layl;a(Labr;Lbjq;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
- Mappings:
Namespace Name Mixin selector official a
Layl;a(Lbdp;Lbjq;Lgg;)Z
intermediary method_29260
Lnet/minecraft/class_5327;method_29260(Lnet/minecraft/class_4158;Lnet/minecraft/class_1646;Lnet/minecraft/class_2338;)Z
named canUseJobSite
Lnet/minecraft/entity/ai/brain/task/TakeJobSiteTask;canUseJobSite(Lnet/minecraft/world/poi/PointOfInterestType;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
Layl;a(Labr;Lbjq;Lbjq;Lgg;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
Layl;a(Lbjq;Lgg;Lbdp;)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
- Mappings:
Namespace Name Mixin selector official a
Layl;a(Lbjq;)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
-