Class WorkTask
- java.lang.Object
-
- net.minecraft.entity.ai.brain.task.Task<CreatureEntity>
-
- net.minecraft.entity.ai.brain.task.WorkTask
-
public class WorkTask extends Task<CreatureEntity>
-
-
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 private int
maxDistanceFromPoi
private MemoryModuleType<GlobalPos>
memoryType
private long
nextOkStartTime
private float
speedModifier
-
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
entryCondition
-
-
Constructor Summary
Constructors Constructor Description WorkTask(MemoryModuleType<GlobalPos> p_i241909_1_, float p_i241909_2_, int p_i241909_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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 Detail
-
memoryType
private final MemoryModuleType<GlobalPos> memoryType
-
nextOkStartTime
private long nextOkStartTime
-
maxDistanceFromPoi
private final int maxDistanceFromPoi
-
speedModifier
private float speedModifier
-
-
Constructor Detail
-
WorkTask
public WorkTask(MemoryModuleType<GlobalPos> p_i241909_1_, float p_i241909_2_, int p_i241909_3_)
-
-
Method Detail
-
checkExtraStartConditions
protected boolean checkExtraStartConditions(ServerWorld p_212832_1_, CreatureEntity p_212832_2_)
- Overrides:
checkExtraStartConditions
in classTask<CreatureEntity>
-
start
protected void start(ServerWorld p_212831_1_, CreatureEntity p_212831_2_, long p_212831_3_)
- Overrides:
start
in classTask<CreatureEntity>
-
-