public class PacifyTask extends Task<LivingEntity>
Task.Status| Modifier and Type | Field and Description |
|---|---|
private int |
duration |
requiredMemoryStates| Constructor and Description |
|---|
PacifyTask(MemoryModuleType<?> requiredMemoryModuleType,
int duration) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
run(ServerWorld world,
LivingEntity entity,
long time) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, shouldRun, stop, tick, toString, tryStartingpublic PacifyTask(MemoryModuleType<?> requiredMemoryModuleType, int duration)
protected void run(ServerWorld world, LivingEntity entity, long time)
run in class Task<LivingEntity>