Package net.minecraft.entity.ai.goal
Class MoveThroughVillageGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveThroughVillageGoal
-
public class MoveThroughVillageGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BooleanSuppliercanDealWithDoorsprivate intdistanceToPoiprotected CreatureEntitymobprivate booleanonlyAtNightprivate Pathpathprivate BlockPospoiPosprivate doublespeedModifierprivate java.util.List<BlockPos>visited
-
Constructor Summary
Constructors Constructor Description MoveThroughVillageGoal(CreatureEntity p_i50324_1_, double p_i50324_2_, boolean p_i50324_4_, int p_i50324_5_, java.util.function.BooleanSupplier p_i50324_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanContinueToUse()booleancanUse()private booleanhasNotVisited(BlockPos p_220733_1_)voidstart()voidstop()private voidupdateVisited()
-
-
-
Field Detail
-
mob
protected final CreatureEntity mob
-
speedModifier
private final double speedModifier
-
path
private Path path
-
poiPos
private BlockPos poiPos
-
onlyAtNight
private final boolean onlyAtNight
-
visited
private final java.util.List<BlockPos> visited
-
distanceToPoi
private final int distanceToPoi
-
canDealWithDoors
private final java.util.function.BooleanSupplier canDealWithDoors
-
-
Constructor Detail
-
MoveThroughVillageGoal
public MoveThroughVillageGoal(CreatureEntity p_i50324_1_, double p_i50324_2_, boolean p_i50324_4_, int p_i50324_5_, java.util.function.BooleanSupplier p_i50324_6_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUsein classGoal
-
hasNotVisited
private boolean hasNotVisited(BlockPos p_220733_1_)
-
updateVisited
private void updateVisited()
-
-