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