net.minecraft.entity.ai.goal

public class MoveThroughVillageGoal

extends Goal

net.minecraft.world.entity.ai.goal.MoveThroughVillageGoal
net.minecraft.world.entity.ai.goal.MoveThroughVillageGoal
net.minecraft.class_1368
net.minecraft.entity.ai.goal.MoveThroughVillageGoal

Field summary

Modifier and TypeField
protected final PathAwareEntity
mob
mob
field_6525
mob
private final double
speedModifier
speedModifier
field_6520
speed
private Path
path
path
field_6523
targetPath
private BlockPos
poiPos
poiPos
field_18412
target
private final boolean
onlyAtNight
onlyAtNight
field_6524
requiresNighttime
private final List<BlockPos>
visited
visited
field_18413
visitedTargets
private final int
distanceToPoi
distanceToPoi
field_18414
distance
private final BooleanSupplier
canDealWithDoors
canDealWithDoors
field_18415
doorPassingThroughGetter

Constructor summary

ModifierConstructor
public (PathAwareEntity entity, double speed, boolean requiresNighttime, int distance, BooleanSupplier doorPassingThroughGetter)

Method summary

Modifier and TypeMethod
public boolean
canUse()
canUse()
method_6264()
canStart()
public boolean
canContinueToUse()
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
start()
method_6269()
start()
public void
stop()
stop()
method_6270()
stop()
private boolean
hasNotVisited(BlockPos poi)
hasNotVisited(BlockPos poi)
method_19052(class_2338 arg0)
shouldVisit(BlockPos pos)
private void
updateVisited()
updateVisited()
method_6297()
forgetOldTarget()