Package net.minecraft.entity.ai.goal
Class PatrolVillageGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.RandomWalkingGoal
-
- net.minecraft.entity.ai.goal.PatrolVillageGoal
-
public class PatrolVillageGoal 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 PatrolVillageGoal(CreatureEntity p_i231547_1_, double p_i231547_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleandoesVillagerWantGolem(VillagerEntity p_234028_1_)protected Vector3dgetPosition()private Vector3dgetPositionTowardsAnywhere()private Vector3dgetPositionTowardsPoi()private Vector3dgetPositionTowardsVillagerWhoWantsGolem()private BlockPosgetRandomPoiWithinSection(SectionPos p_234029_1_)private SectionPosgetRandomVillageSection()-
Methods inherited from class net.minecraft.entity.ai.goal.RandomWalkingGoal
canContinueToUse, canUse, setInterval, start, stop, trigger
-
-
-
-
Constructor Detail
-
PatrolVillageGoal
public PatrolVillageGoal(CreatureEntity p_i231547_1_, double p_i231547_2_)
-
-
Method Detail
-
getPosition
@Nullable protected Vector3d getPosition()
- Overrides:
getPositionin classRandomWalkingGoal
-
getPositionTowardsAnywhere
@Nullable private Vector3d getPositionTowardsAnywhere()
-
getPositionTowardsVillagerWhoWantsGolem
@Nullable private Vector3d getPositionTowardsVillagerWhoWantsGolem()
-
getPositionTowardsPoi
@Nullable private Vector3d getPositionTowardsPoi()
-
getRandomVillageSection
@Nullable private SectionPos getRandomVillageSection()
-
getRandomPoiWithinSection
@Nullable private BlockPos getRandomPoiWithinSection(SectionPos p_234029_1_)
-
doesVillagerWantGolem
private boolean doesVillagerWantGolem(VillagerEntity p_234028_1_)
-
-