Class MoveThroughVillageGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveThroughVillageGoal
- 
Nested Class Summary
 - 
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final BooleanSupplierprivate final intprotected final PathfinderMobprivate final booleanprivate Pathprivate BlockPosprivate final double - 
Constructor Summary
ConstructorsConstructorDescriptionMoveThroughVillageGoal(PathfinderMob p_25582_, double p_25583_, boolean p_25584_, int p_25585_, BooleanSupplier p_25586_)  - 
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleancanUse()private booleanhasNotVisited(BlockPos p_25593_) voidstart()voidstop()private voidMethods inherited from class net.minecraft.world.entity.ai.goal.Goal
adjustedTickDelay, getFlags, isInterruptable, reducedTickDelay, requiresUpdateEveryTick, setFlags, tick, toString 
- 
Field Details
- 
mob
 - 
speedModifier
private final double speedModifier - 
path
 - 
poiPos
 - 
onlyAtNight
private final boolean onlyAtNight - 
visited
 - 
distanceToPoi
private final int distanceToPoi - 
canDealWithDoors
 
 - 
 - 
Constructor Details
- 
MoveThroughVillageGoal
public MoveThroughVillageGoal(PathfinderMob p_25582_, double p_25583_, boolean p_25584_, int p_25585_, BooleanSupplier p_25586_)  
 - 
 - 
Method Details
- 
canUse
public boolean canUse() - 
canContinueToUse
public boolean canContinueToUse()- Overrides:
 canContinueToUsein classGoal
 - 
start
public void start() - 
stop
public void stop() - 
hasNotVisited
 - 
updateVisited
private void updateVisited() 
 -