Package net.minecraft.entity.ai.goal
Class GoToVillageGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.GoToVillageGoal
- Direct Known Subclasses:
FoxEntity.GoToVillageGoal
public class GoToVillageGoal extends Goal
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.goal.Goal
Goal.Control -
Field Summary
Fields Modifier and Type Field Description private PathAwareEntitymobprivate intsearchRangeprivate BlockPostargetPosition -
Constructor Summary
Constructors Constructor Description GoToVillageGoal(PathAwareEntity mob, int searchRange) -
Method Summary
Modifier and Type Method Description booleancanStart()private voidfindOtherWaypoint()booleanshouldContinue()voidtick()Methods inherited from class net.minecraft.entity.ai.goal.Goal
canStop, getControls, setControls, start, stop, toString
-
Field Details
-
mob
-
searchRange
private final int searchRange -
targetPosition
-
-
Constructor Details
-
GoToVillageGoal
-
-
Method Details