Package net.minecraft.server.command
Class LocateCommand
java.lang.Object
net.minecraft.server.command.LocateCommand
- Mappings:
Namespace Name named net/minecraft/server/command/LocateCommand
intermediary net/minecraft/class_3079
official ani
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final int
private static final int
private static final int
private static final int
private static final int
private static final Logger
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
executeLocateBiome
(ServerCommandSource source, RegistryEntryPredicateArgumentType.EntryPredicate<Biome> predicate) private static int
executeLocatePoi
(ServerCommandSource source, RegistryEntryPredicateArgumentType.EntryPredicate<PointOfInterestType> predicate) private static int
executeLocateStructure
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate) private static float
getDistance
(int x1, int y1, int x2, int y2) private static Optional
<? extends RegistryEntryList.ListBacked<Structure>> getStructureListForPredicate
(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry) static void
register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher, CommandRegistryAccess registryAccess) 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) 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) 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)
-
Field Details
-
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
Lani;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
Lani;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
Lani;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
Lani;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
Lani;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
Lani;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
Lani;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
Lani;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
Lani;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
Lani;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
Lani;a(Lcom/mojang/brigadier/CommandDispatcher;Lep;)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
Lani;a(Lfx$c;Ljz;)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
Lani;a(Let;Lfx$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
Lani;a(Let;Lfw$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
Lani;b(Let;Lfw$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
Lani;a(Let;Lfw$c;Ljd;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
Lani;a(Let;Lfx$c;Ljd;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
Lani;a(Let;Ljd;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
Lani;a(IIII)F
-