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, stopSound
Methods inherited from interface org.spongepowered.api.Engine
causeStackManager, game, onMainThread, packRepository, reloadResources, resourceManager, scheduler
Methods 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, stopSound
Methods inherited from interface org.spongepowered.api.util.locale.LocaleSource
locale
Methods inherited from interface net.kyori.adventure.pointer.Pointered
get, getOrDefault, getOrDefaultFrom
Methods inherited from interface org.spongepowered.api.registry.RegistryHolder
findRegistry, registry, streamRegistries
Methods 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:Server
Gets whether this server is dedicated to being a global server, or whether this server is local to a game client where aClient
instance may be available.- Specified by:
isDedicatedServer
in interfaceServer
- Returns:
- True if this is a dedicated server without a game client
-
client
Client client()
-