Class HoverRandomPos
java.lang.Object
net.minecraft.world.entity.ai.util.HoverRandomPos
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable Vec3getPos(PathfinderMob mob, int horizontalDist, int verticalDist, double xDir, double zDir, float maxXzRadiansDifference, int hoverMaxHeight, int hoverMinHeight) Tries to generate a random position a couple different ways, and if failing, sees if swimming vertically is an option.
-
Constructor Details
-
HoverRandomPos
public HoverRandomPos()
-
-
Method Details
-
getPos
public static @Nullable Vec3 getPos(PathfinderMob mob, int horizontalDist, int verticalDist, double xDir, double zDir, float maxXzRadiansDifference, int hoverMaxHeight, int hoverMinHeight) Tries to generate a random position a couple different ways, and if failing, sees if swimming vertically is an option.
-