Package net.minecraft.server.commands
Class SpreadPlayersCommand
java.lang.Object
net.minecraft.server.commands.SpreadPlayersCommand
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
private static final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static SpreadPlayersCommand.Position[]
createInitialPositions
(Random p_138736_, int p_138737_, double p_138738_, double p_138739_, double p_138740_, double p_138741_) private static int
getNumberOfTeams
(Collection<? extends Entity> p_138728_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138697_) private static double
setPlayerPositions
(Collection<? extends Entity> p_138730_, ServerLevel p_138731_, SpreadPlayersCommand.Position[] p_138732_, int p_138733_, boolean p_138734_) private static int
spreadPlayers
(CommandSourceStack p_138703_, Vec2 p_138704_, float p_138705_, float p_138706_, int p_138707_, boolean p_138708_, Collection<? extends Entity> p_138709_) private static void
spreadPositions
(Vec2 p_138711_, double p_138712_, ServerLevel p_138713_, Random p_138714_, double p_138715_, double p_138716_, double p_138717_, double p_138718_, int p_138719_, SpreadPlayersCommand.Position[] p_138720_, boolean p_138721_)
-
Field Details
-
MAX_ITERATION_COUNT
private static final int MAX_ITERATION_COUNT- See Also:
-
ERROR_FAILED_TO_SPREAD_TEAMS
private static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType ERROR_FAILED_TO_SPREAD_TEAMS -
ERROR_FAILED_TO_SPREAD_ENTITIES
private static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType ERROR_FAILED_TO_SPREAD_ENTITIES -
ERROR_INVALID_MAX_HEIGHT
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType ERROR_INVALID_MAX_HEIGHT
-
-
Constructor Details
-
SpreadPlayersCommand
public SpreadPlayersCommand()
-
-
Method Details
-
register
-
spreadPlayers
private static int spreadPlayers(CommandSourceStack p_138703_, Vec2 p_138704_, float p_138705_, float p_138706_, int p_138707_, boolean p_138708_, Collection<? extends Entity> p_138709_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getNumberOfTeams
-
spreadPositions
private static void spreadPositions(Vec2 p_138711_, double p_138712_, ServerLevel p_138713_, Random p_138714_, double p_138715_, double p_138716_, double p_138717_, double p_138718_, int p_138719_, SpreadPlayersCommand.Position[] p_138720_, boolean p_138721_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setPlayerPositions
private static double setPlayerPositions(Collection<? extends Entity> p_138730_, ServerLevel p_138731_, SpreadPlayersCommand.Position[] p_138732_, int p_138733_, boolean p_138734_) -
createInitialPositions
private static SpreadPlayersCommand.Position[] createInitialPositions(Random p_138736_, int p_138737_, double p_138738_, double p_138739_, double p_138740_, double p_138741_)
-