Class WorkTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private final MemoryModuleType<GlobalPos>
private long
private float
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
Constructor Summary
ConstructorDescriptionWorkTask
(MemoryModuleType<GlobalPos> p_i241909_1_, float p_i241909_2_, int p_i241909_3_) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkExtraStartConditions
(ServerWorld p_212832_1_, CreatureEntity p_212832_2_) protected void
start
(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_) Methods inherited from class net.minecraft.entity.ai.brain.task.Task
canStillUse, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
memoryType
-
nextOkStartTime
private long nextOkStartTime -
maxDistanceFromPoi
private final int maxDistanceFromPoi -
speedModifier
private float speedModifier
-
-
Constructor Details
-
WorkTask
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classTask<CreatureEntity>
-
start
- Overrides:
start
in classTask<CreatureEntity>
-