Uses of Enum Class
net.minecraft.world.GameMode
Package
Description
-
Uses of GameMode in net.minecraft.client.gui.screen
Modifier and TypeMethodDescription(package private) static Optional<GameModeSelectionScreen.GameMode>
-
Uses of GameMode in net.minecraft.client.gui.screen.world
Modifier and TypeFieldDescription(package private) GameMode
CreateWorldScreen.Mode.defaultGameMode
-
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
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.gui.screen
-
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 GameMode
GameJoinS2CPacket.gameMode
private GameMode
PlayerListS2CPacket.Entry.gameMode
private GameMode
PlayerRespawnS2CPacket.gameMode
GameJoinS2CPacket.previousGameMode
PlayerRespawnS2CPacket.previousGameMode
Modifier and TypeMethodDescriptionGameJoinS2CPacket.getGameMode()
PlayerListS2CPacket.Entry.getGameMode()
PlayerRespawnS2CPacket.getGameMode()
GameJoinS2CPacket.getPreviousGameMode()
PlayerRespawnS2CPacket.getPreviousGameMode()
ModifierConstructorDescriptionEntry(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
Modifier and TypeMethodDescriptionModifierConstructorDescription(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
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 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.world
Modifier and TypeMethodDescriptionstatic GameMode
GameMode.byId(int id)
static GameMode
static GameMode
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. -
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, DataPackSettings dataPackSettings)
-
Uses of GameMode in net.minecraft.world.level.storage