Package net.minecraft.server.command
Class GameModeCommand
java.lang.Object
net.minecraft.server.command.GameModeCommand
public class GameModeCommand extends Object
- Mappings:
Namespace Name official xsintermediary net/minecraft/class_3064named net/minecraft/server/command/GameModeCommand
-
Constructor Summary
Constructors Constructor Description GameModeCommand() -
Method Summary
Modifier and Type Method Description private static intexecute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)private static voidsetGameMode(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode)
-
Constructor Details
-
GameModeCommand
public GameModeCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)- Mappings:
Namespace Name Mixin selector official aLxs;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_13388Lnet/minecraft/class_3064;method_13388(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/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 aLxs;a(Ldb;Laaw;Lbts;)Vintermediary method_13390Lnet/minecraft/class_3064;method_13390(Lnet/minecraft/class_2168;Lnet/minecraft/class_3222;Lnet/minecraft/class_1934;)Vnamed setGameModeLnet/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 aLxs;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lbts;)Iintermediary method_13387Lnet/minecraft/class_3064;method_13387(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lnet/minecraft/class_1934;)Inamed executeLnet/minecraft/server/command/GameModeCommand;execute(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lnet/minecraft/world/GameMode;)I
-