net.minecraft.server.command

public class GameModeCommand

net.minecraft.server.commands.GameModeCommand
net.minecraft.class_3064
net.minecraft.server.command.GameModeCommand

Field summary

Modifier and TypeField
public static final PermissionCheck
PERMISSION_CHECK
field_63167
PERMISSION_CHECK

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static void
register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher)
method_13388(com.mojang.brigadier.CommandDispatcher<class_2168> arg0)
register(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher)
private static void
logGamemodeChange(CommandSourceStack source, ServerPlayer target, GameType newType)
method_13390(class_2168 arg0, class_3222 arg1, class_1934 arg2)
sendFeedback(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode)
private static int
setMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> context, Collection<ServerPlayer> players, GameType type)
method_13387(com.mojang.brigadier.context.CommandContext<class_2168> arg0, Collection<class_3222> arg1, class_1934 arg2)
execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode)
public static void
setGameMode(ServerPlayer player, GameType type)
method_71688(class_3222 arg0, class_1934 arg1)
execute(ServerPlayerEntity target, GameMode gameMode)
private static boolean
setGameMode(CommandSourceStack source, ServerPlayer player, GameType type)
method_71689(class_2168 arg0, class_3222 arg1, class_1934 arg2)
execute(ServerCommandSource source, ServerPlayerEntity target, GameMode gameMode)
private static Text
lambda$logGamemodeChange$3(ServerPlayer arg0, Component arg1)
method_51987(class_3222 arg0, class_2561 arg1)
method_51987(ServerPlayerEntity arg0, Text arg1)
private static Text
lambda$logGamemodeChange$2(Component arg0)
method_51988(class_2561 arg0)
method_51988(Text arg0)
private static int
lambda$register$1(com.mojang.brigadier.context.CommandContext arg0)
method_13386(com.mojang.brigadier.context.CommandContext arg0)
method_13386(com.mojang.brigadier.context.CommandContext context)
private static int
lambda$register$0(com.mojang.brigadier.context.CommandContext arg0)
method_13391(com.mojang.brigadier.context.CommandContext arg0)
method_13391(com.mojang.brigadier.context.CommandContext context)