Package net.minecraft.server.commands
Class SpreadPlayersCommand.Position
java.lang.Object
net.minecraft.server.commands.SpreadPlayersCommand.Position
- Enclosing class:
SpreadPlayersCommand
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
clamp
(double p_138754_, double p_138755_, double p_138756_, double p_138757_) (package private) double
dist
(SpreadPlayersCommand.Position p_138768_) (package private) double
int
getSpawnY
(BlockGetter p_138759_, int p_138760_) boolean
isSafe
(BlockGetter p_138774_, int p_138775_) void
moveAway
(SpreadPlayersCommand.Position p_138777_) (package private) void
void
randomize
(RandomSource p_214753_, double p_214754_, double p_214755_, double p_214756_, double p_214757_)
-
Field Details
-
x
double x -
z
double z
-
-
Constructor Details
-
Position
Position()
-
-
Method Details
-
dist
-
normalize
void normalize() -
getLength
double getLength() -
moveAway
-
clamp
public boolean clamp(double p_138754_, double p_138755_, double p_138756_, double p_138757_) -
getSpawnY
-
isSafe
-
randomize
public void randomize(RandomSource p_214753_, double p_214754_, double p_214755_, double p_214756_, double p_214757_)
-