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 booleancanStart()protected intgetInterval(PathAwareEntity mob)protected booleanisTargetPos(WorldView world, BlockPos pos)voidstart()voidstop()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.MoveToTargetPosGoal
findTargetPos, getDesiredSquaredDistanceToTarget, getTargetPos, hasReached, shouldContinue, shouldResetPath, startMovingToTargetMethods 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:
canStartin classMoveToTargetPosGoal
-
start
public void start()- Overrides:
startin classMoveToTargetPosGoal
-
getInterval
- Overrides:
getIntervalin classMoveToTargetPosGoal
-
stop
public void stop() -
tick
public void tick()- Overrides:
tickin classMoveToTargetPosGoal
-
isTargetPos
- Specified by:
isTargetPosin classMoveToTargetPosGoal
-