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