Class PacifyTask
public class PacifyTask extends Task<LivingEntity>
-
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
duration
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description PacifyTask(MemoryModuleType<?> requiredMemoryModuleType, int duration)
-
Method Summary
Modifier and Type Method Description protected void
run(ServerWorld world, LivingEntity entity, long time)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStarting
-
Field Details
-
duration
private final int duration
-
-
Constructor Details
-
PacifyTask
-
-
Method Details
-
run
- Overrides:
run
in classTask<LivingEntity>
-