类 GameModeCommand
- java.lang.Object
-
- net.minecraft.server.command.GameModeCommand
-
public class GameModeCommand extends Object
- Mappings:
Namespace Name official ygintermediary net/minecraft/class_3064named net/minecraft/server/command/GameModeCommand
-
-
字段概要
字段 修饰符和类型 字段 说明 static intfield_33393
-
构造器概要
构造器 构造器 说明 GameModeCommand()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 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)
-
-
-
字段详细资料
-
field_33393
public static final int field_33393
- 另请参阅:
- 常量字段值
- Mappings:
Namespace Name Mixin selector official aLyg;a:Iintermediary field_33393Lnet/minecraft/class_3064;field_33393:Inamed field_33393Lnet/minecraft/server/command/GameModeCommand;field_33393:I
-
-
方法详细资料
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
- Mappings:
Namespace Name Mixin selector official aLyg;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 aLyg;a(Ldg;Labk;Lbvo;)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 aLyg;a(Lcom/mojang/brigadier/context/CommandContext;Ljava/util/Collection;Lbvo;)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
-
-