Class RandomStroll
java.lang.Object
net.minecraft.world.entity.ai.behavior.RandomStroll
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final int[][]
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic BehaviorControl<PathfinderMob>fly(float p_259119_) private static Vec3getTargetFlyPos(PathfinderMob p_260316_, int p_259038_, int p_259696_) private static Vec3getTargetSwimPos(PathfinderMob p_259491_) static OneShot<PathfinderMob>stroll(float p_260304_) static OneShot<PathfinderMob>stroll(float p_260303_, boolean p_259639_) static BehaviorControl<PathfinderMob>stroll(float p_260204_, int p_259502_, int p_259891_) private static OneShot<PathfinderMob>strollFlyOrSwim(float p_260030_, Function<PathfinderMob, Vec3> p_259912_, Predicate<PathfinderMob> p_259088_) static BehaviorControl<PathfinderMob>swim(float p_259469_) 
- 
Field Details- 
MAX_XZ_DISTprivate static final int MAX_XZ_DIST- See Also:
 
- 
MAX_Y_DISTprivate static final int MAX_Y_DIST- See Also:
 
- 
SWIM_XY_DISTANCE_TIERSprivate static final int[][] SWIM_XY_DISTANCE_TIERS
 
- 
- 
Constructor Details- 
RandomStrollpublic RandomStroll()
 
- 
- 
Method Details- 
stroll
- 
stroll
- 
stroll
- 
fly
- 
swim
- 
strollFlyOrSwimprivate static OneShot<PathfinderMob> strollFlyOrSwim(float p_260030_, Function<PathfinderMob, Vec3> p_259912_, Predicate<PathfinderMob> p_259088_) 
- 
getTargetSwimPos
- 
getTargetFlyPos@Nullable private static Vec3 getTargetFlyPos(PathfinderMob p_260316_, int p_259038_, int p_259696_) 
 
-