net.minecraft.src
Class DedicatedServer
java.lang.Object
net.minecraft.server.MinecraftServer
net.minecraft.src.DedicatedServer
- All Implemented Interfaces:
- Runnable, ICommandSender, IPlayerUsage, IServer
public class DedicatedServer
- extends MinecraftServer
- implements IServer
Fields inherited from class net.minecraft.server.MinecraftServer |
currentTask, logger, percentDone, recievedPacketCountArray, recievedPacketSizeArray, sentPacketCountArray, sentPacketSizeArray, spawnProtectionSize, theProfiler, theWorldServer, tickTimeArray, worlds, worldTickTimes |
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 interface net.minecraft.src.IServer |
doLogInfoEvent, executeCommand, getAllUsernames, getFolderName, getHostName, getMaxPlayers, getMinecraftVersion, getMyServerPort, getPlayerListSize, getServerMOTD, logInfoEvent, logInfoMessage, logSevereEvent, logWarningMessage, returnAnEmptyString |
DedicatedServer
public DedicatedServer(File par1File)
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()