static class DrownedEntity.LeaveWaterGoal extends MoveToTargetPosGoal
Goal.Control
Modifier and Type | Field and Description |
---|---|
private DrownedEntity |
drowned |
cooldown, lowestY, mob, speed, targetPos, tryingTime
Constructor and Description |
---|
LeaveWaterGoal(DrownedEntity drowned,
double speed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStart() |
protected boolean |
isTargetPos(WorldView world,
BlockPos pos) |
boolean |
shouldContinue() |
void |
start() |
void |
stop() |
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldResetPath, startMovingToTarget, tick
canStop, getControls, setControls, toString
private final DrownedEntity drowned
public LeaveWaterGoal(DrownedEntity drowned, double speed)
public boolean canStart()
canStart
in class MoveToTargetPosGoal
public boolean shouldContinue()
shouldContinue
in class MoveToTargetPosGoal
protected boolean isTargetPos(WorldView world, BlockPos pos)
isTargetPos
in class MoveToTargetPosGoal
public void start()
start
in class MoveToTargetPosGoal