public class CommandSpreadPlayers extends CommandBase
Modifier and Type | Class and Description |
---|---|
(package private) static class |
CommandSpreadPlayers.Position |
CommandBase.CoordinateArg
Constructor and Description |
---|
CommandSpreadPlayers() |
Modifier and Type | Method and Description |
---|---|
private CommandSpreadPlayers.Position[] |
createInitialPositions(java.util.Random p_110670_1_,
int p_110670_2_,
double p_110670_3_,
double p_110670_5_,
double p_110670_7_,
double p_110670_9_) |
void |
execute(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args) |
java.lang.String |
getName() |
private int |
getNumberOfTeams(java.util.List<Entity> p_110667_1_) |
int |
getRequiredPermissionLevel() |
java.util.List<java.lang.String> |
getTabCompletions(MinecraftServer server,
ICommandSender sender,
java.lang.String[] args,
BlockPos targetPos) |
java.lang.String |
getUsage(ICommandSender sender) |
private double |
setPlayerPositions(java.util.List<Entity> p_110671_1_,
World worldIn,
CommandSpreadPlayers.Position[] p_110671_3_,
boolean p_110671_4_) |
private void |
spread(ICommandSender sender,
java.util.List<Entity> p_110669_2_,
CommandSpreadPlayers.Position pos,
double spreadDistance,
double maxRange,
World worldIn,
boolean respectTeams) |
private int |
spreadPositions(CommandSpreadPlayers.Position p_110668_1_,
double p_110668_2_,
World worldIn,
java.util.Random random,
double minX,
double minZ,
double maxX,
double maxZ,
CommandSpreadPlayers.Position[] p_110668_14_,
boolean respectTeams) |
buildString, checkPermission, compareTo, convertArgToBlockState, convertArgToBlockStatePredicate, doesStringStartWith, entityToNBT, getAliases, getBlockByText, getChatComponentFromNthArg, getChatComponentFromNthArg, getCommandSenderAsPlayer, getEntity, getEntity, getEntityList, getEntityName, getItemByText, getListOfStringsMatchingLastWord, getListOfStringsMatchingLastWord, getPlayer, getPlayerName, getPlayers, getTabCompletionCoordinate, getTabCompletionCoordinateXZ, isUsernameIndex, join, joinNiceString, joinNiceStringFromCollection, notifyCommandListener, notifyCommandListener, parseBlockPos, parseBoolean, parseCoordinate, parseCoordinate, parseDouble, parseDouble, parseDouble, parseDouble, parseDouble, parseInt, parseInt, parseInt, parseLong, parseLong, setCommandListener, toSyntaxException
public java.lang.String getName()
public int getRequiredPermissionLevel()
getRequiredPermissionLevel
in class CommandBase
public java.lang.String getUsage(ICommandSender sender)
public void execute(MinecraftServer server, ICommandSender sender, java.lang.String[] args) throws CommandException
CommandException
private void spread(ICommandSender sender, java.util.List<Entity> p_110669_2_, CommandSpreadPlayers.Position pos, double spreadDistance, double maxRange, World worldIn, boolean respectTeams) throws CommandException
CommandException
private int getNumberOfTeams(java.util.List<Entity> p_110667_1_)
private int spreadPositions(CommandSpreadPlayers.Position p_110668_1_, double p_110668_2_, World worldIn, java.util.Random random, double minX, double minZ, double maxX, double maxZ, CommandSpreadPlayers.Position[] p_110668_14_, boolean respectTeams) throws CommandException
CommandException
private double setPlayerPositions(java.util.List<Entity> p_110671_1_, World worldIn, CommandSpreadPlayers.Position[] p_110671_3_, boolean p_110671_4_)
private CommandSpreadPlayers.Position[] createInitialPositions(java.util.Random p_110670_1_, int p_110670_2_, double p_110670_3_, double p_110670_5_, double p_110670_7_, double p_110670_9_)
public java.util.List<java.lang.String> getTabCompletions(MinecraftServer server, ICommandSender sender, java.lang.String[] args, @Nullable BlockPos targetPos)
getTabCompletions
in interface ICommand
getTabCompletions
in class CommandBase