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,- MessageListener<ServerTask>,- SampleableExecutor
- Mappings:
- Namespace - Name - official - fyp- intermediary - net/minecraft/class_1132- named - net/minecraft/server/integrated/IntegratedServer
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.server.MinecraftServerMinecraftServer.ServerResourcePackProperties
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate static final intprivate @Nullable LanServerPingerprivate intprivate static final Loggerprivate booleanprivate intFields inherited from class net.minecraft.server.MinecraftServerANONYMOUS_PLAYER_PROFILE, apiServices, DEMO_LEVEL_INFO, field_33206, lastTickLengths, MAX_WORLD_BORDER_RADIUS, proxy, saveHandler, saveProperties, session, START_TICKET_CHUNK_RADIUS, VANILLAFields inherited from interface net.minecraft.server.command.CommandOutputDUMMY
- 
Constructor SummaryConstructorsConstructorDescriptionIntegratedServer(Thread serverThread, MinecraftClient client, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, ApiServices apiServices, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory) 
- 
Method SummaryModifier and TypeMethodDescriptionaddExtraSystemDetails(SystemDetails details) intadjustTrackingDistance(int initialDistance) booleanSpecifies whether command blocks can execute commands on the server.Returns the game mode a player should be set to when connecting to the server, ornullif none is set.intintintintprivate voidbooleanChecks whether this server is a dedicated server.booleanisHost(com.mojang.authlib.GameProfile profile) booleanisRemote()booleanbooleanOpens a server for LAN connections.voidsetCrashReport(CrashReport report) voidsetDefaultGameMode(GameMode gameMode) voidsetLocalPlayerUuid(UUID localPlayerUuid) booleanSetups a Minecraft server to be ready for players to connect.booleanbooleanvoidshutdown()voidstop(boolean waitForShutdown) Stops this server.booleanvoidtick(BooleanSupplier shouldKeepTicking) Methods inherited from class net.minecraft.server.MinecraftServeracceptsStatusQuery, addServerGuiTickable, addSystemDetails, canExecute, close, createFilterer, createTask, createWorlds, dumpProperties, executeSync, executeTask, exit, forcePlayerSampleUpdate, forceStopRecorder, generateKeyPair, getAdvancementLoader, getBossBarManager, getCombinedDynamicRegistries, getCommandFunctionManager, getCommandManager, getCommandSource, getCurrentPlayerCount, getDataCommandStorage, getDataFixer, getDataPackManager, getDefaultGameMode, getFile, getGameProfileRepo, getGameRules, getHostProfile, getIconFile, getKeyPair, getLootManager, getMaxChainedNeighborUpdates, getMaxPlayerCount, getMaxWorldBorderRadius, getMessageDecorator, getMetricsData, getNetworkCompressionThreshold, getNetworkIo, getOverworld, getPermissionLevel, getPlayerIdleTimeout, getPlayerInteractionManager, getPlayerManager, getPlayerNames, getProfiler, getProxy, getRecipeManager, getRegistryManager, getResourceManager, getResourcePackProperties, getSavePath, getSaveProperties, getScoreboard, getServerIp, getServerMetadata, getServerModName, getServerMotd, getServicesSignatureVerifier, getSessionService, getSpawnProtectionRadius, getSpawnRadius, getStructureTemplateManager, getThread, getTicks, getTickTime, getTimeReference, getUserCache, getVersion, getWorld, getWorldRegistryKeys, getWorlds, hasGui, hideOnlinePlayers, isDebugRunning, isDemo, isEnforceWhitelist, isFlightEnabled, isHardcore, isLoading, isMonsterSpawningEnabled, isNetherAllowed, isOnlineMode, isPvpEnabled, isRecorderActive, isRunning, isSaving, isSingleplayer, isSpawnProtected, isStopped, isStopping, kickNonWhitelistedPlayers, loadDataPacks, loadWorld, logChatMessage, reloadResources, requireResourcePack, resetRecorder, runServer, runTask, runTasksTillTickEnd, save, saveAll, sendMessage, sendTimeUpdatePackets, setDemo, setDifficulty, setDifficultyLocked, setEnforceWhitelist, setFlightEnabled, setHostProfile, setMotd, setOnlineMode, setPlayerIdleTimeout, setPlayerManager, setPreventProxyConnections, setPvpEnabled, setServerId, setServerIp, setServerPort, setupRecorder, shouldEnforceSecureProfile, shouldExecuteAsync, shouldPreventProxyConnections, shouldReceiveFeedback, shouldSpawnAnimals, shouldSpawnNpcs, shouldTrackOutput, startDebug, startServer, stopDebug, stopRecorder, tickWorlds, updateDifficultyMethods inherited from class net.minecraft.util.thread.ReentrantThreadExecutorhasRunningTasksMethods inherited from class net.minecraft.util.thread.ThreadExecutorcancelTasks, createSamplers, execute, getName, getTaskCount, isOnThread, runTasks, runTasks, send, submit, submit, submitAndJoin, waitForTasksMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.command.CommandOutputcannotBeSilencedMethods inherited from interface net.minecraft.util.thread.MessageListenerask, askFallible
- 
Field Details- 
LOGGER- Mappings:
- Namespace - Name - Mixin selector - official - n- Lfyp;n:Lorg/slf4j/Logger;- intermediary - field_5520- Lnet/minecraft/class_1132;field_5520:Lorg/slf4j/Logger;- named - LOGGER- Lnet/minecraft/server/integrated/IntegratedServer;LOGGER:Lorg/slf4j/Logger;
 
- 
field_34964private static final int field_34964- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - o- Lfyp;o:I- intermediary - field_34964- Lnet/minecraft/class_1132;field_34964:I- named - field_34964- Lnet/minecraft/server/integrated/IntegratedServer;field_34964:I
 
- 
client- Mappings:
- Namespace - Name - Mixin selector - official - p- Lfyp;p:Lenn;- intermediary - field_5518- Lnet/minecraft/class_1132;field_5518:Lnet/minecraft/class_310;- named - client- Lnet/minecraft/server/integrated/IntegratedServer;client:Lnet/minecraft/client/MinecraftClient;
 
- 
pausedprivate boolean paused- Mappings:
- Namespace - Name - Mixin selector - official - q- Lfyp;q:Z- intermediary - field_5524- Lnet/minecraft/class_1132;field_5524:Z- named - paused- Lnet/minecraft/server/integrated/IntegratedServer;paused:Z
 
- 
lanPortprivate int lanPort- Mappings:
- Namespace - Name - Mixin selector - official - r- Lfyp;r:I- intermediary - field_5522- Lnet/minecraft/class_1132;field_5522:I- named - lanPort- Lnet/minecraft/server/integrated/IntegratedServer;lanPort:I
 
- 
forcedGameMode- Mappings:
- Namespace - Name - Mixin selector - official - s- Lfyp;s:Lcmj;- intermediary - field_28075- Lnet/minecraft/class_1132;field_28075:Lnet/minecraft/class_1934;- named - forcedGameMode- Lnet/minecraft/server/integrated/IntegratedServer;forcedGameMode:Lnet/minecraft/world/GameMode;
 
- 
lanPinger- Mappings:
- Namespace - Name - Mixin selector - official - t- Lfyp;t:Lfys;- intermediary - field_5519- Lnet/minecraft/class_1132;field_5519:Lnet/minecraft/class_1133;- named - lanPinger- Lnet/minecraft/server/integrated/IntegratedServer;lanPinger:Lnet/minecraft/client/network/LanServerPinger;
 
- 
localPlayerUuid- Mappings:
- Namespace - Name - Mixin selector - official - u- Lfyp;u:Ljava/util/UUID;- intermediary - field_5521- Lnet/minecraft/class_1132;field_5521:Ljava/util/UUID;- named - localPlayerUuid- Lnet/minecraft/server/integrated/IntegratedServer;localPlayerUuid:Ljava/util/UUID;
 
- 
simulationDistanceprivate int simulationDistance- Mappings:
- Namespace - Name - Mixin selector - official - v- Lfyp;v:I- intermediary - field_34965- Lnet/minecraft/class_1132;field_34965:I- named - simulationDistance- Lnet/minecraft/server/integrated/IntegratedServer;simulationDistance:I
 
 
- 
- 
Constructor Details- 
IntegratedServerpublic IntegratedServer(Thread serverThread, MinecraftClient client, LevelStorage.Session session, ResourcePackManager dataPackManager, SaveLoader saveLoader, ApiServices apiServices, WorldGenerationProgressListenerFactory worldGenerationProgressListenerFactory) - Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lfyp;<init>(Ljava/lang/Thread;Lenn;Ldyy$c;Laki;Ladk;Ladh;Laip;)V- intermediary - <init>- Lnet/minecraft/class_1132;<init>(Ljava/lang/Thread;Lnet/minecraft/class_310;Lnet/minecraft/class_32$class_5143;Lnet/minecraft/class_3283;Lnet/minecraft/class_6904;Lnet/minecraft/class_7497;Lnet/minecraft/class_3950;)V- named - <init>- Lnet/minecraft/server/integrated/IntegratedServer;<init>(Ljava/lang/Thread;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/world/level/storage/LevelStorage$Session;Lnet/minecraft/resource/ResourcePackManager;Lnet/minecraft/server/SaveLoader;Lnet/minecraft/util/ApiServices;Lnet/minecraft/server/WorldGenerationProgressListenerFactory;)V
 
 
- 
- 
Method Details- 
setupServerpublic boolean setupServer()Setups a Minecraft server to be ready for players to connect. This method does several things including loading server properties and loading worlds.- Specified by:
- setupServerin class- MinecraftServer
- Returns:
- true if the Minecraft server was successfully setup, false if the server failed to be setup.
- Mappings:
- Namespace - Name - Mixin selector - official - e- Lnet/minecraft/server/MinecraftServer;e()Z- intermediary - method_3823- Lnet/minecraft/server/MinecraftServer;method_3823()Z- named - setupServer- Lnet/minecraft/server/MinecraftServer;setupServer()Z
 
- 
tick- Overrides:
- tickin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Ljava/util/function/BooleanSupplier;)V- intermediary - method_3748- Lnet/minecraft/server/MinecraftServer;method_3748(Ljava/util/function/BooleanSupplier;)V- named - tick- Lnet/minecraft/server/MinecraftServer;tick(Ljava/util/function/BooleanSupplier;)V
 
- 
incrementTotalWorldTimeStatprivate void incrementTotalWorldTimeStat()- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfyp;a()V- intermediary - method_36439- Lnet/minecraft/class_1132;method_36439()V- named - incrementTotalWorldTimeStat- Lnet/minecraft/server/integrated/IntegratedServer;incrementTotalWorldTimeStat()V
 
- 
shouldBroadcastRconToOpspublic boolean shouldBroadcastRconToOps()- Specified by:
- shouldBroadcastRconToOpsin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - k- Lnet/minecraft/server/MinecraftServer;k()Z- intermediary - method_3732- Lnet/minecraft/server/MinecraftServer;method_3732()Z- named - shouldBroadcastRconToOps- Lnet/minecraft/server/MinecraftServer;shouldBroadcastRconToOps()Z
 
- 
shouldBroadcastConsoleToOpspublic boolean shouldBroadcastConsoleToOps()- Specified by:
- shouldBroadcastConsoleToOpsin interface- CommandOutput
- Specified by:
- shouldBroadcastConsoleToOpsin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - N_- Ldr;N_()Z- intermediary - method_9201- Lnet/minecraft/class_2165;method_9201()Z- named - shouldBroadcastConsoleToOps- Lnet/minecraft/server/command/CommandOutput;shouldBroadcastConsoleToOps()Z
 
- 
getRunDirectory- Overrides:
- getRunDirectoryin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - z- Lnet/minecraft/server/MinecraftServer;z()Ljava/io/File;- intermediary - method_3831- Lnet/minecraft/server/MinecraftServer;method_3831()Ljava/io/File;- named - getRunDirectory- Lnet/minecraft/server/MinecraftServer;getRunDirectory()Ljava/io/File;
 
- 
isDedicatedpublic boolean isDedicated()Checks whether this server is a dedicated server.A dedicated server refers to a Minecraft server implementation which is detached from a parent Minecraft client process. A dedicated Minecraft server only accepts remote connections. - Specified by:
- isDedicatedin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - l- Lnet/minecraft/server/MinecraftServer;l()Z- intermediary - method_3816- Lnet/minecraft/server/MinecraftServer;method_3816()Z- named - isDedicated- Lnet/minecraft/server/MinecraftServer;isDedicated()Z
 
- 
getRateLimitpublic int getRateLimit()- Specified by:
- getRateLimitin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - m- Lnet/minecraft/server/MinecraftServer;m()I- intermediary - method_30612- Lnet/minecraft/server/MinecraftServer;method_30612()I- named - getRateLimit- Lnet/minecraft/server/MinecraftServer;getRateLimit()I
 
- 
isUsingNativeTransportpublic boolean isUsingNativeTransport()- Specified by:
- isUsingNativeTransportin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - n- Lnet/minecraft/server/MinecraftServer;n()Z- intermediary - method_3759- Lnet/minecraft/server/MinecraftServer;method_3759()Z- named - isUsingNativeTransport- Lnet/minecraft/server/MinecraftServer;isUsingNativeTransport()Z
 
- 
setCrashReport- Overrides:
- setCrashReportin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lo;)V- intermediary - method_3744- Lnet/minecraft/server/MinecraftServer;method_3744(Lnet/minecraft/class_128;)V- named - setCrashReport- Lnet/minecraft/server/MinecraftServer;setCrashReport(Lnet/minecraft/util/crash/CrashReport;)V
 
- 
addExtraSystemDetails- Specified by:
- addExtraSystemDetailsin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lab;)Lab;- intermediary - method_3859- Lnet/minecraft/server/MinecraftServer;method_3859(Lnet/minecraft/class_6396;)Lnet/minecraft/class_6396;- named - addExtraSystemDetails- Lnet/minecraft/server/MinecraftServer;addExtraSystemDetails(Lnet/minecraft/util/SystemDetails;)Lnet/minecraft/util/SystemDetails;
 
- 
getModStatus- Overrides:
- getModStatusin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - K- Lnet/minecraft/server/MinecraftServer;K()Laoz;- intermediary - method_24307- Lnet/minecraft/server/MinecraftServer;method_24307()Lnet/minecraft/class_6683;- named - getModStatus- Lnet/minecraft/server/MinecraftServer;getModStatus()Lnet/minecraft/util/ModStatus;
 
- 
openToLanOpens a server for LAN connections. This is only supported on an integrated server, a dedicated server will always fail to open to LAN.- Overrides:
- openToLanin class- MinecraftServer
- Parameters:
- gameMode- the game mode connecting players will have set by default
- cheatsAllowed- whether players on the server have operator permissions
- port- the port to open up to LAN connections
- Returns:
- whether the server was successfully opened to LAN
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lcmj;ZI)Z- intermediary - method_3763- Lnet/minecraft/server/MinecraftServer;method_3763(Lnet/minecraft/class_1934;ZI)Z- named - openToLan- Lnet/minecraft/server/MinecraftServer;openToLan(Lnet/minecraft/world/GameMode;ZI)Z
 
- 
shutdownpublic void shutdown()- Overrides:
- shutdownin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - t- Lnet/minecraft/server/MinecraftServer;t()V- intermediary - method_3782- Lnet/minecraft/server/MinecraftServer;method_3782()V- named - shutdown- Lnet/minecraft/server/MinecraftServer;shutdown()V
 
- 
stoppublic void stop(boolean waitForShutdown) Stops this server.- Overrides:
- stopin class- MinecraftServer
- Parameters:
- waitForShutdown- whether to wait for server shutdown, if called outside the server thread
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Z)V- intermediary - method_3747- Lnet/minecraft/server/MinecraftServer;method_3747(Z)V- named - stop- Lnet/minecraft/server/MinecraftServer;stop(Z)V
 
- 
isRemotepublic boolean isRemote()- Specified by:
- isRemotein class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - p- Lnet/minecraft/server/MinecraftServer;p()Z- intermediary - method_3860- Lnet/minecraft/server/MinecraftServer;method_3860()Z- named - isRemote- Lnet/minecraft/server/MinecraftServer;isRemote()Z
 
- 
getServerPortpublic int getServerPort()- Overrides:
- getServerPortin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - M- Lnet/minecraft/server/MinecraftServer;M()I- intermediary - method_3756- Lnet/minecraft/server/MinecraftServer;method_3756()I- named - getServerPort- Lnet/minecraft/server/MinecraftServer;getServerPort()I
 
- 
setDefaultGameMode- Overrides:
- setDefaultGameModein class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lcmj;)V- intermediary - method_3838- Lnet/minecraft/server/MinecraftServer;method_3838(Lnet/minecraft/class_1934;)V- named - setDefaultGameMode- Lnet/minecraft/server/MinecraftServer;setDefaultGameMode(Lnet/minecraft/world/GameMode;)V
 
- 
areCommandBlocksEnabledpublic boolean areCommandBlocksEnabled()Specifies whether command blocks can execute commands on the server.- Specified by:
- areCommandBlocksEnabledin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - o- Lnet/minecraft/server/MinecraftServer;o()Z- intermediary - method_3812- Lnet/minecraft/server/MinecraftServer;method_3812()Z- named - areCommandBlocksEnabled- Lnet/minecraft/server/MinecraftServer;areCommandBlocksEnabled()Z
 
- 
getOpPermissionLevelpublic int getOpPermissionLevel()- Specified by:
- getOpPermissionLevelin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - i- Lnet/minecraft/server/MinecraftServer;i()I- intermediary - method_3798- Lnet/minecraft/server/MinecraftServer;method_3798()I- named - getOpPermissionLevel- Lnet/minecraft/server/MinecraftServer;getOpPermissionLevel()I
 
- 
getFunctionPermissionLevelpublic int getFunctionPermissionLevel()- Specified by:
- getFunctionPermissionLevelin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - j- Lnet/minecraft/server/MinecraftServer;j()I- intermediary - method_21714- Lnet/minecraft/server/MinecraftServer;method_21714()I- named - getFunctionPermissionLevel- Lnet/minecraft/server/MinecraftServer;getFunctionPermissionLevel()I
 
- 
setLocalPlayerUuid- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfyp;a(Ljava/util/UUID;)V- intermediary - method_4817- Lnet/minecraft/class_1132;method_4817(Ljava/util/UUID;)V- named - setLocalPlayerUuid- Lnet/minecraft/server/integrated/IntegratedServer;setLocalPlayerUuid(Ljava/util/UUID;)V
 
- 
isHostpublic boolean isHost(com.mojang.authlib.GameProfile profile) - Specified by:
- isHostin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - a- Lnet/minecraft/server/MinecraftServer;a(Lcom/mojang/authlib/GameProfile;)Z- intermediary - method_19466- Lnet/minecraft/server/MinecraftServer;method_19466(Lcom/mojang/authlib/GameProfile;)Z- named - isHost- Lnet/minecraft/server/MinecraftServer;isHost(Lcom/mojang/authlib/GameProfile;)Z
 
- 
adjustTrackingDistancepublic int adjustTrackingDistance(int initialDistance) - Overrides:
- adjustTrackingDistancein class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - b- Lnet/minecraft/server/MinecraftServer;b(I)I- intermediary - method_27903- Lnet/minecraft/server/MinecraftServer;method_27903(I)I- named - adjustTrackingDistance- Lnet/minecraft/server/MinecraftServer;adjustTrackingDistance(I)I
 
- 
syncChunkWritespublic boolean syncChunkWrites()- Overrides:
- syncChunkWritesin class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - aS- Lnet/minecraft/server/MinecraftServer;aS()Z- intermediary - method_27051- Lnet/minecraft/server/MinecraftServer;method_27051()Z- named - syncChunkWrites- Lnet/minecraft/server/MinecraftServer;syncChunkWrites()Z
 
- 
getForcedGameModeReturns the game mode a player should be set to when connecting to the server, ornullif none is set.- Overrides:
- getForcedGameModein class- MinecraftServer
- Mappings:
- Namespace - Name - Mixin selector - official - aX- Lnet/minecraft/server/MinecraftServer;aX()Lcmj;- intermediary - method_3761- Lnet/minecraft/server/MinecraftServer;method_3761()Lnet/minecraft/class_1934;- named - getForcedGameMode- Lnet/minecraft/server/MinecraftServer;getForcedGameMode()Lnet/minecraft/world/GameMode;
 
 
-