Package net.minecraft.command.impl
Class LocateCommand
java.lang.Object
net.minecraft.command.impl.LocateCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static float
dist
(int p_211907_0_, int p_211907_1_, int p_211907_2_, int p_211907_3_) private static int
locate
(CommandSource p_241053_0_, Structure<?> p_241053_1_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198528_0_) static int
showLocateResult
(CommandSource p_241054_0_, String p_241054_1_, BlockPos p_241054_2_, BlockPos p_241054_3_, String p_241054_4_)
-
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(CommandSource p_241053_0_, Structure<?> p_241053_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
showLocateResult
public static int showLocateResult(CommandSource p_241054_0_, String p_241054_1_, BlockPos p_241054_2_, BlockPos p_241054_3_, String p_241054_4_) -
dist
private static float dist(int p_211907_0_, int p_211907_1_, int p_211907_2_, int p_211907_3_)
-