public class IntegratedServer extends MinecraftServer
currentTask, percentDone, receivedPacketCountArray, receivedPacketSizeArray, sentPacketCountArray, sentPacketSizeArray, theProfiler, tickTimeArray, worldServers, worldTickTimes| Constructor and Description |
|---|
IntegratedServer(Minecraft par1Minecraft,
String par2Str,
String par3Str,
WorldSettings par4WorldSettings) |
| Modifier and Type | Method and Description |
|---|---|
CrashReport |
addServerInfoToCrashReport(CrashReport par1CrashReport)
Adds the server info, including from theWorldServer, to the crash report.
|
void |
addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper) |
boolean |
canStructuresSpawn() |
int |
func_110455_j() |
int |
getDifficulty()
Defaults to "1" (Easy) for the dedicated server, defaults to "2" (Normal) on the client.
|
EnumGameType |
getGameType() |
ILogAgent |
getLogAgent() |
NetworkListenThread |
getNetworkThread() |
boolean |
getPublic()
Returns true if this integrated server is open to LAN
|
IntegratedServerListenThread |
getServerListeningThread()
Gets the IntergratedServerListenThread.
|
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.
|
void |
setGameType(EnumGameType par1EnumGameType)
Sets the game type for all worlds.
|
String |
shareToLAN(EnumGameType par1EnumGameType,
boolean par2)
On dedicated does nothing.
|
void |
stopServer()
Saves all necessary data as preparation for stopping the server.
|
void |
tick()
Main function called by run() every loop.
|
addServerTypeToSnooper, canCommandSenderUseCommand, canCreateBonusChest, deleteWorldAndStopServer, enableProfiling, executeCommand, func_82010_a, getActiveAnvilConverter, getAllowNether, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderName, getConfigurationManager, getCurrentPlayerCount, getEntityWorld, getFile, getFolderName, getForceGamemode, getGuiEnabled, getHostname, getKeyPair, getMaxPlayers, getMinecraftVersion, getMOTD, getPlayerCoordinates, getPlayerUsageSnooper, getPlugins, getPort, getPossibleCompletions, getServer, getServerConfigurationManager, getServerHostname, getServerModName, getServerMOTD, getServerOwner, getServerPort, getServerProxy, getSpawnProtectionSize, getSystemTimeMillis, getTexturePack, getTickCounter, getUserMessage, getWorldName, isBlockProtected, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, logDebug, logInfo, logSevere, logWarning, main, run, sendChatToPlayer, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setConfigurationManager, setDemo, setDifficultyForAllWorlds, setFolderName, setForceGamemode, setHostname, setKeyPair, setMOTD, setOnlineMode, setServerOwner, setServerPort, setTexturePack, setWorldName, startServerThread, textureSize, updateTimeLightAndEntities, worldServerForDimensionpublic IntegratedServer(Minecraft par1Minecraft, String par2Str, String par3Str, WorldSettings par4WorldSettings)
public void tick()
tick in class MinecraftServerpublic boolean canStructuresSpawn()
canStructuresSpawn in class MinecraftServerpublic EnumGameType getGameType()
getGameType in class MinecraftServerpublic int getDifficulty()
getDifficulty in class MinecraftServerpublic boolean isHardcore()
isHardcore in class MinecraftServerpublic boolean isDedicatedServer()
isDedicatedServer in class MinecraftServerpublic IntegratedServerListenThread getServerListeningThread()
public CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
addServerInfoToCrashReport in class MinecraftServerpublic void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
addServerStatsToSnooper in interface IPlayerUsageaddServerStatsToSnooper in class MinecraftServerpublic boolean isSnooperEnabled()
isSnooperEnabled in interface IPlayerUsageisSnooperEnabled in class MinecraftServerpublic String shareToLAN(EnumGameType par1EnumGameType, boolean par2)
shareToLAN in class MinecraftServerpublic ILogAgent getLogAgent()
getLogAgent in interface IPlayerUsagegetLogAgent in class MinecraftServerpublic void stopServer()
stopServer in class MinecraftServerpublic void initiateShutdown()
initiateShutdown in class MinecraftServerpublic boolean getPublic()
public void setGameType(EnumGameType par1EnumGameType)
setGameType in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic int func_110455_j()
func_110455_j in class MinecraftServerpublic NetworkListenThread getNetworkThread()
getNetworkThread in class MinecraftServer