类 GameModeCommand


  • public class GameModeCommand
    extends Object
    Mappings:
    Namespace Name
    official yg
    intermediary net/minecraft/class_3064
    named net/minecraft/server/command/GameModeCommand
    • 字段详细资料

      • field_33393

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

      • GameModeCommand

        public GameModeCommand()
    • 方法详细资料

      • register

        public static void register​(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
        Mappings:
        Namespace Name Mixin selector
        official a Lyg;a(Lcom/mojang/brigadier/CommandDispatcher;)V
        intermediary method_13388 Lnet/minecraft/class_3064;method_13388(Lcom/mojang/brigadier/CommandDispatcher;)V
        named register Lnet/minecraft/server/command/GameModeCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
      • setGameMode

        private static void setGameMode​(ServerCommandSource source,
                                        ServerPlayerEntity player,
                                        GameMode gameMode)
        Mappings:
        Namespace Name Mixin selector
        official a Lyg;a(Ldg;Labk;Lbvo;)V
        intermediary method_13390 Lnet/minecraft/class_3064;method_13390(Lnet/minecraft/class_2168;Lnet/minecraft/class_3222;Lnet/minecraft/class_1934;)V
        named setGameMode Lnet/minecraft/server/command/GameModeCommand;setGameMode(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/server/network/ServerPlayerEntity;Lnet/minecraft/world/GameMode;)V
      • execute

        private static int execute​(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context,
                                   Collection<ServerPlayerEntity> targets,
                                   GameMode gameMode)
        Mappings:
        Namespace Name Mixin selector
        official a Lyg;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lbvo;)I
        intermediary method_13387 Lnet/minecraft/class_3064;method_13387(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lnet/minecraft/class_1934;)I
        named execute Lnet/minecraft/server/command/GameModeCommand;execute(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lnet/minecraft/world/GameMode;)I