Package net.minecraft.entity.ai.goal
Class ReturnToVillageGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.RandomWalkingGoal
-
- net.minecraft.entity.ai.goal.ReturnToVillageGoal
-
public class ReturnToVillageGoal extends RandomWalkingGoal
-
-
Field Summary
-
Fields inherited from class net.minecraft.entity.ai.goal.RandomWalkingGoal
forceTrigger, interval, mob, speedModifier, wantedX, wantedY, wantedZ
-
-
Constructor Summary
Constructors Constructor Description ReturnToVillageGoal(CreatureEntity p_i231548_1_, double p_i231548_2_, boolean p_i231548_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canUse()
protected Vector3d
getPosition()
-
Methods inherited from class net.minecraft.entity.ai.goal.RandomWalkingGoal
canContinueToUse, setInterval, start, stop, trigger
-
-
-
-
Constructor Detail
-
ReturnToVillageGoal
public ReturnToVillageGoal(CreatureEntity p_i231548_1_, double p_i231548_2_, boolean p_i231548_4_)
-
-
Method Detail
-
canUse
public boolean canUse()
- Overrides:
canUse
in classRandomWalkingGoal
-
getPosition
@Nullable protected Vector3d getPosition()
- Overrides:
getPosition
in classRandomWalkingGoal
-
-