类 LocateCommand


  • public class LocateCommand
    extends Object
    Mappings:
    Namespace Name
    official yp
    intermediary net/minecraft/class_3079
    named net/minecraft/server/command/LocateCommand
    • 字段详细资料

      • FAILED_EXCEPTION

        private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType FAILED_EXCEPTION
        Mappings:
        Namespace Name Mixin selector
        official a Lyp;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        intermediary field_13666 Lnet/minecraft/class_3079;field_13666:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
        named FAILED_EXCEPTION Lnet/minecraft/server/command/LocateCommand;FAILED_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
    • 构造器详细资料

      • LocateCommand

        public LocateCommand()
    • 方法详细资料

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
        Mappings:
        Namespace Name Mixin selector
        official a Lyp;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,
                                   StructureFeature<?> structure)
                            throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Lyp;a(Ldg;Lcsx;)I
        intermediary method_13457 Lnet/minecraft/class_3079;method_13457(Lnet/minecraft/class_2168;Lnet/minecraft/class_3195;)I
        named execute Lnet/minecraft/server/command/LocateCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/world/gen/feature/StructureFeature;)I
      • sendCoordinates

        public static int sendCoordinates​(ServerCommandSource source,
                                          String structure,
                                          BlockPos sourcePos,
                                          BlockPos structurePos,
                                          String successMessage)
        Mappings:
        Namespace Name Mixin selector
        official a Lyp;a(Ldg;Ljava/lang/String;Lgb;Lgb;Ljava/lang/String;)I
        intermediary method_24499 Lnet/minecraft/class_3079;method_24499(Lnet/minecraft/class_2168;Ljava/lang/String;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Ljava/lang/String;)I
        named sendCoordinates Lnet/minecraft/server/command/LocateCommand;sendCoordinates(Lnet/minecraft/server/command/ServerCommandSource;Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Ljava/lang/String;)I
      • getDistance

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