net.minecraft.src
Class DedicatedServer

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

public class DedicatedServer
extends MinecraftServer
implements IServer


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
DedicatedServer(File par1File)
           
 
Method Summary
 void addPendingCommand(String par1Str, ICommandSender par2ICommandSender)
           
 CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
          iterates the worldServers and adds their info also
 void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
           
 boolean allowSpawnMonsters()
           
 boolean canStructuresSpawn()
           
 void executePendingCommands()
           
 void func_79001_aj()
           
 boolean getAllowNether()
           
 ServerConfigurationManager getConfigurationManager()
           
 DedicatedPlayerList getDedicatedPlayerList()
           
 int getDifficulty()
          defaults to "1" for the dedicated server
 EnumGameType getGameType()
           
 boolean getGuiEnabled()
           
 NetworkListenThread getNetworkThread()
           
 boolean getOrSetBoolProperty(String par1Str, boolean par2)
           
 int getOrSetIntProperty(String par1Str, int par2)
           
 String getOrSetProperty(String par1Str, String par2Str)
           
 String getSettingsFilePath()
           
 boolean isDedicatedServer()
           
 boolean isHardcore()
          defaults to false
 boolean isSnooperEnabled()
          Returns whether snooping is enabled or not.
 void saveSettingsToFile()
           
 void setArbitraryProperty(String par1Str, Object par2Obj)
           
 String shareToLAN(EnumGameType par1EnumGameType, boolean par2)
          does nothing on dedicated.
 void updateTimeLightAndEntities()
           
 
Methods inherited from class net.minecraft.server.MinecraftServer
addServerTypeToSnooper, addToOnlinePlayerList, canCommandSenderUseCommand, canCreateBonusChest, deleteWorldAndStopServer, doLogInfoEvent, enableProfiling, executeCommand, fmlReentry, func_71196_a, func_80003_ah, getActiveAnvilConverter, getAllUsernames, getBuildLimit, getCanNPCsSpawn, getCanSpawnAnimals, getCommandManager, getCommandSenderName, getFile, getFolderName, 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, setGameType, setKeyPair, setMOTD, setOnlineMode, setServerOwner, setServerPort, setServerStopping, setSpawnAnimals, setSpawnNpcs, setTexturePack, setWorldName, startServerThread, stopServer, textureFlag, tick, translateString, worldServerForDimension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.minecraft.src.IServer
doLogInfoEvent, executeCommand, getAllUsernames, getFolderName, getHostName, getMaxPlayers, getMinecraftVersion, getMyServerPort, getPlayerListSize, getServerMOTD, logInfoEvent, logInfoMessage, logSevereEvent, logWarningMessage, returnAnEmptyString
 

Constructor Detail

DedicatedServer

public DedicatedServer(File par1File)
Method Detail

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

addServerInfoToCrashReport

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

Overrides:
addServerInfoToCrashReport in class MinecraftServer

updateTimeLightAndEntities

public void updateTimeLightAndEntities()
Overrides:
updateTimeLightAndEntities in class MinecraftServer

getAllowNether

public boolean getAllowNether()
Overrides:
getAllowNether in class MinecraftServer

allowSpawnMonsters

public boolean allowSpawnMonsters()

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

addPendingCommand

public void addPendingCommand(String par1Str,
                              ICommandSender par2ICommandSender)

executePendingCommands

public void executePendingCommands()

isDedicatedServer

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

getDedicatedPlayerList

public DedicatedPlayerList getDedicatedPlayerList()

getNetworkThread

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

getOrSetIntProperty

public int getOrSetIntProperty(String par1Str,
                               int par2)
Specified by:
getOrSetIntProperty in interface IServer

getOrSetProperty

public String getOrSetProperty(String par1Str,
                               String par2Str)
Specified by:
getOrSetProperty in interface IServer

getOrSetBoolProperty

public boolean getOrSetBoolProperty(String par1Str,
                                    boolean par2)

setArbitraryProperty

public void setArbitraryProperty(String par1Str,
                                 Object par2Obj)
Specified by:
setArbitraryProperty in interface IServer

saveSettingsToFile

public void saveSettingsToFile()
Specified by:
saveSettingsToFile in interface IServer

getSettingsFilePath

public String getSettingsFilePath()
Specified by:
getSettingsFilePath in interface IServer

getGuiEnabled

public boolean getGuiEnabled()
Overrides:
getGuiEnabled 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

getConfigurationManager

public ServerConfigurationManager getConfigurationManager()
Overrides:
getConfigurationManager in class MinecraftServer

func_79001_aj

public void func_79001_aj()