Uses of Enum Class
net.minecraft.world.GameMode
Packages that use GameMode
Package
Description
-
Uses of GameMode in net.minecraft.client
Fields in net.minecraft.client declared as GameModeModifier and TypeFieldDescriptionprivate final GameModeQuickPlayLogger.Log.gameModeThe field for thegameModerecord component.Methods in net.minecraft.client that return GameModeModifier and TypeMethodDescriptionQuickPlayLogger.Log.gameMode()Returns the value of thegameModerecord component.Constructors in net.minecraft.client with parameters of type GameModeModifierConstructorDescription(package private)Log(QuickPlayLogger.QuickPlayWorld quickPlayWorld, Instant instant, GameMode gameMode) -
Uses of GameMode in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as GameModeModifier and TypeFieldDescription(package private) final GameModeGameModeSwitcherScreen.GameModeSelection.gameModeprivate GameModeOpenToLanScreen.gameModeMethods in net.minecraft.client.gui.screen that return GameModeMethods in net.minecraft.client.gui.screen with parameters of type GameModeModifier and TypeMethodDescription(package private) static GameModeSwitcherScreen.GameModeSelectionConstructors in net.minecraft.client.gui.screen with parameters of type GameModeModifierConstructorDescriptionprivateGameModeSelection(Text text, GameMode gameMode, ItemStack icon) -
Uses of GameMode in net.minecraft.client.gui.screen.world
Fields in net.minecraft.client.gui.screen.world declared as GameModeConstructors in net.minecraft.client.gui.screen.world with parameters of type GameMode -
Uses of GameMode in net.minecraft.client.network
Fields in net.minecraft.client.network declared as GameModeModifier and TypeFieldDescriptionprivate GameModeClientPlayerInteractionManager.gameModeprivate GameModePlayerListEntry.gameModeClientPlayerInteractionManager.previousGameModeMethods in net.minecraft.client.network that return GameModeModifier and TypeMethodDescriptionClientPlayerInteractionManager.getCurrentGameMode()AbstractClientPlayerEntity.getGameMode()PlayerListEntry.getGameMode()ClientPlayerInteractionManager.getPreviousGameMode()Methods in net.minecraft.client.network with parameters of type GameModeModifier and TypeMethodDescriptionvoidClientPlayerEntity.onGameModeChanged(GameMode gameMode) voidClientPlayerInteractionManager.setGameMode(GameMode gameMode) protected voidPlayerListEntry.setGameMode(GameMode gameMode) voidClientPlayerInteractionManager.setGameModes(GameMode gameMode, @Nullable GameMode previousGameMode) -
Uses of GameMode in net.minecraft.client.realms.dto
Methods in net.minecraft.client.realms.dto with parameters of type GameModeModifier and TypeMethodDescriptionstatic RealmsWorldOptionsRealmsWorldOptions.create(GameMode gameMode, Difficulty difficulty, boolean bool, String string, String string2) -
Uses of GameMode in net.minecraft.client.realms.gui.screen
Fields in net.minecraft.client.realms.gui.screen declared as GameModeFields in net.minecraft.client.realms.gui.screen with type parameters of type GameMode -
Uses of GameMode in net.minecraft.client.session.telemetry
Methods in net.minecraft.client.session.telemetry with parameters of type GameModeModifier and TypeMethodDescriptionvoidWorldLoadedEvent.setGameMode(GameMode gameMode, boolean hardcore) voidWorldSession.setGameMode(GameMode gameMode, boolean hardcore) -
Uses of GameMode in net.minecraft.command.argument
Fields in net.minecraft.command.argument declared as GameModeMethods in net.minecraft.command.argument that return GameModeModifier and TypeMethodDescriptionstatic GameModeGameModeArgumentType.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
Methods in net.minecraft.entity.player that return GameModeMethods in net.minecraft.entity.player with parameters of type GameModeModifier and TypeMethodDescriptionbooleanPlayerEntity.isBlockBreakingRestricted(World world, BlockPos pos, GameMode gameMode) -
Uses of GameMode in net.minecraft.network.packet.c2s.play
Fields in net.minecraft.network.packet.c2s.play declared as GameModeModifier and TypeFieldDescriptionprivate final GameModeChangeGameModeC2SPacket.modeThe field for themoderecord component.Methods in net.minecraft.network.packet.c2s.play that return GameModeModifier and TypeMethodDescriptionChangeGameModeC2SPacket.mode()Returns the value of themoderecord component.Constructors in net.minecraft.network.packet.c2s.play with parameters of type GameMode -
Uses of GameMode in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as GameModeModifier and TypeFieldDescriptionprivate final GameModeCommonPlayerSpawnInfo.gameModeThe field for thegameModerecord component.private final GameModePlayerListS2CPacket.Entry.gameModeThe field for thegameModerecord component.(package private) GameModePlayerListS2CPacket.Serialized.gameModeCommonPlayerSpawnInfo.lastGameModeThe field for thelastGameModerecord component.Methods in net.minecraft.network.packet.s2c.play that return GameModeModifier and TypeMethodDescriptionCommonPlayerSpawnInfo.gameMode()Returns the value of thegameModerecord component.PlayerListS2CPacket.Entry.gameMode()Returns the value of thegameModerecord component.CommonPlayerSpawnInfo.lastGameMode()Returns the value of thelastGameModerecord component.Constructors in net.minecraft.network.packet.s2c.play with parameters of type GameModeModifierConstructorDescriptionCommonPlayerSpawnInfo(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, boolean bool2, int int3, PublicPlayerSession.Serialized serialized) -
Uses of GameMode in net.minecraft.server
Methods in net.minecraft.server that return GameModeModifier and TypeMethodDescriptionMinecraftServer.getDefaultGameMode()MinecraftServer.getForcedGameMode()Returns the game mode a player should be set to when connecting to the server, ornullif none is set.Methods in net.minecraft.server with parameters of type GameModeModifier and TypeMethodDescriptionintMinecraftServer.changeGameModeGlobally(@Nullable GameMode gameMode) booleanOpens a server for LAN connections.voidMinecraftServer.setDefaultGameMode(GameMode gameMode) -
Uses of GameMode in net.minecraft.server.command
Methods in net.minecraft.server.command with parameters of type GameModeModifier and TypeMethodDescriptionprivate static intDefaultGameModeCommand.execute(ServerCommandSource source, GameMode defaultGameMode) private static intGameModeCommand.execute(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, Collection<ServerPlayerEntity> targets, GameMode gameMode) private static booleanGameModeCommand.execute(ServerCommandSource source, ServerPlayerEntity target, GameMode gameMode) static voidGameModeCommand.execute(ServerPlayerEntity target, GameMode gameMode) private static intPublishCommand.execute(ServerCommandSource source, int port, boolean allowCommands, @Nullable GameMode gameMode) private static voidGameModeCommand.sendFeedback(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) -
Uses of GameMode in net.minecraft.server.dedicated
Fields in net.minecraft.server.dedicated with type parameters of type GameModeMethods in net.minecraft.server.dedicated that return GameModeModifier and TypeMethodDescriptionMinecraftDedicatedServer.getForcedGameMode()Returns the game mode a player should be set to when connecting to the server, ornullif none is set.MinecraftDedicatedServer.getGameMode()Methods in net.minecraft.server.dedicated with parameters of type GameMode -
Uses of GameMode in net.minecraft.server.dedicated.management.dispatch
Methods in net.minecraft.server.dedicated.management.dispatch that return GameModeModifier and TypeMethodDescriptionstatic GameModePropertiesRpcDispatcher.getGameMode(ManagementHandlerDispatcher dispatcher) static GameModePropertiesRpcDispatcher.setGameMode(ManagementHandlerDispatcher dispatcher, GameMode gameMode, ManagementConnectionId remote) Methods in net.minecraft.server.dedicated.management.dispatch with parameters of type GameModeModifier and TypeMethodDescriptionstatic GameModePropertiesRpcDispatcher.setGameMode(ManagementHandlerDispatcher dispatcher, GameMode gameMode, ManagementConnectionId remote) -
Uses of GameMode in net.minecraft.server.dedicated.management.handler
Methods in net.minecraft.server.dedicated.management.handler that return GameModeModifier and TypeMethodDescriptionPropertiesManagementHandler.getGameMode()PropertiesManagementHandlerImpl.getGameMode()PropertiesManagementHandler.setGameMode(GameMode gameMode, ManagementConnectionId remote) PropertiesManagementHandlerImpl.setGameMode(GameMode gameMode, ManagementConnectionId remote) Methods in net.minecraft.server.dedicated.management.handler with parameters of type GameModeModifier and TypeMethodDescriptionPropertiesManagementHandler.setGameMode(GameMode gameMode, ManagementConnectionId remote) PropertiesManagementHandlerImpl.setGameMode(GameMode gameMode, ManagementConnectionId remote) -
Uses of GameMode in net.minecraft.server.integrated
Fields in net.minecraft.server.integrated declared as GameModeMethods in net.minecraft.server.integrated that return GameModeModifier and TypeMethodDescriptionIntegratedServer.getForcedGameMode()Returns the game mode a player should be set to when connecting to the server, ornullif none is set.Methods in net.minecraft.server.integrated with parameters of type GameModeModifier and TypeMethodDescriptionbooleanOpens a server for LAN connections.voidIntegratedServer.setDefaultGameMode(GameMode gameMode) -
Uses of GameMode in net.minecraft.server.network
Fields in net.minecraft.server.network declared as GameModeModifier and TypeFieldDescriptionprivate GameModeServerPlayerInteractionManager.gameModeServerPlayerInteractionManager.previousGameModeMethods in net.minecraft.server.network that return GameModeModifier and TypeMethodDescriptionServerPlayerEntity.gameModeFromData(ReadView view, String key) ServerPlayerEntity.getGameMode()ServerPlayerInteractionManager.getGameMode()ServerPlayerInteractionManager.getPreviousGameMode()private GameModeServerPlayerEntity.getServerGameMode(@Nullable GameMode backupGameMode) Returns the server game mode the player should be set to, namely the forced game mode.Methods in net.minecraft.server.network with parameters of type GameModeModifier and TypeMethodDescriptionbooleanServerPlayerEntity.changeGameMode(GameMode gameMode) booleanServerPlayerInteractionManager.changeGameMode(GameMode gameMode) Checks if current game mode is different togameMode, and change it if so.private GameModeServerPlayerEntity.getServerGameMode(@Nullable GameMode backupGameMode) Returns the server game mode the player should be set to, namely the forced game mode.protected voidServerPlayerInteractionManager.setGameMode(GameMode gameMode, @Nullable GameMode previousGameMode) -
Uses of GameMode in net.minecraft.test
Methods in net.minecraft.test with parameters of type GameMode -
Uses of GameMode in net.minecraft.world
Fields in net.minecraft.world declared as GameModeFields in net.minecraft.world with type parameters of type GameModeModifier and TypeFieldDescriptionstatic final StringIdentifiable.EnumCodec<GameMode> GameMode.CODECGameModeList.gameModesThe field for thegameModesrecord component.static final com.mojang.serialization.Codec<GameMode> GameMode.INDEX_CODECDeprecated.private static final IntFunction<GameMode> GameMode.INDEX_MAPPERstatic final PacketCodec<ByteBuf, GameMode> GameMode.PACKET_CODECMethods in net.minecraft.world that return GameModeModifier and TypeMethodDescriptionstatic GameModestatic GameModeGameMode.byIndex(int index) SaveProperties.getGameMode()GameMode.getOrNull(int index) static GameModeReturns 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.Methods in net.minecraft.world that return types with arguments of type GameModeModifier and TypeMethodDescriptionGameModeList.gameModes()Returns the value of thegameModesrecord component.Methods in net.minecraft.world with parameters of type GameModeModifier and TypeMethodDescriptionbooleanstatic intstatic GameModeListvoidSaveProperties.setGameMode(GameMode gameMode) Constructor parameters in net.minecraft.world with type arguments of type GameMode -
Uses of GameMode in net.minecraft.world.level
Fields in net.minecraft.world.level declared as GameModeMethods in net.minecraft.world.level that return GameModeModifier and TypeMethodDescriptionLevelInfo.getGameMode()LevelProperties.getGameMode()ServerWorldProperties.getGameMode()UnmodifiableLevelProperties.getGameMode()Methods in net.minecraft.world.level with parameters of type GameModeModifier and TypeMethodDescriptionvoidLevelProperties.setGameMode(GameMode gameMode) voidServerWorldProperties.setGameMode(GameMode gameMode) voidUnmodifiableLevelProperties.setGameMode(GameMode gameMode) LevelInfo.withGameMode(GameMode mode) Constructors in net.minecraft.world.level with parameters of type GameModeModifierConstructorDescriptionLevelInfo(String name, GameMode gameMode, boolean hardcore, Difficulty difficulty, boolean allowCommands, GameRules gameRules, DataConfiguration dataConfiguration) -
Uses of GameMode in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage that return GameMode