Class SpreadPlayersCommand.Position
java.lang.Object
net.minecraft.server.commands.SpreadPlayersCommand.Position
- Enclosing class:
SpreadPlayersCommand
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanclamp(double minX, double minZ, double maxX, double maxZ) (package private) doubledist(SpreadPlayersCommand.Position target) (package private) doubleintgetSpawnY(BlockGetter level, int maxHeight) booleanisSafe(BlockGetter level, int maxHeight) void(package private) voidvoidrandomize(RandomSource random, double minX, double minZ, double maxX, double maxZ)
-
Field Details
-
x
private double x -
z
private double z
-
-
Constructor Details
-
Position
private Position()
-
-
Method Details
-
dist
-
normalize
void normalize() -
getLength
double getLength() -
moveAway
-
clamp
public boolean clamp(double minX, double minZ, double maxX, double maxZ) -
getSpawnY
-
isSafe
-
randomize
-