public class PanicTask extends Task<VillagerEntity>
Task.StatusrequiredMemoryStates| Constructor and Description |
|---|
PanicTask() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isHostileNearby(LivingEntity entity) |
protected void |
keepRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected void |
run(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
protected boolean |
shouldKeepRunning(ServerWorld serverWorld,
VillagerEntity villagerEntity,
long long2) |
static boolean |
wasHurt(LivingEntity entity) |
finishRunning, getStatus, isTimeLimitExceeded, shouldRun, stop, tick, toString, tryStartingprotected boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
shouldKeepRunning in class Task<VillagerEntity>protected void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
run in class Task<VillagerEntity>protected void keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
keepRunning in class Task<VillagerEntity>public static boolean isHostileNearby(LivingEntity entity)
public static boolean wasHurt(LivingEntity entity)