package net.minecraft.world.entity.ai.goal; import net.minecraft.world.entity.PathfinderMob; import net.minecraft.world.entity.ai.behavior.BehaviorUtils; import net.minecraft.world.phys.Vec3; import org.jspecify.annotations.Nullable; public class RandomSwimmingGoal extends RandomStrollGoal { public RandomSwimmingGoal(final PathfinderMob mob, final double speedModifier, final int interval) { super(mob, speedModifier, interval); } @Nullable @Override protected Vec3 getPosition() { return BehaviorUtils.getRandomSwimmablePos(this.mob, 10, 7); } }