Package org.spongepowered.api.client
Interface LocalServer
- All Superinterfaces:
Audience,Engine,ForwardingAudience,LocaleSource,Pointered,RegistryHolder,Server
Represents a
Server which is used in a SinglePlayer game instance.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.kyori.adventure.audience.ForwardingAudience
ForwardingAudience.Single -
Method Summary
Methods inherited from interface net.kyori.adventure.audience.Audience
deleteMessage, openBook, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, showTitle, stopSoundMethods inherited from interface org.spongepowered.api.Engine
causeStackManager, game, onMainThread, packRepository, reloadResources, resourceManager, schedulerMethods inherited from interface net.kyori.adventure.audience.ForwardingAudience
audiences, clearTitle, deleteMessage, filterAudience, forEachAudience, hideBossBar, openBook, playSound, playSound, playSound, pointers, resetTitle, sendActionBar, sendMessage, sendMessage, sendMessage, sendMessage, sendMessage, sendPlayerListFooter, sendPlayerListHeader, sendPlayerListHeaderAndFooter, sendTitlePart, showBossBar, stopSoundMethods inherited from interface org.spongepowered.api.util.locale.LocaleSource
localeMethods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFromMethods inherited from interface org.spongepowered.api.registry.RegistryHolder
findRegistry, registry, streamRegistriesMethods inherited from interface org.spongepowered.api.Server
areCommandBlocksEnabled, averageTickTime, boundAddress, broadcastAudience, chunkLayout, commandManager, dataPackManager, difficulty, gameMode, gameProfileManager, isAnimalSpawnsEnabled, isGameModeEnforced, isHardcoreModeEnabled, isMonsterSpawnsEnabled, isMultiWorldEnabled, isOnlineModeEnabled, isPVPEnabled, isWhitelistEnabled, mapStorage, maxPlayers, motd, onlinePlayers, player, player, playerIdleTimeout, recipeManager, resourcePack, runningTimeTicks, serverScoreboard, serviceProvider, setBroadcastAudience, setHasWhitelist, setPlayerIdleTimeout, shutdown, shutdown, streamOnlinePlayers, targetTicksPerSecond, teleportHelper, ticksPerSecond, userManager, worldGenerationConfig, worldManager
-
Method Details
-
isDedicatedServer
default boolean isDedicatedServer()Description copied from interface:ServerGets whether this server is dedicated to being a global server, or whether this server is local to a game client where aClientinstance may be available.- Specified by:
isDedicatedServerin interfaceServer- Returns:
- True if this is a dedicated server without a game client
-
client
Client client()
-