类 GameModeCommand
java.lang.Object
net.minecraft.server.commands.GameModeCommand
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static void
logGamemodeChange
(CommandSourceStack p_137738_, ServerPlayer p_137739_, GameType p_137740_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_137730_) private static boolean
setGameMode
(CommandSourceStack p_426080_, ServerPlayer p_425520_, GameType p_426186_) static void
setGameMode
(ServerPlayer p_425812_, GameType p_425591_) private static int
setMode
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137732_, Collection<ServerPlayer> p_137733_, GameType p_137734_)
-
字段详细资料
-
PERMISSION_LEVEL
public static final int PERMISSION_LEVEL- 另请参阅:
-
-
构造器详细资料
-
GameModeCommand
public GameModeCommand()
-
-
方法详细资料
-
register
-
logGamemodeChange
private static void logGamemodeChange(CommandSourceStack p_137738_, ServerPlayer p_137739_, GameType p_137740_) -
setMode
private static int setMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137732_, Collection<ServerPlayer> p_137733_, GameType p_137734_) -
setGameMode
-
setGameMode
private static boolean setGameMode(CommandSourceStack p_426080_, ServerPlayer p_425520_, GameType p_426186_)
-