Package net.minecraft.server.commands
Class LocateCommand
java.lang.Object
net.minecraft.server.commands.LocateCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static float
dist(int p_137854_, int p_137855_, int p_137856_, int p_137857_)
private static int
locate(CommandSourceStack p_137863_, StructureFeature<?> p_137864_)
static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137859_)
static int
showLocateResult(CommandSourceStack p_137866_, String p_137867_, BlockPos p_137868_, BlockPos p_137869_, String p_137870_)
-
Field Details
-
ERROR_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED
-
-
Constructor Details
-
LocateCommand
public LocateCommand()
-
-
Method Details
-
register
-
locate
private static int locate(CommandSourceStack p_137863_, StructureFeature<?> p_137864_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
showLocateResult
public static int showLocateResult(CommandSourceStack p_137866_, String p_137867_, BlockPos p_137868_, BlockPos p_137869_, String p_137870_) -
dist
private static float dist(int p_137854_, int p_137855_, int p_137856_, int p_137857_)
-