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 int
private static int
private int
private int
private float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
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:
- Constant Field Values
-
MAX_Y_DIST
private static final int MAX_Y_DIST- See Also:
- Constant Field Values
-
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
-