Uses of Enum Class
net.minecraft.world.level.GameType
Packages that use GameType
Package
Description
Events fired only on the client-side, chiefly related to rendering and user interfaces (screens and input).
-
Uses of GameType in com.mojang.realmsclient.gui.screens
Fields in com.mojang.realmsclient.gui.screens declared as GameTypeFields in com.mojang.realmsclient.gui.screens with type parameters of type GameType -
Uses of GameType in net.minecraft.advancements.critereon
Fields in net.minecraft.advancements.critereon declared as GameTypeModifier and TypeFieldDescriptionprivate GameTypePlayerPredicate.Builder.gameTypeprivate final GameTypePlayerPredicate.gameTypeMethods in net.minecraft.advancements.critereon with parameters of type GameTypeConstructors in net.minecraft.advancements.critereon with parameters of type GameTypeModifierConstructorDescription(package private)PlayerPredicate(MinMaxBounds.Ints p_156746_, GameType p_156747_, Map<Stat<?>, MinMaxBounds.Ints> p_156748_, it.unimi.dsi.fastutil.objects.Object2BooleanMap<ResourceLocation> p_156749_, Map<ResourceLocation, PlayerPredicate.AdvancementPredicate> p_156750_, EntityPredicate p_156751_) -
Uses of GameType in net.minecraft.client.gui.screens
Fields in net.minecraft.client.gui.screens declared as GameType -
Uses of GameType in net.minecraft.client.gui.screens.debug
Methods in net.minecraft.client.gui.screens.debug that return GameTypeMethods in net.minecraft.client.gui.screens.debug with parameters of type GameTypeModifier and TypeMethodDescription(package private) static Optional<GameModeSwitcherScreen.GameModeIcon>GameModeSwitcherScreen.GameModeIcon.getFromGameType(GameType p_97613_) -
Uses of GameType in net.minecraft.client.gui.screens.worldselection
Fields in net.minecraft.client.gui.screens.worldselection declared as GameTypeModifier and TypeFieldDescription(package private) final GameTypeCreateWorldScreen.SelectedGameMode.gameTypeConstructors in net.minecraft.client.gui.screens.worldselection with parameters of type GameType -
Uses of GameType in net.minecraft.client.multiplayer
Fields in net.minecraft.client.multiplayer declared as GameTypeModifier and TypeFieldDescriptionprivate GameTypePlayerInfo.gameModeprivate GameTypeMultiPlayerGameMode.localPlayerModeprivate GameTypeMultiPlayerGameMode.previousLocalPlayerModeMethods in net.minecraft.client.multiplayer that return GameTypeModifier and TypeMethodDescriptionPlayerInfo.getGameMode()MultiPlayerGameMode.getPlayerMode()MultiPlayerGameMode.getPreviousPlayerMode()Methods in net.minecraft.client.multiplayer with parameters of type GameTypeModifier and TypeMethodDescriptionprotected voidPlayerInfo.setGameMode(GameType p_105318_) voidMultiPlayerGameMode.setLocalMode(GameType p_105280_) voidMultiPlayerGameMode.setLocalMode(GameType p_171806_, GameType p_171807_) -
Uses of GameType in net.minecraft.client.server
Fields in net.minecraft.client.server declared as GameTypeMethods in net.minecraft.client.server that return GameTypeMethods in net.minecraft.client.server with parameters of type GameTypeModifier and TypeMethodDescriptionbooleanIntegratedServer.publishServer(GameType p_120041_, boolean p_120042_, int p_120043_) voidIntegratedServer.setDefaultGameType(GameType p_120039_) -
Uses of GameType in net.minecraft.client.telemetry
Methods in net.minecraft.client.telemetry with parameters of type GameTypeModifier and TypeMethodDescriptionvoidWorldSessionTelemetryManager.onPlayerInfoReceived(GameType p_261768_, boolean p_261669_) -
Uses of GameType in net.minecraft.client.telemetry.events
Methods in net.minecraft.client.telemetry.events with parameters of type GameTypeModifier and TypeMethodDescriptionvoidWorldLoadEvent.setGameMode(GameType p_261852_, boolean p_261831_) -
Uses of GameType in net.minecraft.commands.arguments
Fields in net.minecraft.commands.arguments declared as GameTypeMethods in net.minecraft.commands.arguments that return GameTypeModifier and TypeMethodDescriptionstatic GameTypeGameModeArgument.getGameMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_259927_, String p_260246_) GameModeArgument.parse(com.mojang.brigadier.StringReader p_260111_) -
Uses of GameType in net.minecraft.network.protocol.game
Fields in net.minecraft.network.protocol.game declared as GameTypeModifier and TypeFieldDescriptionprivate final GameTypeClientboundPlayerInfoUpdatePacket.Entry.gameModeThe field for thegameModerecord component.(package private) GameTypeClientboundPlayerInfoUpdatePacket.EntryBuilder.gameModeprivate final GameTypeClientboundLoginPacket.gameTypeThe field for thegameTyperecord component.private final GameTypeClientboundRespawnPacket.playerGameTypeprivate final GameTypeClientboundLoginPacket.previousGameTypeThe field for thepreviousGameTyperecord component.private final GameTypeClientboundRespawnPacket.previousPlayerGameTypeMethods in net.minecraft.network.protocol.game that return GameTypeModifier and TypeMethodDescriptionClientboundPlayerInfoUpdatePacket.Entry.gameMode()Returns the value of thegameModerecord component.ClientboundLoginPacket.gameType()Returns the value of thegameTyperecord component.ClientboundRespawnPacket.getPlayerGameType()ClientboundRespawnPacket.getPreviousPlayerGameType()ClientboundLoginPacket.previousGameType()Returns the value of thepreviousGameTyperecord component.Constructors in net.minecraft.network.protocol.game with parameters of type GameTypeModifierConstructorDescriptionClientboundLoginPacket(int playerId, boolean hardcore, GameType gameType, GameType previousGameType, Set<ResourceKey<Level>> levels, RegistryAccess.Frozen registryHolder, ResourceKey<DimensionType> dimensionType, ResourceKey<Level> dimension, long seed, int maxPlayers, int chunkRadius, int simulationDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean isDebug, boolean isFlat, Optional<GlobalPos> lastDeathLocation) Creates an instance of aClientboundLoginPacketrecord class.ClientboundRespawnPacket(ResourceKey<DimensionType> p_263565_, ResourceKey<Level> p_263578_, long p_263572_, GameType p_263577_, GameType p_263566_, boolean p_263576_, boolean p_263569_, byte p_263570_, Optional<GlobalPos> p_263580_) Entry(UUID profileId, com.mojang.authlib.GameProfile profile, boolean listed, int latency, GameType gameMode, Component displayName, RemoteChatSession.Data chatSession) Creates an instance of aEntryrecord class. -
Uses of GameType in net.minecraft.server
Methods in net.minecraft.server that return GameTypeModifier and TypeMethodDescriptionMinecraftServer.getDefaultGameType()MinecraftServer.getForcedGameType()Methods in net.minecraft.server with parameters of type GameTypeModifier and TypeMethodDescriptionbooleanMinecraftServer.publishServer(GameType p_129833_, boolean p_129834_, int p_129835_) voidMinecraftServer.setDefaultGameType(GameType p_129832_) -
Uses of GameType in net.minecraft.server.commands
Methods in net.minecraft.server.commands with parameters of type GameTypeModifier and TypeMethodDescriptionprivate static voidGameModeCommand.logGamemodeChange(CommandSourceStack p_137738_, ServerPlayer p_137739_, GameType p_137740_) private static intPublishCommand.publish(CommandSourceStack p_260117_, int p_259411_, boolean p_260137_, GameType p_259145_) private static intDefaultGameModeCommands.setMode(CommandSourceStack p_136931_, GameType p_136932_) private static intGameModeCommand.setMode(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_137732_, Collection<ServerPlayer> p_137733_, GameType p_137734_) -
Uses of GameType in net.minecraft.server.dedicated
Fields in net.minecraft.server.dedicated declared as GameTypeMethods in net.minecraft.server.dedicated that return GameType -
Uses of GameType in net.minecraft.server.level
Fields in net.minecraft.server.level declared as GameTypeModifier and TypeFieldDescriptionprivate GameTypeServerPlayerGameMode.gameModeForPlayerprivate GameTypeServerPlayerGameMode.previousGameModeForPlayerMethods in net.minecraft.server.level that return GameTypeModifier and TypeMethodDescriptionprivate GameTypeServerPlayer.calculateGameModeForNewPlayer(GameType p_143424_) ServerPlayerGameMode.getGameModeForPlayer()ServerPlayerGameMode.getPreviousGameModeForPlayer()private static GameTypeServerPlayer.readPlayerMode(CompoundTag p_143414_, String p_143415_) Methods in net.minecraft.server.level with parameters of type GameTypeModifier and TypeMethodDescriptionprivate GameTypeServerPlayer.calculateGameModeForNewPlayer(GameType p_143424_) booleanServerPlayerGameMode.changeGameModeForPlayer(GameType p_143474_) booleanServerPlayer.setGameMode(GameType p_143404_) protected voidServerPlayerGameMode.setGameModeForPlayer(GameType p_9274_, GameType p_9275_) -
Uses of GameType in net.minecraft.world.entity.player
Methods in net.minecraft.world.entity.player with parameters of type GameTypeModifier and TypeMethodDescriptionbooleanPlayer.blockActionRestricted(Level p_36188_, BlockPos p_36189_, GameType p_36190_) -
Uses of GameType in net.minecraft.world.level
Fields in net.minecraft.world.level declared as GameTypeModifier and TypeFieldDescriptionstatic final GameTypeGameType.DEFAULT_MODEprivate final GameTypeLevelSettings.gameTypeFields in net.minecraft.world.level with type parameters of type GameTypeModifier and TypeFieldDescriptionprivate static final IntFunction<GameType>GameType.BY_IDstatic final StringRepresentable.EnumCodec<GameType>GameType.CODECMethods in net.minecraft.world.level that return GameTypeModifier and TypeMethodDescriptionstatic GameTypeGameType.byId(int p_46394_) static GameTypestatic GameTypestatic GameTypeGameType.byNullableId(int p_151498_) LevelSettings.gameType()static GameTypeReturns the enum constant of this class with the specified name.static GameType[]GameType.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in net.minecraft.world.level with parameters of type GameTypeModifier and TypeMethodDescriptionstatic GameTypestatic intGameType.getNullableId(GameType p_151496_) LevelSettings.withGameType(GameType p_46923_) Constructors in net.minecraft.world.level with parameters of type GameTypeModifierConstructorDescriptionLevelSettings(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_) LevelSettings(String p_250485_, GameType p_250207_, boolean p_251631_, Difficulty p_252122_, boolean p_248961_, GameRules p_248536_, WorldDataConfiguration p_249797_, com.mojang.serialization.Lifecycle lifecycle) -
Uses of GameType in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage that return GameTypeModifier and TypeMethodDescriptionLevelSummary.getGameMode()DerivedLevelData.getGameType()PrimaryLevelData.getGameType()ServerLevelData.getGameType()WorldData.getGameType()Methods in net.minecraft.world.level.storage with parameters of type GameTypeModifier and TypeMethodDescriptionvoidDerivedLevelData.setGameType(GameType p_78089_) voidPrimaryLevelData.setGameType(GameType p_78525_) voidServerLevelData.setGameType(GameType p_78618_) voidWorldData.setGameType(GameType p_78635_) -
Uses of GameType in net.minecraftforge.client
Methods in net.minecraftforge.client with parameters of type GameTypeModifier and TypeMethodDescriptionstatic voidForgeHooksClient.onClientChangeGameType(PlayerInfo info, GameType currentGameMode, GameType newGameMode) -
Uses of GameType in net.minecraftforge.client.event
Fields in net.minecraftforge.client.event declared as GameTypeModifier and TypeFieldDescriptionprivate final GameTypeClientPlayerChangeGameTypeEvent.currentGameTypeprivate final GameTypeClientPlayerChangeGameTypeEvent.newGameTypeMethods in net.minecraftforge.client.event that return GameTypeModifier and TypeMethodDescriptionClientPlayerChangeGameTypeEvent.getCurrentGameType()Returns the current game type of the player.ClientPlayerChangeGameTypeEvent.getNewGameType()Returns the new game type of the player.Constructors in net.minecraftforge.client.event with parameters of type GameTypeModifierConstructorDescriptionClientPlayerChangeGameTypeEvent(PlayerInfo info, GameType currentGameType, GameType newGameType) -
Uses of GameType in net.minecraftforge.common
Methods in net.minecraftforge.common that return GameTypeModifier and TypeMethodDescriptionstatic @Nullable GameTypeForgeHooks.onChangeGameType(Player player, GameType currentGameType, GameType newGameType) Methods in net.minecraftforge.common with parameters of type GameTypeModifier and TypeMethodDescriptionstatic intForgeHooks.onBlockBreakEvent(Level level, GameType gameType, ServerPlayer entityPlayer, BlockPos pos) static @Nullable GameTypeForgeHooks.onChangeGameType(Player player, GameType currentGameType, GameType newGameType) -
Uses of GameType in net.minecraftforge.event.entity.player
Fields in net.minecraftforge.event.entity.player declared as GameTypeModifier and TypeFieldDescriptionprivate final GameTypePlayerEvent.PlayerChangeGameModeEvent.currentGameModeprivate GameTypePlayerEvent.PlayerChangeGameModeEvent.newGameModeMethods in net.minecraftforge.event.entity.player that return GameTypeModifier and TypeMethodDescriptionPlayerEvent.PlayerChangeGameModeEvent.getCurrentGameMode()PlayerEvent.PlayerChangeGameModeEvent.getNewGameMode()Methods in net.minecraftforge.event.entity.player with parameters of type GameTypeModifier and TypeMethodDescriptionvoidPlayerEvent.PlayerChangeGameModeEvent.setNewGameMode(GameType newGameMode) Sets the game mode the player will be changed to if this event is not cancelled.Constructors in net.minecraftforge.event.entity.player with parameters of type GameTypeModifierConstructorDescriptionPlayerChangeGameModeEvent(Player player, GameType currentGameMode, GameType newGameMode)