类 GiveCommand


  • public class GiveCommand
    extends Object
    Mappings:
    Namespace Name
    official yi
    intermediary net/minecraft/class_3068
    named net/minecraft/server/command/GiveCommand
    • 字段详细资料

      • field_33394

        public static final int field_33394
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official a Lyi;a:I
        intermediary field_33394 Lnet/minecraft/class_3068;field_33394:I
        named field_33394 Lnet/minecraft/server/command/GiveCommand;field_33394:I
    • 构造器详细资料

      • GiveCommand

        public GiveCommand()
    • 方法详细资料

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
        Mappings:
        Namespace Name Mixin selector
        official a Lyi;a(Lcom/mojang/brigadier/CommandDispatcher;)V
        intermediary method_13402 Lnet/minecraft/class_3068;method_13402(Lcom/mojang/brigadier/CommandDispatcher;)V
        named register Lnet/minecraft/server/command/GiveCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
      • execute

        private static int execute​(ServerCommandSource source,
                                   ItemStackArgument item,
                                   Collection<ServerPlayerEntity> targets,
                                   int count)
                            throws com.mojang.brigadier.exceptions.CommandSyntaxException
        抛出:
        com.mojang.brigadier.exceptions.CommandSyntaxException
        Mappings:
        Namespace Name Mixin selector
        official a Lyi;a(Ldg;Lfc;Ljava/util/Collection;I)I
        intermediary method_13401 Lnet/minecraft/class_3068;method_13401(Lnet/minecraft/class_2168;Lnet/minecraft/class_2290;Ljava/util/Collection;I)I
        named execute Lnet/minecraft/server/command/GiveCommand;execute(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/command/argument/ItemStackArgument;Ljava/util/Collection;I)I