Package net.minecraft.server.command
Class LocateCommand
java.lang.Object
net.minecraft.server.command.LocateCommand
public class LocateCommand extends Object
-
Field Summary
Fields Modifier and Type Field Description private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
FAILED_EXCEPTION
-
Constructor Summary
Constructors Constructor Description LocateCommand()
-
Method Summary
Modifier and Type Method 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)
-
Field Details
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
-
-
Constructor Details
-
LocateCommand
public LocateCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) -
execute
-
sendCoordinates
public static int sendCoordinates(ServerCommandSource source, String structure, BlockPos sourcePos, BlockPos structurePos, String successMessage) -
getDistance
private static float getDistance(int x1, int y1, int x2, int y2)
-