Package net.minecraft.server.command
Class LocateCommand
java.lang.Object
net.minecraft.server.command.LocateCommand
- Mappings:
Namespace Name official acq
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
private static final int
private static final int
private static final int
private static final int
private static final int
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
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, RegistryPredicateArgumentType.RegistryPredicate<Biome> predicate) private static int
executeLocatePoi
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<PointOfInterestType> predicate) private static int
executeLocateStructure
(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<StructureType> predicate) private static float
getDistance
(int x1, int y1, int x2, int y2) private static Optional<? extends RegistryEntryList.ListBacked<StructureType>>
getStructureListForPredicate
(RegistryPredicateArgumentType.RegistryPredicate<StructureType> predicate, Registry<StructureType> structureTypeRegistry) 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, boolean bool)
-
Field Details
-
STRUCTURE_NOT_FOUND_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType STRUCTURE_NOT_FOUND_EXCEPTION- Mappings:
Namespace Name Mixin selector official a
Lacq;a: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 b
Lacq;b: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 c
Lacq;c: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;
-
BIOME_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType BIOME_INVALID_EXCEPTION- Mappings:
Namespace Name Mixin selector official d
Lacq;d:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_39248
Lnet/minecraft/class_3079;field_39248:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named BIOME_INVALID_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;BIOME_INVALID_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
Lacq;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;
-
POI_INVALID_EXCEPTION
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType POI_INVALID_EXCEPTION- Mappings:
Namespace Name Mixin selector official f
Lacq;f:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
intermediary field_39250
Lnet/minecraft/class_3079;field_39250:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
named POI_INVALID_EXCEPTION
Lnet/minecraft/server/command/LocateCommand;POI_INVALID_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
-
field_39251
private static final int field_39251- See Also:
- Mappings:
Namespace Name Mixin selector official g
Lacq;g:I
intermediary field_39251
Lnet/minecraft/class_3079;field_39251:I
named field_39251
Lnet/minecraft/server/command/LocateCommand;field_39251:I
-
field_39252
private static final int field_39252- See Also:
- Mappings:
Namespace Name Mixin selector official h
Lacq;h:I
intermediary field_39252
Lnet/minecraft/class_3079;field_39252:I
named field_39252
Lnet/minecraft/server/command/LocateCommand;field_39252:I
-
field_39253
private static final int field_39253- See Also:
- Mappings:
Namespace Name Mixin selector official i
Lacq;i:I
intermediary field_39253
Lnet/minecraft/class_3079;field_39253:I
named field_39253
Lnet/minecraft/server/command/LocateCommand;field_39253:I
-
field_39254
private static final int field_39254- See Also:
- Mappings:
Namespace Name Mixin selector official j
Lacq;j:I
intermediary field_39254
Lnet/minecraft/class_3079;field_39254:I
named field_39254
Lnet/minecraft/server/command/LocateCommand;field_39254:I
-
field_39255
private static final int field_39255- See Also:
- Mappings:
Namespace Name Mixin selector official k
Lacq;k:I
intermediary field_39255
Lnet/minecraft/class_3079;field_39255:I
named field_39255
Lnet/minecraft/server/command/LocateCommand;field_39255:I
-
-
Constructor Details
-
LocateCommand
public LocateCommand()
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official a
Lacq;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
-
getStructureListForPredicate
private static Optional<? extends RegistryEntryList.ListBacked<StructureType>> getStructureListForPredicate(RegistryPredicateArgumentType.RegistryPredicate<StructureType> predicate, Registry<StructureType> structureTypeRegistry) - Mappings:
Namespace Name Mixin selector official a
Lacq;a(Ler$c;Lhm;)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/util/registry/Registry;)Ljava/util/Optional;
-
executeLocateStructure
private static int executeLocateStructure(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<StructureType> predicate) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official a
Lacq;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, RegistryPredicateArgumentType.RegistryPredicate<Biome> predicate) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official b
Lacq;b(Ldr;Ler$c;)I
intermediary method_43912
Lnet/minecraft/class_3079;method_43912(Lnet/minecraft/class_2168;Lnet/minecraft/class_7066$class_7068;)I
named executeLocateBiome
Lnet/minecraft/server/command/LocateCommand;executeLocateBiome(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/RegistryPredicateArgumentType$RegistryPredicate;)I
-
executeLocatePoi
private static int executeLocatePoi(ServerCommandSource source, RegistryPredicateArgumentType.RegistryPredicate<PointOfInterestType> predicate) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
- Mappings:
Namespace Name Mixin selector official c
Lacq;c(Ldr;Ler$c;)I
intermediary method_43915
Lnet/minecraft/class_3079;method_43915(Lnet/minecraft/class_2168;Lnet/minecraft/class_7066$class_7068;)I
named executeLocatePoi
Lnet/minecraft/server/command/LocateCommand;executeLocatePoi(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, boolean bool) - Mappings:
Namespace Name Mixin selector official a
Lacq;a(Ldr;Ler$c;Lgt;Lcom/mojang/datafixers/util/Pair;Ljava/lang/String;Z)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;Z)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;Z)I
-
getDistance
private static float getDistance(int x1, int y1, int x2, int y2) - Mappings:
Namespace Name Mixin selector official a
Lacq;a(IIII)F
intermediary method_13439
Lnet/minecraft/class_3079;method_13439(IIII)F
named getDistance
Lnet/minecraft/server/command/LocateCommand;getDistance(IIII)F
-