Class LocateCommand

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/server/command/LocateCommand;LOGGER:Lorg/slf4j/Logger;
      intermediary field_41660 Lnet/minecraft/class_3079;field_41660:Lorg/slf4j/Logger;
      official a Laor;a:Lorg/slf4j/Logger;
    • STRUCTURE_NOT_FOUND_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType STRUCTURE_NOT_FOUND_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named STRUCTURE_NOT_FOUND_EXCEPTION Lnet/minecraft/server/command/LocateCommand;STRUCTURE_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_39245 Lnet/minecraft/class_3079;field_39245:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official b Laor;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • STRUCTURE_INVALID_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType STRUCTURE_INVALID_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named STRUCTURE_INVALID_EXCEPTION Lnet/minecraft/server/command/LocateCommand;STRUCTURE_INVALID_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_39246 Lnet/minecraft/class_3079;field_39246:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official c Laor;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • BIOME_NOT_FOUND_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType BIOME_NOT_FOUND_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named BIOME_NOT_FOUND_EXCEPTION Lnet/minecraft/server/command/LocateCommand;BIOME_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_39247 Lnet/minecraft/class_3079;field_39247:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official d Laor;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • POI_NOT_FOUND_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType POI_NOT_FOUND_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named POI_NOT_FOUND_EXCEPTION Lnet/minecraft/server/command/LocateCommand;POI_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_39249 Lnet/minecraft/class_3079;field_39249:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official e Laor;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • LOCATE_STRUCTURE_RADIUS

      private static final int LOCATE_STRUCTURE_RADIUS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOCATE_STRUCTURE_RADIUS Lnet/minecraft/server/command/LocateCommand;LOCATE_STRUCTURE_RADIUS:I
      intermediary field_39251 Lnet/minecraft/class_3079;field_39251:I
      official f Laor;f:I
    • LOCATE_BIOME_RADIUS

      private static final int LOCATE_BIOME_RADIUS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOCATE_BIOME_RADIUS Lnet/minecraft/server/command/LocateCommand;LOCATE_BIOME_RADIUS:I
      intermediary field_39252 Lnet/minecraft/class_3079;field_39252:I
      official g Laor;g:I
    • LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL

      private static final int LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL Lnet/minecraft/server/command/LocateCommand;LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL:I
      intermediary field_39253 Lnet/minecraft/class_3079;field_39253:I
      official h Laor;h:I
    • LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL

      private static final int LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL Lnet/minecraft/server/command/LocateCommand;LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL:I
      intermediary field_39254 Lnet/minecraft/class_3079;field_39254:I
      official i Laor;i:I
    • LOCATE_POI_RADIUS

      private static final int LOCATE_POI_RADIUS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named LOCATE_POI_RADIUS Lnet/minecraft/server/command/LocateCommand;LOCATE_POI_RADIUS:I
      intermediary field_39255 Lnet/minecraft/class_3079;field_39255:I
      official j Laor;j:I
  • Constructor Details

    • LocateCommand

      public LocateCommand()
  • Method Details

    • register

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

      private static Optional<? extends RegistryEntryList.ListBacked<Structure>> getStructureListForPredicate(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry)
      Mappings:
      Namespace Name Mixin selector
      named getStructureListForPredicate Lnet/minecraft/server/command/LocateCommand;getStructureListForPredicate(Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;Lnet/minecraft/registry/Registry;)Ljava/util/Optional;
      intermediary method_43907 Lnet/minecraft/class_3079;method_43907(Lnet/minecraft/class_7066$class_7068;Lnet/minecraft/class_2378;)Ljava/util/Optional;
      official a Laor;a(Lga$c;Lkd;)Ljava/util/Optional;
    • executeLocateStructure

      private static int executeLocateStructure(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named executeLocateStructure Lnet/minecraft/server/command/LocateCommand;executeLocateStructure(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;)I
      intermediary method_43905 Lnet/minecraft/class_3079;method_43905(Lnet/minecraft/class_2168;Lnet/minecraft/class_7066$class_7068;)I
      official a Laor;a(Lew;Lga$c;)I
    • executeLocateBiome

      private static int executeLocateBiome(ServerCommandSource source, RegistryEntryPredicateArgumentType.EntryPredicate<Biome> predicate) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named executeLocateBiome Lnet/minecraft/server/command/LocateCommand;executeLocateBiome(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;)I
      intermediary method_43912 Lnet/minecraft/class_3079;method_43912(Lnet/minecraft/class_2168;Lnet/minecraft/class_7737$class_7741;)I
      official a Laor;a(Lew;Lfz$c;)I
    • executeLocatePoi

      private static int executeLocatePoi(ServerCommandSource source, RegistryEntryPredicateArgumentType.EntryPredicate<PointOfInterestType> predicate) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      named executeLocatePoi Lnet/minecraft/server/command/LocateCommand;executeLocatePoi(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;)I
      intermediary method_43915 Lnet/minecraft/class_3079;method_43915(Lnet/minecraft/class_2168;Lnet/minecraft/class_7737$class_7741;)I
      official b Laor;b(Lew;Lfz$c;)I
    • sendCoordinates

      public static int sendCoordinates(ServerCommandSource source, RegistryEntryPredicateArgumentType.EntryPredicate<?> predicate, BlockPos currentPos, com.mojang.datafixers.util.Pair<BlockPos,? extends RegistryEntry<?>> result, String successMessage, boolean includeY, Duration timeTaken)
      Mappings:
      Namespace Name Mixin selector
      named sendCoordinates Lnet/minecraft/server/command/LocateCommand;sendCoordinates(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;Lnet/minecraft/util/math/BlockPos;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/time/Duration;)I
      intermediary method_45148 Lnet/minecraft/class_3079;method_45148(Lnet/minecraft/class_2168;Lnet/minecraft/class_7737$class_7741;Lnet/minecraft/class_2338;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/time/Duration;)I
      official a Laor;a(Lew;Lfz$c;Ljh;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/time/Duration;)I
    • sendCoordinates

      public static int sendCoordinates(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<?> structure, BlockPos currentPos, com.mojang.datafixers.util.Pair<BlockPos,? extends RegistryEntry<?>> result, String successMessage, boolean includeY, Duration timeTaken)
      Mappings:
      Namespace Name Mixin selector
      named sendCoordinates Lnet/minecraft/server/command/LocateCommand;sendCoordinates(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;Lnet/minecraft/util/math/BlockPos;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/time/Duration;)I
      intermediary method_24499 Lnet/minecraft/class_3079;method_24499(Lnet/minecraft/class_2168;Lnet/minecraft/class_7066$class_7068;Lnet/minecraft/class_2338;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/time/Duration;)I
      official a Laor;a(Lew;Lga$c;Ljh;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/time/Duration;)I
    • sendCoordinates

      private static int sendCoordinates(ServerCommandSource source, BlockPos currentPos, com.mojang.datafixers.util.Pair<BlockPos,? extends RegistryEntry<?>> result, String successMessage, boolean includeY, String entryString, Duration timeTaken)
      Mappings:
      Namespace Name Mixin selector
      named sendCoordinates Lnet/minecraft/server/command/LocateCommand;sendCoordinates(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/math/BlockPos;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/lang/String;Ljava/time/Duration;)I
      intermediary method_45149 Lnet/minecraft/class_3079;method_45149(Lnet/minecraft/class_2168;Lnet/minecraft/class_2338;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/lang/String;Ljava/time/Duration;)I
      official a Laor;a(Lew;Ljh;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;ZLjava/lang/String;Ljava/time/Duration;)I
    • getDistance

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