Package net.minecraft.server.command
Class LocateCommand
java.lang.Object
net.minecraft.server.command.LocateCommand
- Mappings:
Namespace Name official aaz
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 com.mojang.brigadier.exceptions.DynamicCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static int
execute
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<ConfiguredStructureFeature<?, ?>> structureFeature) private static float
getDistance
(int x1, int y1, int x2, int y2) static void
register
(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) static int
sendCoordinates
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<?> structureFeature, BlockPos currentPos, com.mojang.datafixers.util.Pair<BlockPos, ? extends RegistryEntry<?>> structurePosAndEntry, String successMessage)
-
Field Details
-
FAILED_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FAILED_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Laaz;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_13666
Lnet/minecraft/class_3079;field_13666:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named FAILED_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType INVALID_EXCEPTION- Mappings:
Namespace Name Mixin selector official b
Laaz;b:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_37038
Lnet/minecraft/class_3079;field_37038:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named INVALID_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;INVALID_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
-
Constructor Details
-
LocateCommand
public LocateCommand()
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official a
Laaz;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, RegistryPredicateArgumentType.RegistryPredicate<ConfiguredStructureFeature<?, ?>> structureFeature) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Laaz;a(Ldm;Lel$b;)I
intermediary method_13457
Lnet/minecraft/class_3079;method_13457(Lnet/minecraft/class_2168;Lnet/minecraft/class_7066$class_7068;)I
named execute
Lnet/minecraft/server/command/LocateCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;)I
-
sendCoordinates
public static int sendCoordinates(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<?> structureFeature, BlockPos currentPos, com.mojang.datafixers.util.Pair<BlockPos, ? extends RegistryEntry<?>> structurePosAndEntry, String successMessage) - Mappings:
Namespace Name Mixin selector official a
Laaz;a(Ldm;Lel$b;Lgj;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;)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;)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;)I
-
getDistance
private static float getDistance(int x1, int y1, int x2, int y2) - Mappings:
Namespace Name Mixin selector official a
Laaz;a(IIII)F
intermediary method_13439
Lnet/minecraft/class_3079;method_13439(IIII)F
named getDistance
Lnet/minecraft/server/command/LocateCommand;getDistance(IIII)F
-