public class SeekSkyTask extends Task<LivingEntity>
Task.Status
Modifier and Type | Field and Description |
---|---|
private float |
speed |
requiredMemoryStates
Constructor and Description |
---|
SeekSkyTask(float speed) |
Modifier and Type | Method and Description |
---|---|
private Vec3d |
findNearbySky(ServerWorld world,
LivingEntity entity) |
static boolean |
isSkyVisible(ServerWorld world,
LivingEntity entity,
BlockPos pos) |
protected void |
run(ServerWorld world,
LivingEntity entity,
long time) |
protected boolean |
shouldRun(ServerWorld world,
LivingEntity entity) |
finishRunning, getStatus, isTimeLimitExceeded, keepRunning, shouldKeepRunning, stop, tick, toString, tryStarting
protected void run(ServerWorld world, LivingEntity entity, long time)
run
in class Task<LivingEntity>
protected boolean shouldRun(ServerWorld world, LivingEntity entity)
shouldRun
in class Task<LivingEntity>
@Nullable private Vec3d findNearbySky(ServerWorld world, LivingEntity entity)
public static boolean isSkyVisible(ServerWorld world, LivingEntity entity, BlockPos pos)