net.minecraft.entity.ai.goal

public class MoveThroughVillageGoal

extends Goal

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
field_6525
mob
private final double
speedModifier
field_6520
speed
private Path
path
field_6523
targetPath
private BlockPos
poiPos
field_18412
target
private final boolean
onlyAtNight
field_6524
requiresNighttime
private final List<BlockPos>
visited
field_18413
visitedTargets
private final int
distanceToPoi
field_18414
distance
private final BooleanSupplier
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()
method_6264()
canStart()
public boolean
canContinueToUse()
method_6266()
shouldContinue()
public void
start()
method_6269()
start()
public void
stop()
method_6270()
stop()
private boolean
hasNotVisited(BlockPos poi)
method_19052(class_2338 arg0)
shouldVisit(BlockPos pos)
private void
updateVisited()
method_6297()
forgetOldTarget()
private static boolean
lambda$canUse$3(Holder arg0)
method_43975(class_6880 arg0)
method_43975(RegistryEntry poiType)
private double
lambda$canUse$2(ServerLevel arg0, BlockPos arg1, BlockPos arg2)
method_19053(class_3218 arg0, class_2338 arg1, class_2338 arg2)
method_19053(ServerWorld arg0, BlockPos arg1, BlockPos pos)
private static Double
lambda$canUse$1(BlockPos arg0, BlockPos arg1)
method_43974(class_2338 arg0, class_2338 arg1)
method_43974(BlockPos arg0, BlockPos arg1)
private static boolean
lambda$canUse$0(Holder arg0)
method_43976(class_6880 arg0)
method_43976(RegistryEntry poiType)