Uses of Enum Class
net.minecraft.world.GameMode
Package
Description
-
Uses of GameMode in net.minecraft.client
Modifier and TypeFieldDescriptionprivate final GameMode
QuickPlayLogger.Log.gameMode
The field for thegameMode
record component.Modifier and TypeMethodDescriptionQuickPlayLogger.Log.gameMode()
Returns the value of thegameMode
record component.ModifierConstructorDescription(package private)
Log
(QuickPlayLogger.QuickPlayWorld quickPlayWorld, Instant instant, GameMode gameMode) -
Uses of GameMode in net.minecraft.client.gui.screen
Modifier and TypeMethodDescription(package private) static GameModeSelectionScreen.GameModeSelection
-
Uses of GameMode in net.minecraft.client.gui.screen.world
-
Uses of GameMode in net.minecraft.client.network
Modifier and TypeFieldDescriptionprivate GameMode
ClientPlayerInteractionManager.gameMode
private GameMode
PlayerListEntry.gameMode
ClientPlayerInteractionManager.previousGameMode
Modifier and TypeMethodDescriptionClientPlayerInteractionManager.getCurrentGameMode()
PlayerListEntry.getGameMode()
ClientPlayerInteractionManager.getPreviousGameMode()
Modifier and TypeMethodDescriptionvoid
ClientPlayerEntity.onGameModeChanged
(GameMode gameMode) void
ClientPlayerInteractionManager.setGameMode
(GameMode gameMode) protected void
PlayerListEntry.setGameMode
(GameMode gameMode) void
ClientPlayerInteractionManager.setGameModes
(GameMode gameMode, @Nullable GameMode previousGameMode) -
Uses of GameMode in net.minecraft.client.realms.dto
Modifier and TypeMethodDescriptionstatic RealmsWorldOptions
RealmsWorldOptions.create
(GameMode gameMode, Difficulty difficulty, boolean hardcore, String version, String slotName) -
Uses of GameMode in net.minecraft.client.realms.gui.screen
-
Uses of GameMode in net.minecraft.client.session.telemetry
Modifier and TypeMethodDescriptionvoid
WorldLoadedEvent.setGameMode
(GameMode gameMode, boolean hardcore) void
WorldSession.setGameMode
(GameMode gameMode, boolean hardcore) -
Uses of GameMode in net.minecraft.command.argument
Modifier and TypeMethodDescriptionstatic GameMode
GameModeArgumentType.getGameMode
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, String name) GameModeArgumentType.parse
(com.mojang.brigadier.StringReader stringReader) -
Uses of GameMode in net.minecraft.entity.player
Modifier and TypeMethodDescriptionboolean
PlayerEntity.isBlockBreakingRestricted
(World world, BlockPos pos, GameMode gameMode) -
Uses of GameMode in net.minecraft.network.packet.s2c.play
Modifier and TypeFieldDescriptionprivate final GameMode
CommonPlayerSpawnInfo.gameMode
The field for thegameMode
record component.private final GameMode
PlayerListS2CPacket.Entry.gameMode
The field for thegameMode
record component.(package private) GameMode
PlayerListS2CPacket.Serialized.gameMode
CommonPlayerSpawnInfo.prevGameMode
The field for theprevGameMode
record component.Modifier and TypeMethodDescriptionCommonPlayerSpawnInfo.gameMode()
Returns the value of thegameMode
record component.PlayerListS2CPacket.Entry.gameMode()
Returns the value of thegameMode
record component.CommonPlayerSpawnInfo.prevGameMode()
Returns the value of theprevGameMode
record component.ModifierConstructorDescriptionCommonPlayerSpawnInfo
(RegistryEntry<DimensionType> registryEntry, RegistryKey<World> registryKey, long long2, GameMode gameMode, @Nullable GameMode gameMode2, boolean bool, boolean bool2, Optional<GlobalPos> optional, int int2, int int3) Entry
(UUID uUID, @Nullable com.mojang.authlib.GameProfile gameProfile, boolean bool, int int2, GameMode gameMode, @Nullable Text text, int int3, PublicPlayerSession.Serialized serialized) -
Uses of GameMode in net.minecraft.server
Modifier and TypeMethodDescriptionMinecraftServer.getDefaultGameMode()
MinecraftServer.getForcedGameMode()
Returns the game mode a player should be set to when connecting to the server, ornull
if none is set.Modifier and TypeMethodDescriptionboolean
Opens a server for LAN connections.void
MinecraftServer.setDefaultGameMode
(GameMode gameMode) -
Uses of GameMode in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
DefaultGameModeCommand.execute
(ServerCommandSource source, GameMode defaultGameMode) private static int
GameModeCommand.execute
(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode) private static int
PublishCommand.execute
(ServerCommandSource source, int port, boolean allowCommands, @Nullable GameMode gameMode) private static void
GameModeCommand.sendFeedback
(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) -
Uses of GameMode in net.minecraft.server.dedicated
Modifier and TypeMethodDescriptionMinecraftDedicatedServer.getForcedGameMode()
Returns the game mode a player should be set to when connecting to the server, ornull
if none is set. -
Uses of GameMode in net.minecraft.server.integrated
Modifier and TypeMethodDescriptionIntegratedServer.getForcedGameMode()
Returns the game mode a player should be set to when connecting to the server, ornull
if none is set.Modifier and TypeMethodDescriptionboolean
Opens a server for LAN connections.void
IntegratedServer.setDefaultGameMode
(GameMode gameMode) -
Uses of GameMode in net.minecraft.server.network
Modifier and TypeFieldDescriptionprivate GameMode
ServerPlayerInteractionManager.gameMode
ServerPlayerInteractionManager.previousGameMode
Modifier and TypeMethodDescriptionServerPlayerEntity.gameModeFromNbt
(@Nullable NbtCompound nbt, String key) ServerPlayerInteractionManager.getGameMode()
ServerPlayerInteractionManager.getPreviousGameMode()
private GameMode
ServerPlayerEntity.getServerGameMode
(@Nullable GameMode backupGameMode) Returns the server game mode the player should be set to, namely the forced game mode.Modifier and TypeMethodDescriptionboolean
ServerPlayerEntity.changeGameMode
(GameMode gameMode) boolean
ServerPlayerInteractionManager.changeGameMode
(GameMode gameMode) Checks if current game mode is different togameMode
, and change it if so.private GameMode
ServerPlayerEntity.getServerGameMode
(@Nullable GameMode backupGameMode) Returns the server game mode the player should be set to, namely the forced game mode.protected void
ServerPlayerInteractionManager.setGameMode
(GameMode gameMode, @Nullable GameMode previousGameMode) -
Uses of GameMode in net.minecraft.test
-
Uses of GameMode in net.minecraft.world
Modifier and TypeFieldDescriptionprivate static final IntFunction
<GameMode> GameMode.BY_ID
static final StringIdentifiable.EnumCodec
<GameMode> GameMode.CODEC
GameModeList.gameModes
The field for thegameModes
record component.Modifier and TypeMethodDescriptionstatic GameMode
GameMode.byId
(int id) static GameMode
SaveProperties.getGameMode()
GameMode.getOrNull
(int id) static GameMode
Returns the enum constant of this class with the specified name.static GameMode[]
GameMode.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionGameModeList.gameModes()
Returns the value of thegameModes
record component.Modifier and TypeMethodDescriptionboolean
static int
static GameModeList
void
SaveProperties.setGameMode
(GameMode gameMode) -
Uses of GameMode in net.minecraft.world.level
Modifier and TypeMethodDescriptionLevelInfo.getGameMode()
LevelProperties.getGameMode()
ServerWorldProperties.getGameMode()
UnmodifiableLevelProperties.getGameMode()
Modifier and TypeMethodDescriptionvoid
LevelProperties.setGameMode
(GameMode gameMode) void
ServerWorldProperties.setGameMode
(GameMode gameMode) void
UnmodifiableLevelProperties.setGameMode
(GameMode gameMode) LevelInfo.withGameMode
(GameMode mode) ModifierConstructorDescriptionLevelInfo
(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataConfiguration dataConfiguration) -
Uses of GameMode in net.minecraft.world.level.storage