static class SpreadPlayersCommand.Position
extends java.lang.Object
Constructor and Description |
---|
Position() |
Modifier and Type | Method and Description |
---|---|
boolean |
clampWithinRange(double minX,
double minZ,
double maxX,
double maxZ) |
void |
computeCoords(java.util.Random random,
double minX,
double minZ,
double maxX,
double maZx) |
(package private) double |
getDistance(SpreadPlayersCommand.Position other) |
int |
getHighestNonAirBlock(IBlockReader worldIn) |
(package private) float |
getMagnitude() |
boolean |
isLocationSafe(IBlockReader worldIn) |
(package private) void |
normalize() |
void |
subtract(SpreadPlayersCommand.Position other) |
double getDistance(SpreadPlayersCommand.Position other)
void normalize()
float getMagnitude()
public void subtract(SpreadPlayersCommand.Position other)
public boolean clampWithinRange(double minX, double minZ, double maxX, double maxZ)
public int getHighestNonAirBlock(IBlockReader worldIn)
public boolean isLocationSafe(IBlockReader worldIn)
public void computeCoords(java.util.Random random, double minX, double minZ, double maxX, double maZx)