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, startMovingToTargetcanStop, getControls, setControls, toStringprivate final CatEntity cat
public GoToOwnerAndPurrGoal(CatEntity cat, double speed, int range)
public boolean canStart()
canStart in class MoveToTargetPosGoalpublic void start()
start in class MoveToTargetPosGoalprotected int getInterval(PathAwareEntity mob)
getInterval in class MoveToTargetPosGoalpublic void tick()
tick in class MoveToTargetPosGoalprotected boolean isTargetPos(WorldView world, BlockPos pos)
isTargetPos in class MoveToTargetPosGoal