net.minecraft.server.command

public class SpreadPlayersCommand

net.minecraft.server.commands.SpreadPlayersCommand
net.minecraft.class_3131
net.minecraft.server.command.SpreadPlayersCommand

Field summary

Modifier and TypeField
private static final int
MAX_ITERATION_COUNT
field_33397
MAX_ATTEMPTS
private static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType
ERROR_FAILED_TO_SPREAD_TEAMS
field_13734
FAILED_TEAMS_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType
ERROR_FAILED_TO_SPREAD_ENTITIES
field_13735
FAILED_ENTITIES_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType
ERROR_INVALID_MAX_HEIGHT
field_36326
INVALID_HEIGHT_EXCEPTION

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
method_13654(com.mojang.brigadier.CommandDispatcher<class_2168> arg0)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int
spreadPlayers(CommandSourceStack source, Vec2 center, float spreadDistance, float maxRange, int maxHeight, boolean respectTeams, Collection<? extends Entity> entities)
method_13656(class_2168 arg0, class_241 arg1, float arg2, float arg3, int arg4, boolean arg5, Collection<? extends class_1297> arg6)
execute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> targets)
private static int
getNumberOfTeams(Collection<? extends Entity> players)
method_13652(Collection<? extends class_1297> arg0)
getPileCountRespectingTeams(Collection<? extends Entity> entities)
private static void
spreadPositions(Vec2 center, double spreadDist, ServerLevel level, RandomSource random, double minX, double minZ, double maxX, double maxZ, int maxHeight, SpreadPlayersCommand$Position[] positions, boolean respectTeams)
method_13661(class_241 arg0, double arg1, class_3218 arg2, class_5819 arg3, double arg4, double arg5, double arg6, double arg7, int arg8, class_3131$class_3132[] arg9, boolean arg10)
spread(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int maxY, SpreadPlayersCommand$Pile[] piles, boolean respectTeams)
private static double
setPlayerPositions(Collection<? extends Entity> entities, ServerLevel level, SpreadPlayersCommand$Position[] positions, int maxHeight, boolean respectTeams)
method_13657(Collection<? extends class_1297> arg0, class_3218 arg1, class_3131$class_3132[] arg2, int arg3, boolean arg4)
teleport(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand$Pile[] piles, int maxY, boolean respectTeams)
private static SpreadPlayersCommand$Pile[]
createInitialPositions(RandomSource random, int count, double minX, double minZ, double maxX, double maxZ)
method_13653(class_5819 arg0, int arg1, double arg2, double arg3, double arg4, double arg5)
makePiles(Random random, int count, double minX, double minZ, double maxX, double maxZ)
private static Text
lambda$spreadPlayers$0(boolean arg0, SpreadPlayersCommand$Position[] arg1, Vec2 arg2, double arg3)
method_52084(boolean arg0, class_3131$class_3132[] arg1, class_241 arg2, double arg3)
method_52084(boolean arg0, SpreadPlayersCommand$Pile[] arg1, Vec2f arg2, double arg3)
private static int
lambda$register$1(com.mojang.brigadier.context.CommandContext arg0)
method_29193(com.mojang.brigadier.context.CommandContext arg0)
method_29193(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$0(com.mojang.brigadier.context.CommandContext arg0)
method_13658(com.mojang.brigadier.context.CommandContext arg0)
method_13658(com.mojang.brigadier.context.CommandContext context)
private static com.mojang.brigadier.Message
lambda$static$2(Object arg0, Object arg1)
method_39991(Object arg0, Object arg1)
method_39991(Object maxY, Object worldBottomY)
private static com.mojang.brigadier.Message
lambda$static$1(Object arg0, Object arg1, Object arg2, Object arg3)
method_13660(Object arg0, Object arg1, Object arg2, Object arg3)
method_13660(Object pilesCount, Object x, Object z, Object maxSpreadDistance)
private static com.mojang.brigadier.Message
lambda$static$0(Object arg0, Object arg1, Object arg2, Object arg3)
method_13655(Object arg0, Object arg1, Object arg2, Object arg3)
method_13655(Object pilesCount, Object x, Object z, Object maxSpreadDistance)