Uses of Class
net.minecraft.world.GameMode
-
Uses of GameMode in net.minecraft.client.gui.screen
Fields in net.minecraft.client.gui.screen declared as GameMode Modifier and Type Field Description private GameModeOpenToLanScreen. gameModeMethods in net.minecraft.client.gui.screen that return GameMode Modifier and Type Method Description private GameModeGameModeSelectionScreen. getPreviousGameMode()Methods in net.minecraft.client.gui.screen with parameters of type GameMode Modifier and Type Method Description private static Optional<GameModeSelectionScreen.GameMode>GameModeSelectionScreen.GameMode. of(GameMode gameMode) -
Uses of GameMode in net.minecraft.client.gui.screen.world
Fields in net.minecraft.client.gui.screen.world declared as GameMode Modifier and Type Field Description private GameModeCreateWorldScreen.Mode. defaultGameModeConstructors in net.minecraft.client.gui.screen.world with parameters of type GameMode Constructor Description Mode(String translationSuffix, GameMode defaultGameMode) -
Uses of GameMode in net.minecraft.client.network
Fields in net.minecraft.client.network declared as GameMode Modifier and Type Field Description private GameModeClientPlayerInteractionManager. gameModeprivate GameModePlayerListEntry. gameModeprivate @Nullable GameModeClientPlayerInteractionManager. previousGameModeMethods in net.minecraft.client.network that return GameMode Modifier and Type Method Description GameModeClientPlayerInteractionManager. getCurrentGameMode()@Nullable GameModePlayerListEntry. getGameMode()@Nullable GameModeClientPlayerInteractionManager. getPreviousGameMode()Methods in net.minecraft.client.network with parameters of type GameMode Modifier and Type Method Description voidClientPlayerInteractionManager. 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 GameMode Modifier and Type Field Description private GameModeRealmsSlotOptionsScreen. gameModeIndexFields in net.minecraft.client.realms.gui.screen with type parameters of type GameMode Modifier and Type Field Description static List<GameMode>RealmsSlotOptionsScreen. GAME_MODES -
Uses of GameMode in net.minecraft.entity.player
Methods in net.minecraft.entity.player with parameters of type GameMode Modifier and Type Method Description booleanPlayerEntity. 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 GameMode Modifier and Type Field Description private GameModeGameJoinS2CPacket. gameModeprivate GameModePlayerListS2CPacket.Entry. gameModeprivate GameModePlayerRespawnS2CPacket. gameModeprivate @Nullable GameModeGameJoinS2CPacket. previousGameModeprivate @Nullable GameModePlayerRespawnS2CPacket. previousGameModeMethods in net.minecraft.network.packet.s2c.play that return GameMode Modifier and Type Method Description GameModeGameJoinS2CPacket. getGameMode()GameModePlayerListS2CPacket.Entry. getGameMode()GameModePlayerRespawnS2CPacket. getGameMode()@Nullable GameModeGameJoinS2CPacket. getPreviousGameMode()@Nullable GameModePlayerRespawnS2CPacket. getPreviousGameMode()Constructors in net.minecraft.network.packet.s2c.play with parameters of type GameMode Constructor Description Entry(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 GameMode Modifier and Type Field Description private @Nullable GameModePlayerPredicate.Builder. gamemodeprivate @Nullable GameModePlayerPredicate. gamemodeMethods in net.minecraft.predicate with parameters of type GameMode Modifier and Type Method Description PlayerPredicate.BuilderPlayerPredicate.Builder. method_35312(GameMode gameMode)Constructors in net.minecraft.predicate with parameters of type GameMode Constructor Description PlayerPredicate(NumberRange.IntRange experienceLevel, @Nullable GameMode gamemode, Map<Stat<?>,NumberRange.IntRange> stats, Object2BooleanMap<Identifier> recipes, Map<Identifier,PlayerPredicate.AdvancementPredicate> advancements) -
Uses of GameMode in net.minecraft.server
Methods in net.minecraft.server that return GameMode Modifier and Type Method Description GameModeMinecraftServer. getDefaultGameMode()@Nullable GameModeMinecraftServer. 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 GameMode Modifier and Type Method Description booleanMinecraftServer. openToLan(@Nullable GameMode gameMode, boolean cheatsAllowed, int port)Opens 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 GameMode Modifier and Type Method Description private 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. setGameMode(ServerCommandSource source, ServerPlayerEntity player, GameMode gameMode) -
Uses of GameMode in net.minecraft.server.dedicated
Fields in net.minecraft.server.dedicated declared as GameMode Modifier and Type Field Description GameModeServerPropertiesHandler. gameModeMethods in net.minecraft.server.dedicated that return GameMode Modifier and Type Method Description @Nullable GameModeMinecraftDedicatedServer. 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 GameMode Modifier and Type Field Description private @Nullable GameModeIntegratedServer. forcedGameModeMethods in net.minecraft.server.integrated that return GameMode Modifier and Type Method Description @Nullable GameModeIntegratedServer. 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 GameMode Modifier and Type Method Description booleanIntegratedServer. openToLan(@Nullable GameMode gameMode, boolean cheatsAllowed, int port)Opens 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 GameMode Modifier and Type Field Description private GameModeServerPlayerInteractionManager. gameModeprivate @Nullable GameModeServerPlayerInteractionManager. previousGameModeMethods in net.minecraft.server.network that return GameMode Modifier and Type Method Description private static @Nullable GameModeServerPlayerEntity. gameModeFromNbt(@Nullable NbtCompound nbt, String key)GameModeServerPlayerInteractionManager. getGameMode()@Nullable GameModeServerPlayerInteractionManager. 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 GameMode Modifier and Type Method Description booleanServerPlayerEntity. 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 GameMode Modifier and Type Field Description static GameModeGameMode. DEFAULTMethods in net.minecraft.world that return GameMode Modifier and Type Method Description static GameModeGameMode. byId(int id)static GameModeGameMode. byId(int id, GameMode defaultMode)static GameModeGameMode. byName(String name)static GameModeGameMode. byName(String name, GameMode defaultMode)GameModeSaveProperties. getGameMode()static @Nullable GameModeGameMode. getOrNull(int id)static GameModeGameMode. valueOf(String name)Returns the enum constant of this type with the specified name.static GameMode[]GameMode. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in net.minecraft.world with parameters of type GameMode Modifier and Type Method Description static GameModeGameMode. byId(int id, GameMode defaultMode)static GameModeGameMode. byName(String name, GameMode defaultMode)static intGameMode. getId(@Nullable GameMode gameMode)voidSaveProperties. setGameMode(GameMode gameMode) -
Uses of GameMode in net.minecraft.world.level
Fields in net.minecraft.world.level declared as GameMode Modifier and Type Field Description private GameModeLevelInfo. gameModeMethods in net.minecraft.world.level that return GameMode Modifier and Type Method Description GameModeLevelInfo. getGameMode()GameModeLevelProperties. getGameMode()GameModeServerWorldProperties. getGameMode()GameModeUnmodifiableLevelProperties. getGameMode()Methods in net.minecraft.world.level with parameters of type GameMode Modifier and Type Method Description voidLevelProperties. setGameMode(GameMode gameMode)voidServerWorldProperties. setGameMode(GameMode gameMode)voidUnmodifiableLevelProperties. setGameMode(GameMode gameMode)LevelInfoLevelInfo. withGameMode(GameMode mode)Constructors in net.minecraft.world.level with parameters of type GameMode Constructor Description LevelInfo(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 Modifier and Type Method Description GameModeLevelSummary. getGameMode()