Package net.minecraft.server.command
Class LocateCommand
java.lang.Object
net.minecraft.server.command.LocateCommand
- Mappings:
Namespace Name official afp
intermediary net/minecraft/class_3079
named net/minecraft/server/command/LocateCommand
-
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 String
getKeyString
(com.mojang.datafixers.util.Pair<BlockPos, ? extends RegistryEntry<?>> result) 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 official a
Lafp;a:Lorg/slf4j/Logger;
intermediary field_41660
Lnet/minecraft/class_3079;field_41660:Lorg/slf4j/Logger;
named LOGGER
Lnet/minecraft/server/command/LocateCommand;LOGGER:Lorg/slf4j/Logger;
-
STRUCTURE_NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType STRUCTURE_NOT_FOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Lafp;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_39245
Lnet/minecraft/class_3079;field_39245:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named STRUCTURE_NOT_FOUND_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;STRUCTURE_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
STRUCTURE_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType STRUCTURE_INVALID_EXCEPTION- Mappings:
Namespace Name Mixin selector official c
Lafp;c:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_39246
Lnet/minecraft/class_3079;field_39246:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named STRUCTURE_INVALID_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;STRUCTURE_INVALID_EXCEPTION: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 official d
Lafp;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_39247
Lnet/minecraft/class_3079;field_39247:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named BIOME_NOT_FOUND_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;BIOME_NOT_FOUND_EXCEPTION: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 official e
Lafp;e:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_39249
Lnet/minecraft/class_3079;field_39249:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named POI_NOT_FOUND_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;POI_NOT_FOUND_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
LOCATE_STRUCTURE_RADIUS
private static final int LOCATE_STRUCTURE_RADIUS- See Also:
- Mappings:
Namespace Name Mixin selector official f
Lafp;f:I
intermediary field_39251
Lnet/minecraft/class_3079;field_39251:I
named LOCATE_STRUCTURE_RADIUS
Lnet/minecraft/server/command/LocateCommand;LOCATE_STRUCTURE_RADIUS:I
-
LOCATE_BIOME_RADIUS
private static final int LOCATE_BIOME_RADIUS- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lafp;g:I
intermediary field_39252
Lnet/minecraft/class_3079;field_39252:I
named LOCATE_BIOME_RADIUS
Lnet/minecraft/server/command/LocateCommand;LOCATE_BIOME_RADIUS:I
-
LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL
private static final int LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lafp;h:I
intermediary field_39253
Lnet/minecraft/class_3079;field_39253:I
named LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL
Lnet/minecraft/server/command/LocateCommand;LOCATE_BIOME_HORIZONTAL_BLOCK_CHECK_INTERVAL:I
-
LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL
private static final int LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lafp;i:I
intermediary field_39254
Lnet/minecraft/class_3079;field_39254:I
named LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL
Lnet/minecraft/server/command/LocateCommand;LOCATE_BIOME_VERTICAL_BLOCK_CHECK_INTERVAL:I
-
LOCATE_POI_RADIUS
private static final int LOCATE_POI_RADIUS- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lafp;j:I
intermediary field_39255
Lnet/minecraft/class_3079;field_39255:I
named LOCATE_POI_RADIUS
Lnet/minecraft/server/command/LocateCommand;LOCATE_POI_RADIUS: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 official a
Lafp;a(Lcom/mojang/brigadier/CommandDispatcher;Ldl;)V
intermediary method_13443
Lnet/minecraft/class_3079;method_13443(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/class_7157;)V
named register
Lnet/minecraft/server/command/LocateCommand;register(Lcom/mojang/brigadier/CommandDispatcher;Lnet/minecraft/command/CommandRegistryAccess;)V
-
getStructureListForPredicate
private static Optional<? extends RegistryEntryList.ListBacked<Structure>> getStructureListForPredicate(RegistryPredicateArgumentType.RegistryPredicate<Structure> predicate, Registry<Structure> structureRegistry) - Mappings:
Namespace Name Mixin selector official a
Lafp;a(Ler$c;Lhq;)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;
named getStructureListForPredicate
Lnet/minecraft/server/command/LocateCommand;getStructureListForPredicate(Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;Lnet/minecraft/registry/Registry;)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 official a
Lafp;a(Ldr;Ler$c;)I
intermediary method_43905
Lnet/minecraft/class_3079;method_43905(Lnet/minecraft/class_2168;Lnet/minecraft/class_7066$class_7068;)I
named executeLocateStructure
Lnet/minecraft/server/command/LocateCommand;executeLocateStructure(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;)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 official a
Lafp;a(Ldr;Leq$c;)I
intermediary method_43912
Lnet/minecraft/class_3079;method_43912(Lnet/minecraft/class_2168;Lnet/minecraft/class_7737$class_7741;)I
named executeLocateBiome
Lnet/minecraft/server/command/LocateCommand;executeLocateBiome(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;)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 official b
Lafp;b(Ldr;Leq$c;)I
intermediary method_43915
Lnet/minecraft/class_3079;method_43915(Lnet/minecraft/class_2168;Lnet/minecraft/class_7737$class_7741;)I
named executeLocatePoi
Lnet/minecraft/server/command/LocateCommand;executeLocatePoi(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryEntryPredicateArgumentType$EntryPredicate;)I
-
getKeyString
private static String getKeyString(com.mojang.datafixers.util.Pair<BlockPos, ? extends RegistryEntry<?>> result) - Mappings:
Namespace Name Mixin selector official a
Lafp;a(Lcom/mojang/datafixers/util/Pair;)Ljava/lang/String;
intermediary method_45147
Lnet/minecraft/class_3079;method_45147(Lcom/mojang/datafixers/util/Pair;)Ljava/lang/String;
named getKeyString
Lnet/minecraft/server/command/LocateCommand;getKeyString(Lcom/mojang/datafixers/util/Pair;)Ljava/lang/String;
-
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 official a
Lafp;a(Ldr;Leq$c;Lgt;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
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
-
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 official a
Lafp;a(Ldr;Ler$c;Lgt;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
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
-
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 official a
Lafp;a(Ldr;Lgt;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
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
-
getDistance
private static float getDistance(int x1, int y1, int x2, int y2) - Mappings:
Namespace Name Mixin selector official a
Lafp;a(IIII)F
intermediary method_13439
Lnet/minecraft/class_3079;method_13439(IIII)F
named getDistance
Lnet/minecraft/server/command/LocateCommand;getDistance(IIII)F
-