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