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, tickcanStop, getControls, setControls, toStringprivate final DrownedEntity drowned
public LeaveWaterGoal(DrownedEntity drowned, double speed)
public boolean canStart()
canStart in class MoveToTargetPosGoalpublic boolean shouldContinue()
shouldContinue in class MoveToTargetPosGoalprotected boolean isTargetPos(WorldView world, BlockPos pos)
isTargetPos in class MoveToTargetPosGoalpublic void start()
start in class MoveToTargetPosGoal