Class VillageBoundRandomStroll
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<PathfinderMob>
net.minecraft.world.entity.ai.behavior.VillageBoundRandomStroll
- Direct Known Subclasses:
VictoryStroll
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private static final int
private final int
private final int
private final float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
Constructor Summary
ConstructorDescriptionVillageBoundRandomStroll
(float p_24546_) VillageBoundRandomStroll
(float p_24548_, int p_24549_, int p_24550_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
setRandomPos
(PathfinderMob p_24560_) private void
setTargetedPos
(PathfinderMob p_24562_, SectionPos p_24563_) protected void
start
(ServerLevel p_24556_, PathfinderMob p_24557_, long p_24558_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
canStillUse, checkExtraStartConditions, doStop, getStatus, stop, tick, tickOrStop, timedOut, toString, tryStart
-
Field Details
-
MAX_XZ_DIST
private static final int MAX_XZ_DIST- See Also:
-
MAX_Y_DIST
private static final int MAX_Y_DIST- See Also:
-
speedModifier
private final float speedModifier -
maxXyDist
private final int maxXyDist -
maxYDist
private final int maxYDist
-
-
Constructor Details
-
VillageBoundRandomStroll
public VillageBoundRandomStroll(float p_24546_) -
VillageBoundRandomStroll
public VillageBoundRandomStroll(float p_24548_, int p_24549_, int p_24550_)
-
-
Method Details
-
start
- Overrides:
start
in classBehavior<PathfinderMob>
-
setTargetedPos
-
setRandomPos
-