public class DedicatedServer extends MinecraftServer implements IServer
currentTask, percentDone, receivedPacketCountArray, receivedPacketSizeArray, sentPacketCountArray, sentPacketSizeArray, theProfiler, tickTimeArray, worldServers, worldTickTimes
Constructor and Description |
---|
DedicatedServer(File par1File) |
Modifier and Type | Method and Description |
---|---|
void |
addPendingCommand(String par1Str,
ICommandSender par2ICommandSender) |
CrashReport |
addServerInfoToCrashReport(CrashReport par1CrashReport)
Adds the server info, including from theWorldServer, to the crash report.
|
void |
addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper) |
boolean |
allowSpawnMonsters() |
boolean |
canStructuresSpawn() |
void |
enableGui() |
void |
executePendingCommands() |
boolean |
func_96290_a(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer) |
boolean |
getAllowNether() |
boolean |
getBooleanProperty(String par1Str,
boolean par2)
Gets a boolean property.
|
ServerConfigurationManager |
getConfigurationManager() |
DedicatedPlayerList |
getDedicatedPlayerList() |
int |
getDifficulty()
Defaults to "1" (Easy) for the dedicated server, defaults to "2" (Normal) on the client.
|
EnumGameType |
getGameType() |
boolean |
getGuiEnabled() |
int |
getIntProperty(String par1Str,
int par2)
Gets an integer property.
|
ILogAgent |
getLogAgent() |
NetworkListenThread |
getNetworkThread() |
String |
getSettingsFilename()
Returns the filename where server properties are stored
|
int |
getSpawnProtectionSize()
Return the spawn protection area's size.
|
String |
getStringProperty(String par1Str,
String par2Str)
Gets a string property.
|
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 |
saveProperties()
Saves all of the server properties to the properties file.
|
void |
setProperty(String par1Str,
Object par2Obj)
Saves an Object with the given property name.
|
String |
shareToLAN(EnumGameType par1EnumGameType,
boolean par2)
On dedicated does nothing.
|
void |
updateTimeLightAndEntities() |
addServerTypeToSnooper, canCommandSenderUseCommand, canCreateBonusChest, deleteWorldAndStopServer, enableProfiling, executeCommand, fmlReentry, func_104055_i, func_104056_am, func_82010_a, getActiveAnvilConverter, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderName, getCurrentPlayerCount, getFile, getFolderName, getHostname, getKeyPair, getMaxPlayers, getMinecraftVersion, getMOTD, getPlayerCoordinates, getPlayerUsageSnooper, getPlugins, getPort, getPossibleCompletions, getServer, getServerConfigurationManager, getServerHostname, getServerModName, getServerMOTD, getServerOwner, getServerPort, getTexturePack, getTickCounter, getUserMessage, getWorldName, initiateShutdown, 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, setGameType, setHostname, setKeyPair, setMOTD, setOnlineMode, setServerOwner, setServerPort, setTexturePack, setWorldName, startServerThread, stopServer, textureSize, tick, translateString, worldServerForDimension
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeCommand, getAllUsernames, getCurrentPlayerCount, getFolderName, getHostname, getMaxPlayers, getMinecraftVersion, getPlugins, getPort, getServerMOTD, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning
public DedicatedServer(File par1File)
public boolean canStructuresSpawn()
canStructuresSpawn
in class MinecraftServer
public EnumGameType getGameType()
getGameType
in class MinecraftServer
public int getDifficulty()
getDifficulty
in class MinecraftServer
public boolean isHardcore()
isHardcore
in class MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
addServerInfoToCrashReport
in class MinecraftServer
public void updateTimeLightAndEntities()
updateTimeLightAndEntities
in class MinecraftServer
public boolean getAllowNether()
getAllowNether
in class MinecraftServer
public boolean allowSpawnMonsters()
public void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
addServerStatsToSnooper
in interface IPlayerUsage
addServerStatsToSnooper
in class MinecraftServer
public boolean isSnooperEnabled()
isSnooperEnabled
in interface IPlayerUsage
isSnooperEnabled
in class MinecraftServer
public void addPendingCommand(String par1Str, ICommandSender par2ICommandSender)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer
in class MinecraftServer
public DedicatedPlayerList getDedicatedPlayerList()
public NetworkListenThread getNetworkThread()
getNetworkThread
in class MinecraftServer
public int getIntProperty(String par1Str, int par2)
getIntProperty
in interface IServer
public String getStringProperty(String par1Str, String par2Str)
getStringProperty
in interface IServer
public boolean getBooleanProperty(String par1Str, boolean par2)
public void setProperty(String par1Str, Object par2Obj)
setProperty
in interface IServer
public void saveProperties()
saveProperties
in interface IServer
public String getSettingsFilename()
getSettingsFilename
in interface IServer
public boolean getGuiEnabled()
getGuiEnabled
in class MinecraftServer
public String shareToLAN(EnumGameType par1EnumGameType, boolean par2)
shareToLAN
in class MinecraftServer
public boolean isCommandBlockEnabled()
isCommandBlockEnabled
in class MinecraftServer
public int getSpawnProtectionSize()
getSpawnProtectionSize
in class MinecraftServer
public boolean func_96290_a(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
func_96290_a
in class MinecraftServer
public ILogAgent getLogAgent()
getLogAgent
in interface IPlayerUsage
getLogAgent
in class MinecraftServer
public ServerConfigurationManager getConfigurationManager()
getConfigurationManager
in class MinecraftServer
public void enableGui()