Uses of Enum Class
net.minecraft.world.GameMode
Packages that use GameMode
Package
Description
-
Uses of GameMode in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as 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 Optional<GameModeSelectionScreen.GameMode> -
Uses of GameMode in net.minecraft.client.gui.screen.world
Fields in net.minecraft.client.gui.screen.world declared as GameModeModifier and TypeFieldDescription(package private) GameModeCreateWorldScreen.Mode.defaultGameModeConstructors 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()PlayerListEntry.getGameMode()ClientPlayerInteractionManager.getPreviousGameMode()Methods in net.minecraft.client.network with parameters of type GameModeModifier and TypeMethodDescriptionvoidClientPlayerInteractionManager.setGameMode(GameMode gameMode)protected voidPlayerListEntry.setGameMode(GameMode gameMode)voidClientPlayerInteractionManager.setGameModes(GameMode gameMode, @Nullable GameMode previousGameMode) -
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.entity.player
Methods 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.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as GameModeModifier and TypeFieldDescriptionprivate GameModeGameJoinS2CPacket.gameModeprivate GameModePlayerListS2CPacket.Entry.gameModeprivate GameModePlayerRespawnS2CPacket.gameModeGameJoinS2CPacket.previousGameModePlayerRespawnS2CPacket.previousGameModeMethods in net.minecraft.network.packet.s2c.play that return GameModeModifier and TypeMethodDescriptionGameJoinS2CPacket.getGameMode()PlayerListS2CPacket.Entry.getGameMode()PlayerRespawnS2CPacket.getGameMode()GameJoinS2CPacket.getPreviousGameMode()PlayerRespawnS2CPacket.getPreviousGameMode()Constructors in net.minecraft.network.packet.s2c.play with parameters of type GameModeModifierConstructorDescriptionEntry(com.mojang.authlib.GameProfile profile, int latency, @Nullable GameMode gameMode, @Nullable Text displayName)GameJoinS2CPacket(int playerEntityId, GameMode gameMode, @Nullable GameMode previousGameMode, long sha256Seed, boolean hardcore, Set<RegistryKey<World>> dimensionIds, DynamicRegistryManager.Impl registryManager, DimensionType dimensionType, RegistryKey<World> dimensionId, int maxPlayers, int chunkLoadDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean debugWorld, boolean flatWorld)PlayerRespawnS2CPacket(DimensionType dimensionType, RegistryKey<World> dimension, long sha256Seed, GameMode gameMode, @Nullable GameMode previousGameMode, boolean debugWorld, boolean flatWorld, boolean keepPlayerAttributes) -
Uses of GameMode in net.minecraft.predicate
Fields in net.minecraft.predicate declared as GameModeMethods in net.minecraft.predicate with parameters of type GameModeModifier and TypeMethodDescriptionConstructors in net.minecraft.predicate with parameters of type GameModeModifierConstructorDescription(package private)PlayerPredicate(NumberRange.IntRange experienceLevel, @Nullable GameMode gameMode, Map<Stat<?>,NumberRange.IntRange> stats, Object2BooleanMap<Identifier> recipes, Map<Identifier,PlayerPredicate.AdvancementPredicate> advancements, EntityPredicate entityPredicate) -
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 TypeMethodDescriptionbooleanOpens 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 voidGameModeCommand.sendFeedback(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) -
Uses of GameMode in net.minecraft.server.dedicated
Fields in net.minecraft.server.dedicated declared as 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. -
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.gameModeFromNbt(@Nullable NbtCompound nbt, String key)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.world
Fields in net.minecraft.world declared as GameModeMethods in net.minecraft.world that return GameModeModifier and TypeMethodDescriptionstatic GameModeGameMode.byId(int id)static GameModestatic GameModestatic GameModeSaveProperties.getGameMode()GameMode.getOrNull(int id)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 with parameters 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, DataPackSettings dataPackSettings) -
Uses of GameMode in net.minecraft.world.level.storage
Methods in net.minecraft.world.level.storage that return GameMode