Package net.minecraft.server.integrated
Class IntegratedServer
java.lang.Object
net.minecraft.util.thread.ThreadExecutor<R>
net.minecraft.util.thread.ReentrantThreadExecutor<ServerTask>
net.minecraft.server.MinecraftServer
net.minecraft.server.integrated.IntegratedServer
- All Implemented Interfaces:
AutoCloseable,Executor,CommandOutput,SnooperListener,MessageListener<ServerTask>
@Environment(CLIENT) public class IntegratedServer extends MinecraftServer
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClientclientprivate LanServerPingerlanPingerprivate intlanPortprivate UUIDlocalPlayerUuidprivate static LoggerLOGGERprivate booleanpausedFields inherited from class net.minecraft.server.MinecraftServer
DEMO_LEVEL_INFO, dimensionTracker, field_24371, lastTickLengths, proxy, saveProperties, session, USER_CACHE_FILE -
Constructor Summary
Constructors Constructor Description IntegratedServer(Thread thread, MinecraftClient minecraftClient, RegistryTracker.Modifiable modifiable, LevelStorage.Session session, ResourcePackManager<ResourcePackProfile> resourcePackManager, ServerResourceManager serverResourceManager, SaveProperties saveProperties, com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.GameProfileRepository gameProfileRepository, UserCache userCache, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory) -
Method Summary
Modifier and Type Method Description voidaddSnooperInfo(Snooper snooper)intadjustTrackingDistance(int initialDistance)booleanareCommandBlocksEnabled()intgetFunctionPermissionLevel()Optional<String>getModdedStatusMessage()intgetOpPermissionLevel()FilegetRunDirectory()intgetServerPort()booleanisDedicated()booleanisHost(com.mojang.authlib.GameProfile profile)booleanisRemote()booleanisUsingNativeTransport()booleanopenToLan(GameMode gameMode, boolean cheatsAllowed, int port)CrashReportpopulateCrashReport(CrashReport crashReport)voidsetCrashReport(CrashReport report)voidsetDefaultGameMode(GameMode gameMode)voidsetLocalPlayerUuid(UUID localPlayerUuid)booleansetupServer()booleanshouldBroadcastConsoleToOps()booleanshouldBroadcastRconToOps()voidshutdown()voidstop(boolean bool)booleansyncChunkWrites()voidtick(BooleanSupplier shouldKeepTicking)Methods inherited from class net.minecraft.server.MinecraftServer
acceptsStatusQuery, addServerGuiTickable, canExecute, close, convertLevel, createTask, createWorlds, dump, enableProfiler, executeTask, exit, forcePlayerSampleUpdate, getAdvancementLoader, getBossBarManager, getCommandFunctionManager, getCommandManager, getCommandSource, getCurrentPlayerCount, getDataCommandStorage, getDataFixer, getDataPackManager, getDefaultGameMode, getFile, getGameProfileRepo, getGameRules, getIconFile, getKeyPair, getLootManager, getMaxPlayerCount, getMaxWorldBorderRadius, getMetricsData, getNetworkCompressionThreshold, getNetworkIo, getOverworld, getPermissionLevel, getPlayerIdleTimeout, getPlayerManager, getPlayerNames, getPredicateManager, getProfiler, getRecipeManager, getResourcePackHash, getResourcePackUrl, getSavePath, getSaveProperties, getScoreboard, getServerIp, getServerMetadata, getServerModName, getServerMotd, getServerStartTime, getSessionService, getSnooper, getSpawnProtectionRadius, getSpawnRadius, getStructureManager, getTagManager, getThread, getTicks, getTickTime, getUserCache, getUserName, getVersion, getWorld, getWorldHeight, getWorldRegistryKeys, getWorlds, hasGui, hasIconFile, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isHardcore, isLoading, isMonsterSpawningEnabled, isNetherAllowed, isOnlineMode, isPvpEnabled, isRunning, isSinglePlayer, isSpawnProtected, isStopped, isStopping, kickNonWhitelistedPlayers, loadDataPacks, loadWorld, loadWorldResourcePack, method_16208, method_27731, method_29741, reloadResources, runTask, save, sendSystemMessage, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightEnabled, setForceGameMode, setKeyPair, setMotd, setOnlineMode, setPlayerIdleTimeout, setPlayerManager, setPreventProxyConnections, setPvpEnabled, setResourcePack, setServerId, setServerIp, setServerName, setServerPort, setWorldHeight, shouldExecuteAsync, shouldForceGameMode, shouldPreventProxyConnections, shouldReceiveFeedback, shouldSpawnAnimals, shouldSpawnNpcs, shouldTrackOutput, startServer, stopDebug, tickWorldsMethods inherited from class net.minecraft.util.thread.ThreadExecutor
cancelTasks, execute, getName, getTaskCount, isOnThread, runTasks, runTasks, send, submit, submit, submitAndJoin, waitForTasks
-
Field Details
-
Constructor Details
-
IntegratedServer
public IntegratedServer(Thread thread, MinecraftClient minecraftClient, RegistryTracker.Modifiable modifiable, LevelStorage.Session session, ResourcePackManager<ResourcePackProfile> resourcePackManager, ServerResourceManager serverResourceManager, SaveProperties saveProperties, com.mojang.authlib.minecraft.MinecraftSessionService minecraftSessionService, com.mojang.authlib.GameProfileRepository gameProfileRepository, UserCache userCache, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory)
-
-
Method Details
-
setupServer
public boolean setupServer()- Specified by:
setupServerin classMinecraftServer
-
tick
- Overrides:
tickin classMinecraftServer
-
shouldBroadcastRconToOps
public boolean shouldBroadcastRconToOps()- Specified by:
shouldBroadcastRconToOpsin classMinecraftServer
-
shouldBroadcastConsoleToOps
public boolean shouldBroadcastConsoleToOps() -
getRunDirectory
- Overrides:
getRunDirectoryin classMinecraftServer
-
isDedicated
public boolean isDedicated()- Specified by:
isDedicatedin classMinecraftServer
-
isUsingNativeTransport
public boolean isUsingNativeTransport()- Specified by:
isUsingNativeTransportin classMinecraftServer
-
setCrashReport
- Overrides:
setCrashReportin classMinecraftServer
-
populateCrashReport
- Overrides:
populateCrashReportin classMinecraftServer
-
getModdedStatusMessage
- Specified by:
getModdedStatusMessagein classMinecraftServer
-
addSnooperInfo
- Specified by:
addSnooperInfoin interfaceSnooperListener- Overrides:
addSnooperInfoin classMinecraftServer
-
openToLan
- Specified by:
openToLanin classMinecraftServer
-
shutdown
public void shutdown()- Overrides:
shutdownin classMinecraftServer
-
stop
public void stop(boolean bool)- Overrides:
stopin classMinecraftServer
-
isRemote
public boolean isRemote()- Specified by:
isRemotein classMinecraftServer
-
getServerPort
public int getServerPort()- Overrides:
getServerPortin classMinecraftServer
-
setDefaultGameMode
- Overrides:
setDefaultGameModein classMinecraftServer
-
areCommandBlocksEnabled
public boolean areCommandBlocksEnabled()- Specified by:
areCommandBlocksEnabledin classMinecraftServer
-
getOpPermissionLevel
public int getOpPermissionLevel()- Specified by:
getOpPermissionLevelin classMinecraftServer
-
getFunctionPermissionLevel
public int getFunctionPermissionLevel()- Specified by:
getFunctionPermissionLevelin classMinecraftServer
-
setLocalPlayerUuid
-
isHost
public boolean isHost(com.mojang.authlib.GameProfile profile)- Specified by:
isHostin classMinecraftServer
-
adjustTrackingDistance
public int adjustTrackingDistance(int initialDistance)- Overrides:
adjustTrackingDistancein classMinecraftServer
-
syncChunkWrites
public boolean syncChunkWrites()- Overrides:
syncChunkWritesin classMinecraftServer
-