Class LocateCommand


  • public class LocateCommand
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED  
    • Constructor Summary

      Constructors 
      Constructor Description
      LocateCommand()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private 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_, java.lang.String p_241054_1_, BlockPos p_241054_2_, BlockPos p_241054_3_, java.lang.String p_241054_4_)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ERROR_FAILED

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

      • LocateCommand

        public LocateCommand()
    • Method Detail

      • 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_,
                                           java.lang.String p_241054_1_,
                                           BlockPos p_241054_2_,
                                           BlockPos p_241054_3_,
                                           java.lang.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_)