Class MoveThroughVillageGoal
java.lang.Object
net.minecraft.world.entity.ai.goal.Goal
net.minecraft.world.entity.ai.goal.MoveThroughVillageGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate BooleanSupplier
private int
protected PathfinderMob
private boolean
private Path
private BlockPos
private double
-
Constructor Summary
ConstructorDescriptionMoveThroughVillageGoal(PathfinderMob p_25582_, double p_25583_, boolean p_25584_, int p_25585_, BooleanSupplier p_25586_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
private boolean
hasNotVisited(BlockPos p_25593_)
void
start()
void
stop()
private void
-
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:
canContinueToUse
in classGoal
-
start
public void start() -
stop
public void stop() -
hasNotVisited
-
updateVisited
private void updateVisited()
-