public class DedicatedServer extends MinecraftServer implements IServer
currentTask, percentDone, serverProxy, theProfiler, tickTimeArray, worldServers, worldTickTimes
Constructor and Description |
---|
DedicatedServer(java.io.File par1File) |
Modifier and Type | Method and Description |
---|---|
void |
addPendingCommand(java.lang.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 |
executePendingCommands() |
protected void |
finalTick(CrashReport par1CrashReport)
Called on exit from the main run() loop.
|
void |
func_143006_e(int par1) |
EnumDifficulty |
func_147135_j() |
boolean |
func_155757_ar() |
boolean |
getAllowNether() |
boolean |
getBooleanProperty(java.lang.String par1Str,
boolean par2)
Gets a boolean property.
|
DedicatedPlayerList |
getConfigurationManager() |
WorldSettings.GameType |
getGameType() |
boolean |
getGuiEnabled() |
int |
getIntProperty(java.lang.String par1Str,
int par2)
Gets an integer property.
|
int |
getOpPermissionLevel() |
java.lang.String |
getSettingsFilename()
Returns the filename where server properties are stored
|
int |
getSpawnProtectionSize()
Return the spawn protection area's size.
|
java.lang.String |
getStringProperty(java.lang.String par1Str,
java.lang.String par2Str)
Gets a string property.
|
boolean |
isBlockProtected(World par1World,
int par2,
int par3,
int par4,
EntityPlayer par5EntityPlayer)
Returns true if a player does not have permission to edit the block at the given coordinates.
|
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 |
setGuiEnabled() |
void |
setProperty(java.lang.String par1Str,
java.lang.Object par2Obj)
Saves an Object with the given property name.
|
java.lang.String |
shareToLAN(WorldSettings.GameType par1EnumGameType,
boolean par2)
On dedicated does nothing.
|
protected boolean |
startServer()
Initialises the server and starts it.
|
protected void |
systemExitNow()
Directly calls System.exit(0), instantly killing the program.
|
void |
updateTimeLightAndEntities() |
addChatMessage, addServerTypeToSnooper, canCommandSenderUseCommand, canCreateBonusChest, clearCurrentTask, convertMapIfNeeded, deleteWorldAndStopServer, displayProgressMessage, enableProfiling, func_143007_ar, func_145748_c_, func_146586_a, func_147130_as, func_147132_au, func_147134_at, func_147136_ar, func_147137_ag, func_147139_a, func_155759_m, func_82010_a, getActiveAnvilConverter, getAllUsernames, getBuildLimit, getCanSpawnAnimals, getCanSpawnNPCs, getCommandManager, getCommandSenderName, getCurrentPlayerCount, getDataDirectory, getEntityWorld, getFile, getFolderName, getForceGamemode, getHostname, getKeyPair, getMaxPlayers, getMinecraftVersion, getMotd, getMOTD, getPlayerCoordinates, getPlayerUsageSnooper, getPlugins, getPort, getPossibleCompletions, getServer, getServerHostname, getServerModName, getServerOwner, getServerPort, getServerProxy, getSystemTimeMillis, getTexturePack, getTickCounter, getUserMessage, getWorldName, handleRConCommand, initialWorldChunkLoad, initiateShutdown, isDebuggingEnabled, isDemo, isFlightAllowed, isPVPEnabled, isServerInOnlineMode, isServerRunning, isServerStopped, isSinglePlayer, loadAllWorlds, logDebug, logInfo, logSevere, logWarning, main, outputPercentRemaining, resetProgresAndWorkingMessage, resetProgressAndMessage, run, saveAllWorlds, serverIsInRunLoop, setAllowFlight, setAllowPvp, setBuildLimit, setCanSpawnAnimals, setCanSpawnNPCs, setConfigurationManager, setDemo, setFolderName, setForceGamemode, setGameType, setHostname, setKeyPair, setMOTD, setOnlineMode, setServerOwner, setServerPort, setUserMessage, setWorldName, startServerThread, stopServer, tick, worldServerForDimension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllUsernames, getCurrentPlayerCount, getFolderName, getHostname, getMaxPlayers, getMinecraftVersion, getMotd, getPlugins, getPort, handleRConCommand, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning
protected boolean startServer() throws java.io.IOException
startServer
in class MinecraftServer
java.io.IOException
public boolean canStructuresSpawn()
canStructuresSpawn
in class MinecraftServer
public WorldSettings.GameType getGameType()
getGameType
in class MinecraftServer
public EnumDifficulty func_147135_j()
func_147135_j
in class MinecraftServer
public boolean isHardcore()
isHardcore
in class MinecraftServer
protected void finalTick(CrashReport par1CrashReport)
finalTick
in class MinecraftServer
public CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
addServerInfoToCrashReport
in class MinecraftServer
protected void systemExitNow()
systemExitNow
in class MinecraftServer
public void updateTimeLightAndEntities()
updateTimeLightAndEntities
in class MinecraftServer
public boolean getAllowNether()
getAllowNether
in class MinecraftServer
public boolean allowSpawnMonsters()
allowSpawnMonsters
in class MinecraftServer
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(java.lang.String par1Str, ICommandSender par2ICommandSender)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer
in class MinecraftServer
public DedicatedPlayerList getConfigurationManager()
getConfigurationManager
in class MinecraftServer
public int getIntProperty(java.lang.String par1Str, int par2)
getIntProperty
in interface IServer
public java.lang.String getStringProperty(java.lang.String par1Str, java.lang.String par2Str)
getStringProperty
in interface IServer
public boolean getBooleanProperty(java.lang.String par1Str, boolean par2)
public void setProperty(java.lang.String par1Str, java.lang.Object par2Obj)
setProperty
in interface IServer
public void saveProperties()
saveProperties
in interface IServer
public java.lang.String getSettingsFilename()
getSettingsFilename
in interface IServer
public void setGuiEnabled()
public boolean getGuiEnabled()
getGuiEnabled
in class MinecraftServer
public java.lang.String shareToLAN(WorldSettings.GameType par1EnumGameType, boolean par2)
shareToLAN
in class MinecraftServer
public boolean isCommandBlockEnabled()
isCommandBlockEnabled
in class MinecraftServer
public int getSpawnProtectionSize()
getSpawnProtectionSize
in class MinecraftServer
public boolean isBlockProtected(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
isBlockProtected
in class MinecraftServer
public int getOpPermissionLevel()
getOpPermissionLevel
in class MinecraftServer
public void func_143006_e(int par1)
func_143006_e
in class MinecraftServer
public boolean func_155757_ar()