Package net.minecraft.server.command
Class SpreadPlayersCommand
java.lang.Object
net.minecraft.server.command.SpreadPlayersCommand
- Mappings:
- Namespace - Name - named - net/minecraft/server/command/SpreadPlayersCommand- intermediary - net/minecraft/class_3131- official - aou
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionTypeprivate static final int
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static intexecute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> players) private static doublegetMinDistance(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand.Pile[] piles, int maxY, boolean respectTeams) private static intgetPileCountRespectingTeams(Collection<? extends Entity> entities) private static SpreadPlayersCommand.Pile[]static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) private static voidspread(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int maxY, SpreadPlayersCommand.Pile[] piles, boolean respectTeams) 
- 
Field Details- 
MAX_ATTEMPTSprivate static final int MAX_ATTEMPTS- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - MAX_ATTEMPTS- Lnet/minecraft/server/command/SpreadPlayersCommand;MAX_ATTEMPTS:I- intermediary - field_33397- Lnet/minecraft/class_3131;field_33397:I- official - a- Laou;a:I
 
- 
FAILED_TEAMS_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType FAILED_TEAMS_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - FAILED_TEAMS_EXCEPTION- Lnet/minecraft/server/command/SpreadPlayersCommand;FAILED_TEAMS_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;- intermediary - field_13734- Lnet/minecraft/class_3131;field_13734:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;- official - b- Laou;b:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
 
- 
FAILED_ENTITIES_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType FAILED_ENTITIES_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - FAILED_ENTITIES_EXCEPTION- Lnet/minecraft/server/command/SpreadPlayersCommand;FAILED_ENTITIES_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;- intermediary - field_13735- Lnet/minecraft/class_3131;field_13735:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;- official - c- Laou;c:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
 
- 
INVALID_HEIGHT_EXCEPTIONprivate static final com.mojang.brigadier.exceptions.Dynamic2CommandExceptionType INVALID_HEIGHT_EXCEPTION- Mappings:
- Namespace - Name - Mixin selector - named - INVALID_HEIGHT_EXCEPTION- Lnet/minecraft/server/command/SpreadPlayersCommand;INVALID_HEIGHT_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- intermediary - field_36326- Lnet/minecraft/class_3131;field_36326:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;- official - d- Laou;d:Lcom/mojang/brigadier/exceptions/Dynamic2CommandExceptionType;
 
 
- 
- 
Constructor Details- 
SpreadPlayersCommandpublic SpreadPlayersCommand()
 
- 
- 
Method Details- 
register- Mappings:
- Namespace - Name - Mixin selector - named - register- Lnet/minecraft/server/command/SpreadPlayersCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V- intermediary - method_13654- Lnet/minecraft/class_3131;method_13654(Lcom/mojang/brigadier/CommandDispatcher;)V- official - a- Laou;a(Lcom/mojang/brigadier/CommandDispatcher;)V
 
- 
executeprivate static int execute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int maxY, boolean respectTeams, Collection<? extends Entity> players) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - execute- Lnet/minecraft/server/command/SpreadPlayersCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/Vec2f;FFIZLjava/util/Collection;)I- intermediary - method_13656- Lnet/minecraft/class_3131;method_13656(Lnet/minecraft/class_2168;Lnet/minecraft/class_241;FFIZLjava/util/Collection;)I- official - a- Laou;a(Lex;Lfba;FFIZLjava/util/Collection;)I
 
- 
getPileCountRespectingTeams- Mappings:
- Namespace - Name - Mixin selector - named - getPileCountRespectingTeams- Lnet/minecraft/server/command/SpreadPlayersCommand;getPileCountRespectingTeams(Ljava/util/Collection;)I- intermediary - method_13652- Lnet/minecraft/class_3131;method_13652(Ljava/util/Collection;)I- official - a- Laou;a(Ljava/util/Collection;)I
 
- 
spreadprivate static void spread(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int maxY, SpreadPlayersCommand.Pile[] piles, boolean respectTeams) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
- Namespace - Name - Mixin selector - named - spread- Lnet/minecraft/server/command/SpreadPlayersCommand;spread(Lnet/minecraft/util/math/Vec2f;DLnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/random/Random;DDDDI[Lnet/minecraft/server/command/SpreadPlayersCommand$Pile;Z)V- intermediary - method_13661- Lnet/minecraft/class_3131;method_13661(Lnet/minecraft/class_241;DLnet/minecraft/class_3218;Lnet/minecraft/class_5819;DDDDI[Lnet/minecraft/class_3131$class_3132;Z)V- official - a- Laou;a(Lfba;DLard;Lazh;DDDDI[Laou$a;Z)V
 
- 
getMinDistanceprivate static double getMinDistance(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand.Pile[] piles, int maxY, boolean respectTeams) - Mappings:
- Namespace - Name - Mixin selector - named - getMinDistance- Lnet/minecraft/server/command/SpreadPlayersCommand;getMinDistance(Ljava/util/Collection;Lnet/minecraft/server/world/ServerWorld;[Lnet/minecraft/server/command/SpreadPlayersCommand$Pile;IZ)D- intermediary - method_13657- Lnet/minecraft/class_3131;method_13657(Ljava/util/Collection;Lnet/minecraft/class_3218;[Lnet/minecraft/class_3131$class_3132;IZ)D- official - a- Laou;a(Ljava/util/Collection;Lard;[Laou$a;IZ)D
 
- 
makePilesprivate static SpreadPlayersCommand.Pile[] makePiles(Random random, int count, double minX, double minZ, double maxX, double maxZ) - Mappings:
- Namespace - Name - Mixin selector - named - makePiles- Lnet/minecraft/server/command/SpreadPlayersCommand;makePiles(Lnet/minecraft/util/math/random/Random;IDDDD)[Lnet/minecraft/server/command/SpreadPlayersCommand$Pile;- intermediary - method_13653- Lnet/minecraft/class_3131;method_13653(Lnet/minecraft/class_5819;IDDDD)[Lnet/minecraft/class_3131$class_3132;- official - a- Laou;a(Lazh;IDDDD)[Laou$a;
 
 
-