Package net.minecraft.src
Class IntegratedServer
java.lang.Object
net.minecraft.server.MinecraftServer
net.minecraft.src.IntegratedServer
- All Implemented Interfaces:
Runnable,ICommandSender,IPlayerUsage
-
Field Summary
Fields inherited from class net.minecraft.server.MinecraftServer
commandManager, currentTask, debugBuffer, debugUpdateTimeServer, difficultyLevel, percentDone, receivedPacketCountArray, receivedPacketSizeArray, sentPacketCountArray, sentPacketSizeArray, serverProxy, theProfiler, tickTimeArray, timeOfLastDimensionTick, worldServers -
Constructor Summary
ConstructorsConstructorDescriptionIntegratedServer(Minecraft par1Minecraft, String par2Str, String par3Str, WorldSettings par4WorldSettings) -
Method Summary
Modifier and TypeMethodDescriptionaddServerInfoToCrashReport(CrashReport par1CrashReport) Adds the server info, including from theWorldServer, to the crash report.voidaddServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper) booleanprotected voidfinalTick(CrashReport par1CrashReport) Called on exit from the main run() loop.intprotected FileintDefaults to "1" (Easy) for the dedicated server, defaults to "2" (Normal) on the client.booleanReturns true if this integrated server is open to LANGets the IntergratedServerListenThread.voidSets the serverRunning variable to false, in order to get the server to shut down.booleanReturn whether command blocks are enabled.booleanbooleanDefaults to false.booleanReturns whether snooping is enabled or not.protected voidloadAllWorlds(String par1Str, String par2Str, long par3, WorldType par5WorldType, String par6Str) voidsetGameType(EnumGameType par1EnumGameType) Sets the game type for all worlds.shareToLAN(EnumGameType par1EnumGameType, boolean par2) On dedicated does nothing.protected booleanInitialises the server and starts it.voidSaves all necessary data as preparation for stopping the server.voidtick()Main function called by run() every loop.Methods inherited from class net.minecraft.server.MinecraftServer
addServerTypeToSnooper, allowSpawnMonsters, canCommandSenderUseCommand, canCreateBonusChest, clearCurrentTask, convertMapIfNeeded, deleteWorldAndStopServer, enableProfiling, executeCommand, func_143006_e, func_143007_ar, func_82010_a, getActiveAnvilConverter, getAllowNether, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderName, getConfigurationManager, getCurrentPlayerCount, getCurrentTimeMillis, getEntityWorld, getFile, getFolderName, getForceGamemode, getGuiEnabled, getHostname, getIsServer, getKeyPair, getMaxPlayers, getMinecraftVersion, getMotd, getMOTD, getPlayerCoordinates, getPlayerUsageSnooper, getPlugins, getPort, getPossibleCompletions, getServer, getServerConfigurationManager, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerProxy, getSpawnProtectionSize, getTexturePack, getTickCounter, getUserMessage, getWorldName, initialWorldChunkLoad, isBlockProtected, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, logDebug, logInfo, logSevere, logWarning, main, outputPercentRemaining, run, saveAllWorlds, sendChatToPlayer, sendTimerSpeedImmediately, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setConfigurationManager, setDemo, setDifficulty, setDifficultyForAllWorlds, setDifficultyFromName, setFolderName, setForceGamemode, setHostname, setKeyPair, setMOTD, setOnlineMode, setServerOwner, setServerPort, setTexturePack, setUserMessage, setWorldName, startServerThread, systemExitNow, textureSize, updateTimeLightAndEntities, worldServerForDimension
-
Constructor Details
-
IntegratedServer
public IntegratedServer(Minecraft par1Minecraft, String par2Str, String par3Str, WorldSettings par4WorldSettings)
-
-
Method Details
-
loadAllWorlds
protected void loadAllWorlds(String par1Str, String par2Str, long par3, WorldType par5WorldType, String par6Str) - Overrides:
loadAllWorldsin classMinecraftServer
-
startServer
Initialises the server and starts it.- Specified by:
startServerin classMinecraftServer- Throws:
IOException
-
tick
public void tick()Main function called by run() every loop.- Overrides:
tickin classMinecraftServer
-
canStructuresSpawn
public boolean canStructuresSpawn()- Specified by:
canStructuresSpawnin classMinecraftServer
-
getGameType
- Specified by:
getGameTypein classMinecraftServer
-
getDifficulty
public int getDifficulty()Defaults to "1" (Easy) for the dedicated server, defaults to "2" (Normal) on the client.- Specified by:
getDifficultyin classMinecraftServer
-
isHardcore
public boolean isHardcore()Defaults to false.- Specified by:
isHardcorein classMinecraftServer
-
getDataDirectory
- Overrides:
getDataDirectoryin classMinecraftServer
-
isDedicatedServer
public boolean isDedicatedServer()- Specified by:
isDedicatedServerin classMinecraftServer
-
getServerListeningThread
Gets the IntergratedServerListenThread. -
finalTick
Called on exit from the main run() loop.- Overrides:
finalTickin classMinecraftServer
-
addServerInfoToCrashReport
Adds the server info, including from theWorldServer, to the crash report.- Overrides:
addServerInfoToCrashReportin classMinecraftServer
-
addServerStatsToSnooper
- Specified by:
addServerStatsToSnooperin interfaceIPlayerUsage- Overrides:
addServerStatsToSnooperin classMinecraftServer
-
isSnooperEnabled
public boolean isSnooperEnabled()Returns whether snooping is enabled or not.- Specified by:
isSnooperEnabledin interfaceIPlayerUsage- Overrides:
isSnooperEnabledin classMinecraftServer
-
getLogAgent
- Specified by:
getLogAgentin interfaceIPlayerUsage- Specified by:
getLogAgentin classMinecraftServer
-
stopServer
public void stopServer()Saves all necessary data as preparation for stopping the server.- Overrides:
stopServerin classMinecraftServer
-
initiateShutdown
public void initiateShutdown()Sets the serverRunning variable to false, in order to get the server to shut down.- Overrides:
initiateShutdownin classMinecraftServer
-
getPublic
public boolean getPublic()Returns true if this integrated server is open to LAN -
setGameType
Sets the game type for all worlds.- Overrides:
setGameTypein classMinecraftServer
-
isCommandBlockEnabled
public boolean isCommandBlockEnabled()Return whether command blocks are enabled.- Specified by:
isCommandBlockEnabledin classMinecraftServer
-
func_110455_j
public int func_110455_j()- Specified by:
func_110455_jin classMinecraftServer
-
getNetworkThread
- Specified by:
getNetworkThreadin classMinecraftServer
-