Package net.minecraft.server.command
Class SpreadPlayersCommand
java.lang.Object
net.minecraft.server.command.SpreadPlayersCommand
public class SpreadPlayersCommand extends Object
- Mappings:
Namespace Name official yz
intermediary net/minecraft/class_3131
named net/minecraft/server/command/SpreadPlayersCommand
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
SpreadPlayersCommand.Pile
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType
FAILED_ENTITIES_EXCEPTION
private static com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType
FAILED_TEAMS_EXCEPTION
-
Constructor Summary
Constructors Constructor Description SpreadPlayersCommand()
-
Method Summary
Modifier and Type Method Description private static int
execute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int int2, boolean bool, Collection<? extends Entity> collection)
private static double
getMinDistance(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand.Pile[] piles, int int2, boolean bool)
private static int
getPileCountRespectingTeams(Collection<? extends Entity> entities)
private static SpreadPlayersCommand.Pile[]
makePiles(Random random, int count, double minX, double minZ, double maxX, double maxZ)
static void
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static void
spread(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int int2, SpreadPlayersCommand.Pile[] pile, boolean bool)
-
Field Details
-
FAILED_TEAMS_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType FAILED_TEAMS_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lyz;a:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
intermediary field_13734
Lnet/minecraft/class_3131;field_13734:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
named FAILED_TEAMS_EXCEPTION
Lnet/minecraft/server/command/SpreadPlayersCommand;FAILED_TEAMS_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
-
FAILED_ENTITIES_EXCEPTION
private static final com.mojang.brigadier.exceptions.Dynamic4CommandExceptionType FAILED_ENTITIES_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Lyz;b:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
intermediary field_13735
Lnet/minecraft/class_3131;field_13735:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
named FAILED_ENTITIES_EXCEPTION
Lnet/minecraft/server/command/SpreadPlayersCommand;FAILED_ENTITIES_EXCEPTION:Lcom/mojang/brigadier/exceptions/Dynamic4CommandExceptionType;
-
-
Constructor Details
-
SpreadPlayersCommand
public SpreadPlayersCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)- Mappings:
Namespace Name Mixin selector official a
Lyz;a(Lcom/mojang/brigadier/CommandDispatcher;)V
intermediary method_13654
Lnet/minecraft/class_3131;method_13654(Lcom/mojang/brigadier/CommandDispatcher;)V
named register
Lnet/minecraft/server/command/SpreadPlayersCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
execute
private static int execute(ServerCommandSource source, Vec2f center, float spreadDistance, float maxRange, int int2, boolean bool, Collection<? extends Entity> collection) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lyz;a(Ldb;Ldit;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
named execute
Lnet/minecraft/server/command/SpreadPlayersCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/Vec2f;FFIZLjava/util/Collection;)I
-
getPileCountRespectingTeams
- Mappings:
Namespace Name Mixin selector official a
Lyz;a(Ljava/util/Collection;)I
intermediary method_13652
Lnet/minecraft/class_3131;method_13652(Ljava/util/Collection;)I
named getPileCountRespectingTeams
Lnet/minecraft/server/command/SpreadPlayersCommand;getPileCountRespectingTeams(Ljava/util/Collection;)I
-
spread
private static void spread(Vec2f center, double spreadDistance, ServerWorld world, Random random, double minX, double minZ, double maxX, double maxZ, int int2, SpreadPlayersCommand.Pile[] pile, boolean bool) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lyz;a(Ldit;DLaav;Ljava/util/Random;DDDDI[Lyz$a;Z)V
intermediary method_13661
Lnet/minecraft/class_3131;method_13661(Lnet/minecraft/class_241;DLnet/minecraft/class_3218;Ljava/util/Random;DDDDI[Lnet/minecraft/class_3131$class_3132;Z)V
named spread
Lnet/minecraft/server/command/SpreadPlayersCommand;spread(Lnet/minecraft/util/math/Vec2f;DLnet/minecraft/server/world/ServerWorld;Ljava/util/Random;DDDDI[Lnet/minecraft/server/command/SpreadPlayersCommand$Pile;Z)V
-
getMinDistance
private static double getMinDistance(Collection<? extends Entity> entities, ServerWorld world, SpreadPlayersCommand.Pile[] piles, int int2, boolean bool)- Mappings:
Namespace Name Mixin selector official a
Lyz;a(Ljava/util/Collection;Laav;[Lyz$a;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
named getMinDistance
Lnet/minecraft/server/command/SpreadPlayersCommand;getMinDistance(Ljava/util/Collection;Lnet/minecraft/server/world/ServerWorld;[Lnet/minecraft/server/command/SpreadPlayersCommand$Pile;IZ)D
-
makePiles
private static SpreadPlayersCommand.Pile[] makePiles(Random random, int count, double minX, double minZ, double maxX, double maxZ)- Mappings:
Namespace Name Mixin selector official a
Lyz;a(Ljava/util/Random;IDDDD)[Lyz$a;
intermediary method_13653
Lnet/minecraft/class_3131;method_13653(Ljava/util/Random;IDDDD)[Lnet/minecraft/class_3131$class_3132;
named makePiles
Lnet/minecraft/server/command/SpreadPlayersCommand;makePiles(Ljava/util/Random;IDDDD)[Lnet/minecraft/server/command/SpreadPlayersCommand$Pile;
-