public class IntegratedServer extends MinecraftServer
| Modifier and Type | Field and Description | 
|---|---|
| private boolean | isGamePaused | 
| private boolean | isPublic | 
| private ThreadLanServerPing | lanServerPing | 
| private static org.apache.logging.log4j.Logger | logger | 
| private Minecraft | mcThe Minecraft instance. | 
| private WorldSettings | theWorldSettings | 
commandManager, currentTask, futureTaskQueue, percentDone, serverProxy, theProfiler, tickTimeArray, timeOfLastDimensionTick, USER_CACHE_FILE, worldServers| Constructor and Description | 
|---|
| IntegratedServer(Minecraft mcIn) | 
| IntegratedServer(Minecraft mcIn,
                java.lang.String folderName,
                java.lang.String worldName,
                WorldSettings settings) | 
| Modifier and Type | Method and Description | 
|---|---|
| CrashReport | addServerInfoToCrashReport(CrashReport report)Adds the server info, including from theWorldServer, to the crash report. | 
| void | addServerStatsToSnooper(PlayerUsageSnooper playerSnooper) | 
| boolean | canStructuresSpawn() | 
| protected ServerCommandManager | createNewCommandManager() | 
| protected void | finalTick(CrashReport report)Called on exit from the main run() loop. | 
| boolean | func_181034_q() | 
| boolean | func_181035_ah() | 
| boolean | func_183002_r() | 
| java.io.File | getDataDirectory() | 
| EnumDifficulty | getDifficulty()Get the server's difficulty | 
| WorldSettings.GameType | getGameType() | 
| int | getOpPermissionLevel() | 
| boolean | getPublic()Returns true if this integrated server is open to LAN | 
| void | initiateShutdown()Sets the serverRunning variable to false, in order to get the server to shut down. | 
| boolean | isCommandBlockEnabled()Return whether command blocks are enabled. | 
| boolean | isDedicatedServer() | 
| boolean | isHardcore()Defaults to false. | 
| boolean | isSnooperEnabled()Returns whether snooping is enabled or not. | 
| protected void | loadAllWorlds(java.lang.String p_71247_1_,
             java.lang.String p_71247_2_,
             long seed,
             WorldType type,
             java.lang.String p_71247_6_) | 
| void | setDifficultyForAllWorlds(EnumDifficulty difficulty) | 
| void | setGameType(WorldSettings.GameType gameMode)Sets the game type for all worlds. | 
| void | setStaticInstance() | 
| java.lang.String | shareToLAN(WorldSettings.GameType type,
          boolean allowCheats)On dedicated does nothing. | 
| protected boolean | startServer()Initialises the server and starts it. | 
| void | stopServer()Saves all necessary data as preparation for stopping the server. | 
| void | tick()Main function called by run() every loop. | 
addChatMessage, addScheduledTask, addServerTypeToSnooper, allowSpawnMonsters, callFromMainThread, canCommandSenderUseCommand, canCreateBonusChest, clearCurrentTask, convertMapIfNeeded, deleteWorldAndStopServer, enableProfiling, getActiveAnvilConverter, getAllowNether, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderEntity, getConfigurationManager, getCurrentPlayerCount, getCurrentTimeMillis, getDisplayName, getEntityFromUuid, getEntityWorld, getFile, getFolderName, getForceGamemode, getGameProfileRepository, getGameProfiles, getGuiEnabled, getKeyPair, getMaxPlayerIdleMinutes, getMaxPlayers, getMaxWorldSize, getMinecraftSessionService, getMinecraftVersion, getMOTD, getName, getNetworkCompressionTreshold, getNetworkSystem, getPlayerProfileCache, getPlayerUsageSnooper, getPosition, getPositionVector, getResourcePackHash, getResourcePackUrl, getServer, getServerModName, getServerOwner, getServerProxy, getServerStatusResponse, getSpawnProtectionSize, getTabCompletions, getTickCounter, getUserMessage, getWorldName, initialWorldChunkLoad, isAnnouncingPlayerAchievements, isAnvilFileSet, isBlockProtected, isCallingFromMinecraftThread, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, logWarning, outputPercentRemaining, refreshStatusNextTick, run, saveAllWorlds, sendCommandFeedback, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setCommandStat, setConfigManager, setDemo, setFolderName, setInstance, setKeyPair, setMOTD, setOnlineMode, setPlayerIdleTimeout, setResourcePack, setResourcePackFromWorld, setServerOwner, setUserMessage, setWorldName, startServerThread, systemExitNow, updateTimeLightAndEntities, worldServerForDimensionprivate static final org.apache.logging.log4j.Logger logger
private final Minecraft mc
private final WorldSettings theWorldSettings
private boolean isGamePaused
private boolean isPublic
private ThreadLanServerPing lanServerPing
public IntegratedServer(Minecraft mcIn)
public IntegratedServer(Minecraft mcIn, java.lang.String folderName, java.lang.String worldName, WorldSettings settings)
protected ServerCommandManager createNewCommandManager()
createNewCommandManager in class MinecraftServerprotected void loadAllWorlds(java.lang.String p_71247_1_,
                             java.lang.String p_71247_2_,
                             long seed,
                             WorldType type,
                             java.lang.String p_71247_6_)
loadAllWorlds in class MinecraftServerprotected boolean startServer()
                       throws java.io.IOException
startServer in class MinecraftServerjava.io.IOExceptionpublic void tick()
tick in class MinecraftServerpublic boolean canStructuresSpawn()
canStructuresSpawn in class MinecraftServerpublic WorldSettings.GameType getGameType()
getGameType in class MinecraftServerpublic EnumDifficulty getDifficulty()
getDifficulty in class MinecraftServerpublic boolean isHardcore()
isHardcore in class MinecraftServerpublic boolean func_181034_q()
func_181034_q in class MinecraftServerpublic boolean func_183002_r()
func_183002_r in class MinecraftServerpublic java.io.File getDataDirectory()
getDataDirectory in class MinecraftServerpublic boolean isDedicatedServer()
isDedicatedServer in class MinecraftServerpublic boolean func_181035_ah()
func_181035_ah in class MinecraftServerprotected void finalTick(CrashReport report)
finalTick in class MinecraftServerpublic CrashReport addServerInfoToCrashReport(CrashReport report)
addServerInfoToCrashReport in class MinecraftServerpublic void setDifficultyForAllWorlds(EnumDifficulty difficulty)
setDifficultyForAllWorlds in class MinecraftServerpublic void addServerStatsToSnooper(PlayerUsageSnooper playerSnooper)
addServerStatsToSnooper in interface IPlayerUsageaddServerStatsToSnooper in class MinecraftServerpublic boolean isSnooperEnabled()
isSnooperEnabled in interface IPlayerUsageisSnooperEnabled in class MinecraftServerpublic java.lang.String shareToLAN(WorldSettings.GameType type, boolean allowCheats)
shareToLAN in class MinecraftServerpublic void stopServer()
stopServer in class MinecraftServerpublic void initiateShutdown()
initiateShutdown in class MinecraftServerpublic void setStaticInstance()
public boolean getPublic()
public void setGameType(WorldSettings.GameType gameMode)
setGameType in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic int getOpPermissionLevel()
getOpPermissionLevel in class MinecraftServer