Package net.minecraft.entity.ai.goal
Class MoveThroughVillageGoal
java.lang.Object
net.minecraft.entity.ai.goal.Goal
net.minecraft.entity.ai.goal.MoveThroughVillageGoal
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BooleanSupplier
private final int
protected final CreatureEntity
private final boolean
private Path
private BlockPos
private final double
-
Constructor Summary
ConstructorDescriptionMoveThroughVillageGoal
(CreatureEntity p_i50324_1_, double p_i50324_2_, boolean p_i50324_4_, int p_i50324_5_, BooleanSupplier p_i50324_6_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
canUse()
private boolean
hasNotVisited
(BlockPos p_220733_1_) 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(CreatureEntity p_i50324_1_, double p_i50324_2_, boolean p_i50324_4_, int p_i50324_5_, BooleanSupplier p_i50324_6_)
-
-
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()
-