public class LocateCommand extends Object
Modifier and Type | Field and Description |
---|---|
private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
FAILED_EXCEPTION |
Constructor and Description |
---|
LocateCommand() |
Modifier and Type | Method and Description |
---|---|
private static int |
execute(ServerCommandSource source,
String structure) |
private static float |
getDistance(int x1,
int y1,
int x2,
int y2) |
static void |
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) |
static int |
sendCoordinates(ServerCommandSource serverCommandSource,
String string,
BlockPos blockPos,
BlockPos blockPos2,
String successMessage) |
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static int execute(ServerCommandSource source, String structure) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static int sendCoordinates(ServerCommandSource serverCommandSource, String string, BlockPos blockPos, BlockPos blockPos2, String successMessage)
private static float getDistance(int x1, int y1, int x2, int y2)