Package net.minecraft.server.commands
Class LocateCommand
java.lang.Object
net.minecraft.server.commands.LocateCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
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_207515_, ResourceOrTagLocationArgument.Result<ConfiguredStructureFeature<?, ?>> p_207516_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137859_) static int
showLocateResult
(CommandSourceStack p_207518_, ResourceOrTagLocationArgument.Result<?> p_207519_, BlockPos p_207520_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_207521_, String p_207522_)
-
Field Details
-
ERROR_FAILED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_FAILED -
ERROR_INVALID
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_INVALID
-
-
Constructor Details
-
LocateCommand
public LocateCommand()
-
-
Method Details
-
register
-
locate
private static int locate(CommandSourceStack p_207515_, ResourceOrTagLocationArgument.Result<ConfiguredStructureFeature<?, ?>> p_207516_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
showLocateResult
public static int showLocateResult(CommandSourceStack p_207518_, ResourceOrTagLocationArgument.Result<?> p_207519_, BlockPos p_207520_, com.mojang.datafixers.util.Pair<BlockPos, ? extends Holder<?>> p_207521_, String p_207522_) -
dist
private static float dist(int p_137854_, int p_137855_, int p_137856_, int p_137857_)
-