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,
StructureFeature<?> structureFeature) |
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 source,
String structure,
BlockPos sourcePos,
BlockPos structurePos,
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, StructureFeature<?> structureFeature)
public static int sendCoordinates(ServerCommandSource source, String structure, BlockPos sourcePos, BlockPos structurePos, String successMessage)
private static float getDistance(int x1, int y1, int x2, int y2)