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) doubledist(SpreadPlayersCommand.Position target) doubleintgetSpawnY(BlockGetter level, int maxHeight) booleanisSafe(BlockGetter level, int maxHeight) voidvoidvoidrandomize(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
public void normalize() -
getLength
public double getLength() -
moveAway
-
clamp
public boolean clamp(double minX, double minZ, double maxX, double maxZ) -
getSpawnY
-
isSafe
-
randomize
-