net.minecraft.src
Class IntegratedServer

java.lang.Object
  extended by net.minecraft.server.MinecraftServer
      extended by net.minecraft.src.IntegratedServer
All Implemented Interfaces:
Runnable, ICommandSender, IPlayerUsage

public class IntegratedServer
extends MinecraftServer


Field Summary
 
Fields inherited from class net.minecraft.server.MinecraftServer
currentTask, logger, percentDone, recievedPacketCountArray, recievedPacketSizeArray, sentPacketCountArray, sentPacketSizeArray, spawnProtectionSize, theProfiler, theWorldServer, tickTimeArray, worlds, worldTickTimes
 
Constructor Summary
IntegratedServer(Minecraft par1Minecraft, String par2Str, String par3Str, WorldSettings par4WorldSettings)
           
 
Method Summary
 CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
          iterates the worldServers and adds their info also
 void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
           
 boolean canStructuresSpawn()
           
 IntegratedServerListenThread func_71343_a()
           
 boolean func_71344_c()
           
 int getDifficulty()
          defaults to "1" for the dedicated server
 EnumGameType getGameType()
           
 NetworkListenThread getNetworkThread()
           
 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 dimensions
 void setServerStopping()
          sets serverRunning to false
 String shareToLAN(EnumGameType par1EnumGameType, boolean par2)
          does nothing on dedicated.
 void stopServer()
          Saves all necessary data as preparation for stopping the server.
 void tick()
          main function called by run() every loop
 
Methods inherited from class net.minecraft.server.MinecraftServer
addServerTypeToSnooper, addToOnlinePlayerList, canCommandSenderUseCommand, canCreateBonusChest, deleteWorldAndStopServer, doLogInfoEvent, enableProfiling, executeCommand, fmlReentry, func_71196_a, func_80003_ah, getActiveAnvilConverter, getAllowNether, getAllUsernames, getBuildLimit, getCanNPCsSpawn, getCanSpawnAnimals, getCommandManager, getCommandSenderName, getConfigurationManager, getFile, getFolderName, getGuiEnabled, getHostname, getHostName, getHostName, getKeyPair, getMaxPlayers, getMinecraftVersion, getMOTD, getMyServerPort, getPlayerListSize, getPossibleCompletions, getServer, getServerModName, getServerMOTD, getServerOwner, getServerPort, getTexturePack, getTickCounter, getUserMessage, getWorldName, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, logInfoEvent, logInfoMessage, logSevereEvent, logWarningMessage, main, returnAnEmptyString, run, sendChatToPlayer, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setConfigurationManager, setDemo, setDifficultyForAllDimensions, setFolderName, setKeyPair, setMOTD, setOnlineMode, setServerOwner, setServerPort, setSpawnAnimals, setSpawnNpcs, setTexturePack, setWorldName, startServerThread, textureFlag, translateString, updateTimeLightAndEntities, worldServerForDimension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegratedServer

public IntegratedServer(Minecraft par1Minecraft,
                        String par2Str,
                        String par3Str,
                        WorldSettings par4WorldSettings)
Method Detail

tick

public void tick()
main function called by run() every loop

Overrides:
tick in class MinecraftServer

canStructuresSpawn

public boolean canStructuresSpawn()
Specified by:
canStructuresSpawn in class MinecraftServer

getGameType

public EnumGameType getGameType()
Specified by:
getGameType in class MinecraftServer

getDifficulty

public int getDifficulty()
defaults to "1" for the dedicated server

Specified by:
getDifficulty in class MinecraftServer

isHardcore

public boolean isHardcore()
defaults to false

Specified by:
isHardcore in class MinecraftServer

isDedicatedServer

public boolean isDedicatedServer()
Specified by:
isDedicatedServer in class MinecraftServer

func_71343_a

public IntegratedServerListenThread func_71343_a()

addServerInfoToCrashReport

public CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
iterates the worldServers and adds their info also

Overrides:
addServerInfoToCrashReport in class MinecraftServer

addServerStatsToSnooper

public void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
Specified by:
addServerStatsToSnooper in interface IPlayerUsage
Overrides:
addServerStatsToSnooper in class MinecraftServer

isSnooperEnabled

public boolean isSnooperEnabled()
Returns whether snooping is enabled or not.

Specified by:
isSnooperEnabled in interface IPlayerUsage
Overrides:
isSnooperEnabled in class MinecraftServer

shareToLAN

public String shareToLAN(EnumGameType par1EnumGameType,
                         boolean par2)
does nothing on dedicated. on integrated, sets commandsAllowedForAll and gameType and allows external connections

Specified by:
shareToLAN in class MinecraftServer

stopServer

public void stopServer()
Saves all necessary data as preparation for stopping the server.

Overrides:
stopServer in class MinecraftServer

setServerStopping

public void setServerStopping()
sets serverRunning to false

Overrides:
setServerStopping in class MinecraftServer

func_71344_c

public boolean func_71344_c()

setGameType

public void setGameType(EnumGameType par1EnumGameType)
sets the game type for all dimensions

Overrides:
setGameType in class MinecraftServer

getNetworkThread

public NetworkListenThread getNetworkThread()
Specified by:
getNetworkThread in class MinecraftServer