Package net.minecraft.entity.ai.goal
Class GoToOwnerAndPurrGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveToTargetPosGoal
net.minecraft.entity.ai.goal.GoToOwnerAndPurrGoal
public class GoToOwnerAndPurrGoal 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 GoToOwnerAndPurrGoal(CatEntity cat, double speed, int range)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
protected int
getInterval(PathAwareEntity mob)
protected boolean
isTargetPos(WorldView world, BlockPos pos)
void
start()
void
stop()
void
tick()
Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getTargetPos, hasReached, shouldContinue, shouldResetPath, startMovingToTarget
Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, toString
-
Field Details
-
cat
-
-
Constructor Details
-
GoToOwnerAndPurrGoal
-
-
Method Details
-
canStart
public boolean canStart()- Overrides:
canStart
in classMoveToTargetPosGoal
-
start
public void start()- Overrides:
start
in classMoveToTargetPosGoal
-
getInterval
- Overrides:
getInterval
in classMoveToTargetPosGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tick
in classMoveToTargetPosGoal
-
isTargetPos
- Specified by:
isTargetPos
in classMoveToTargetPosGoal
-