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