Package net.minecraft.entity.ai.goal
Class CatSitOnBlockGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.ai.goal.CatSitOnBlockGoal
public class CatSitOnBlockGoal extends MoveToTargetPosGoal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control
-
Field Summary
Fields inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
cooldown, lowestY, mob, speed, targetPos, tryingTime
-
Constructor Summary
Constructors Constructor Description CatSitOnBlockGoal(CatEntity cat, double speed)
-
Method Summary
Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getInterval, getTargetPos, hasReached, shouldContinue, shouldResetPath, startMovingToTarget
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
cat
-
-
Constructor Details
-
CatSitOnBlockGoal
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classMoveToTargetPosGoal
-
start
public void start()- Overrides:
start
in classMoveToTargetPosGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tick
in classMoveToTargetPosGoal
-
isTargetPos
- Specified by:
isTargetPos
in classMoveToTargetPosGoal
-