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 PathAwareEntity
mob
private int
searchRange
private BlockPos
targetPosition
-
Constructor Summary
Constructors Constructor Description GoToVillageGoal(PathAwareEntity mob, int searchRange)
-
Method Summary
Modifier and Type Method Description boolean
canStart()
private void
findOtherWaypoint()
boolean
shouldContinue()
void
tick()
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