Class LocateCommand

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

public class LocateCommand extends Object
Mappings:
Namespace Name
official aam
intermediary net/minecraft/class_3079
named net/minecraft/server/command/LocateCommand
  • Field Details

    • FAILED_EXCEPTION

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Laam;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      intermediary field_13666 Lnet/minecraft/class_3079;field_13666:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
      named FAILED_EXCEPTION Lnet/minecraft/server/command/LocateCommand;FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
  • Constructor Details

    • LocateCommand

      public LocateCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
      Mappings:
      Namespace Name Mixin selector
      official a Laam;a(Lcom/mojang/brigadier/CommandDispatcher;)V
      intermediary method_13443 Lnet/minecraft/class_3079;method_13443(Lcom/mojang/brigadier/CommandDispatcher;)V
      named register Lnet/minecraft/server/command/LocateCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
    • execute

      private static int execute(ServerCommandSource source, StructureFeature<?> structure) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Laam;a(Ldm;Lcyi;)I
      intermediary method_13457 Lnet/minecraft/class_3079;method_13457(Lnet/minecraft/class_2168;Lnet/minecraft/class_3195;)I
      named execute Lnet/minecraft/server/command/LocateCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/world/gen/feature/StructureFeature;)I
    • sendCoordinates

      public static int sendCoordinates(ServerCommandSource source, String structure, BlockPos sourcePos, BlockPos structurePos, String successMessage)
      Mappings:
      Namespace Name Mixin selector
      official a Laam;a(Ldm;Ljava/lang/String;Lgh;Lgh;Ljava/lang/String;)I
      intermediary method_24499 Lnet/minecraft/class_3079;method_24499(Lnet/minecraft/class_2168;Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Ljava/lang/String;)I
      named sendCoordinates Lnet/minecraft/server/command/LocateCommand;sendCoordinates(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Ljava/lang/String;)I
    • getDistance

      private static float getDistance(int x1, int y1, int x2, int y2)
      Mappings:
      Namespace Name Mixin selector
      official a Laam;a(IIII)F
      intermediary method_13439 Lnet/minecraft/class_3079;method_13439(IIII)F
      named getDistance Lnet/minecraft/server/command/LocateCommand;getDistance(IIII)F