Package net.minecraft.entity.ai.goal
Class MoveThroughVillageGoal
- java.lang.Object
-
- net.minecraft.entity.ai.goal.Goal
-
- net.minecraft.entity.ai.goal.MoveThroughVillageGoal
-
public class MoveThroughVillageGoal extends Goal
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.BooleanSupplier
canDealWithDoors
private int
distanceToPoi
protected CreatureEntity
mob
private boolean
onlyAtNight
private Path
path
private BlockPos
poiPos
private double
speedModifier
private java.util.List<BlockPos>
visited
-
Constructor Summary
Constructors Constructor Description MoveThroughVillageGoal(CreatureEntity p_i50324_1_, double p_i50324_2_, boolean p_i50324_4_, int p_i50324_5_, java.util.function.BooleanSupplier p_i50324_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canContinueToUse()
boolean
canUse()
private boolean
hasNotVisited(BlockPos p_220733_1_)
void
start()
void
stop()
private void
updateVisited()
-
-
-
Field Detail
-
mob
protected final CreatureEntity mob
-
speedModifier
private final double speedModifier
-
path
private Path path
-
poiPos
private BlockPos poiPos
-
onlyAtNight
private final boolean onlyAtNight
-
visited
private final java.util.List<BlockPos> visited
-
distanceToPoi
private final int distanceToPoi
-
canDealWithDoors
private final java.util.function.BooleanSupplier canDealWithDoors
-
-
Constructor Detail
-
MoveThroughVillageGoal
public MoveThroughVillageGoal(CreatureEntity p_i50324_1_, double p_i50324_2_, boolean p_i50324_4_, int p_i50324_5_, java.util.function.BooleanSupplier p_i50324_6_)
-
-
Method Detail
-
canContinueToUse
public boolean canContinueToUse()
- Overrides:
canContinueToUse
in classGoal
-
hasNotVisited
private boolean hasNotVisited(BlockPos p_220733_1_)
-
updateVisited
private void updateVisited()
-
-