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, startMovingToTarget
canStop, getControls, setControls, toString
private final CatEntity cat
public CatSitOnBlockGoal(CatEntity cat, double speed)
public boolean canStart()
canStart
in class MoveToTargetPosGoal
public void start()
start
in class MoveToTargetPosGoal
public void tick()
tick
in class MoveToTargetPosGoal
protected boolean isTargetPos(WorldView world, BlockPos pos)
isTargetPos
in class MoveToTargetPosGoal