Class LocateCommand

java.lang.Object
net.minecraft.command.impl.LocateCommand

public class LocateCommand extends Object
  • Field Details

    • ERROR_FAILED

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED
  • Constructor Details

    • LocateCommand

      public LocateCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSource> p_198528_0_)
    • 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_)