YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.server.dedicated.DedicatedServer Class Reference
Inheritance diagram for net.minecraft.server.dedicated.DedicatedServer:
net.minecraft.server.MinecraftServer net.minecraft.network.rcon.IServer net.minecraft.command.ICommandSender net.minecraft.profiler.IPlayerUsage

Public Member Functions

 DedicatedServer (File par1File)
 
boolean canStructuresSpawn ()
 
EnumGameType getGameType ()
 
int getDifficulty ()
 
boolean isHardcore ()
 
CrashReport addServerInfoToCrashReport (CrashReport par1CrashReport)
 
void updateTimeLightAndEntities ()
 
boolean getAllowNether ()
 
boolean allowSpawnMonsters ()
 
void addServerStatsToSnooper (PlayerUsageSnooper par1PlayerUsageSnooper)
 
boolean isSnooperEnabled ()
 
void addPendingCommand (String par1Str, ICommandSender par2ICommandSender)
 
void executePendingCommands ()
 
boolean isDedicatedServer ()
 
DedicatedPlayerList getDedicatedPlayerList ()
 
NetworkListenThread getNetworkThread ()
 
int getIntProperty (String par1Str, int par2)
 
String getStringProperty (String par1Str, String par2Str)
 
boolean getBooleanProperty (String par1Str, boolean par2)
 
void setProperty (String par1Str, Object par2Obj)
 
void saveProperties ()
 
String getSettingsFilename ()
 
boolean getGuiEnabled ()
 
String shareToLAN (EnumGameType par1EnumGameType, boolean par2)
 
boolean isCommandBlockEnabled ()
 
int getSpawnProtectionSize ()
 
boolean func_96290_a (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
 
ILogAgent getLogAgent ()
 
ServerConfigurationManager getConfigurationManager ()
 
void enableGui ()
 
- Public Member Functions inherited from net.minecraft.server.MinecraftServer
 MinecraftServer (File par1File)
 
synchronized String getUserMessage ()
 
void stopServer ()
 
String getServerHostname ()
 
void setHostname (String par1Str)
 
boolean isServerRunning ()
 
void initiateShutdown ()
 
void run ()
 
void tick ()
 
void updateTimeLightAndEntities ()
 
boolean getAllowNether ()
 
void startServerThread ()
 
File getFile (String par1Str)
 
void logInfo (String par1Str)
 
void logWarning (String par1Str)
 
WorldServer worldServerForDimension (int par1)
 
void func_82010_a (IUpdatePlayerListBox par1IUpdatePlayerListBox)
 
String getHostname ()
 
int getPort ()
 
String getServerMOTD ()
 
String getMinecraftVersion ()
 
int getCurrentPlayerCount ()
 
int getMaxPlayers ()
 
String[] getAllUsernames ()
 
String getPlugins ()
 
String executeCommand (String par1Str)
 
boolean isDebuggingEnabled ()
 
void logSevere (String par1Str)
 
void logDebug (String par1Str)
 
String getServerModName ()
 
CrashReport addServerInfoToCrashReport (CrashReport par1CrashReport)
 
List getPossibleCompletions (ICommandSender par1ICommandSender, String par2Str)
 
String getCommandSenderName ()
 
void sendChatToPlayer (String par1Str)
 
boolean canCommandSenderUseCommand (int par1, String par2Str)
 
String translateString (String par1Str, Object...par2ArrayOfObj)
 
ICommandManager getCommandManager ()
 
KeyPair getKeyPair ()
 
int getServerPort ()
 
void setServerPort (int par1)
 
String getServerOwner ()
 
void setServerOwner (String par1Str)
 
boolean isSinglePlayer ()
 
String getFolderName ()
 
void setFolderName (String par1Str)
 
void setWorldName (String par1Str)
 
String getWorldName ()
 
void setKeyPair (KeyPair par1KeyPair)
 
void setDifficultyForAllWorlds (int par1)
 
boolean isDemo ()
 
void setDemo (boolean par1)
 
void canCreateBonusChest (boolean par1)
 
ISaveFormat getActiveAnvilConverter ()
 
void deleteWorldAndStopServer ()
 
String getTexturePack ()
 
void setTexturePack (String par1Str)
 
void addServerStatsToSnooper (PlayerUsageSnooper par1PlayerUsageSnooper)
 
void addServerTypeToSnooper (PlayerUsageSnooper par1PlayerUsageSnooper)
 
boolean isSnooperEnabled ()
 
int textureSize ()
 
boolean isServerInOnlineMode ()
 
void setOnlineMode (boolean par1)
 
boolean getCanSpawnAnimals ()
 
void setCanSpawnAnimals (boolean par1)
 
boolean getCanSpawnNPCs ()
 
void setCanSpawnNPCs (boolean par1)
 
boolean isPVPEnabled ()
 
void setAllowPvp (boolean par1)
 
boolean isFlightAllowed ()
 
void setAllowFlight (boolean par1)
 
String getMOTD ()
 
void setMOTD (String par1Str)
 
int getBuildLimit ()
 
void setBuildLimit (int par1)
 
boolean isServerStopped ()
 
ServerConfigurationManager getConfigurationManager ()
 
void setConfigurationManager (ServerConfigurationManager par1ServerConfigurationManager)
 
void setGameType (EnumGameType par1EnumGameType)
 
boolean serverIsInRunLoop ()
 
boolean getGuiEnabled ()
 
int getTickCounter ()
 
void enableProfiling ()
 
PlayerUsageSnooper getPlayerUsageSnooper ()
 
ChunkCoordinates getPlayerCoordinates ()
 
int getSpawnProtectionSize ()
 
boolean func_96290_a (World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer)
 
void func_104055_i (boolean par1)
 
boolean func_104056_am ()
 
- Public Member Functions inherited from net.minecraft.network.rcon.IServer
String getHostname ()
 
int getPort ()
 
String getServerMOTD ()
 
String getMinecraftVersion ()
 
int getCurrentPlayerCount ()
 
int getMaxPlayers ()
 
String[] getAllUsernames ()
 
String getFolderName ()
 
String getPlugins ()
 
String executeCommand (String s)
 
boolean isDebuggingEnabled ()
 
void logInfo (String s)
 
void logWarning (String s)
 
void logSevere (String s)
 
void logDebug (String s)
 

Protected Member Functions

boolean startServer () throws IOException
 
void finalTick (CrashReport par1CrashReport)
 
void systemExitNow ()
 
- Protected Member Functions inherited from net.minecraft.server.MinecraftServer
void convertMapIfNeeded (String par1Str)
 
synchronized void setUserMessage (String par1Str)
 
void loadAllWorlds (String par1Str, String par2Str, long par3, WorldType par5WorldType, String par6Str)
 
void initialWorldChunkLoad ()
 
void outputPercentRemaining (String par1Str, int par2)
 
void clearCurrentTask ()
 
void saveAllWorlds (boolean par1)
 
File getDataDirectory ()
 
void finalTick (CrashReport par1CrashReport)
 
void systemExitNow ()
 
boolean allowSpawnMonsters ()
 

Additional Inherited Members

- Static Public Member Functions inherited from net.minecraft.server.MinecraftServer
static MinecraftServer getServer ()
 
static ServerConfigurationManager getServerConfigurationManager (MinecraftServer par0MinecraftServer)
 
static void main (String[] par0ArrayOfStr)
 
static void fmlReentry (ArgsWrapper wrap)
 
- Public Attributes inherited from net.minecraft.server.MinecraftServer
final Profiler theProfiler = new Profiler()
 
WorldServer[] worldServers = new WorldServer[0]
 
String currentTask
 
int percentDone
 
final long[] sentPacketCountArray = new long[100]
 
final long[] sentPacketSizeArray = new long[100]
 
final long[] receivedPacketCountArray = new long[100]
 
final long[] receivedPacketSizeArray = new long[100]
 
final long[] tickTimeArray = new long[100]
 
Hashtable< Integer, long[]> worldTickTimes = new Hashtable<Integer, long[]>()
 

Constructor & Destructor Documentation

net.minecraft.server.dedicated.DedicatedServer.DedicatedServer ( File  par1File)

Member Function Documentation

void net.minecraft.server.dedicated.DedicatedServer.addPendingCommand ( String  par1Str,
ICommandSender  par2ICommandSender 
)
CrashReport net.minecraft.server.dedicated.DedicatedServer.addServerInfoToCrashReport ( CrashReport  par1CrashReport)

Adds the server info, including from theWorldServer, to the crash report.

void net.minecraft.server.dedicated.DedicatedServer.addServerStatsToSnooper ( PlayerUsageSnooper  par1PlayerUsageSnooper)
boolean net.minecraft.server.dedicated.DedicatedServer.allowSpawnMonsters ( )
boolean net.minecraft.server.dedicated.DedicatedServer.canStructuresSpawn ( )
virtual
void net.minecraft.server.dedicated.DedicatedServer.enableGui ( )
void net.minecraft.server.dedicated.DedicatedServer.executePendingCommands ( )
void net.minecraft.server.dedicated.DedicatedServer.finalTick ( CrashReport  par1CrashReport)
protected

Called on exit from the main run() loop.

boolean net.minecraft.server.dedicated.DedicatedServer.func_96290_a ( World  par1World,
int  par2,
int  par3,
int  par4,
EntityPlayer  par5EntityPlayer 
)
boolean net.minecraft.server.dedicated.DedicatedServer.getAllowNether ( )
boolean net.minecraft.server.dedicated.DedicatedServer.getBooleanProperty ( String  par1Str,
boolean  par2 
)

Gets a boolean property. If it does not exist, set it to the specified value.

ServerConfigurationManager net.minecraft.server.dedicated.DedicatedServer.getConfigurationManager ( )
DedicatedPlayerList net.minecraft.server.dedicated.DedicatedServer.getDedicatedPlayerList ( )
int net.minecraft.server.dedicated.DedicatedServer.getDifficulty ( )
virtual

Defaults to "1" (Easy) for the dedicated server, defaults to "2" (Normal) on the client.

Implements net.minecraft.server.MinecraftServer.

EnumGameType net.minecraft.server.dedicated.DedicatedServer.getGameType ( )
virtual
boolean net.minecraft.server.dedicated.DedicatedServer.getGuiEnabled ( )
int net.minecraft.server.dedicated.DedicatedServer.getIntProperty ( String  par1Str,
int  par2 
)

Gets an integer property. If it does not exist, set it to the specified value.

Implements net.minecraft.network.rcon.IServer.

ILogAgent net.minecraft.server.dedicated.DedicatedServer.getLogAgent ( )
virtual
NetworkListenThread net.minecraft.server.dedicated.DedicatedServer.getNetworkThread ( )
virtual
String net.minecraft.server.dedicated.DedicatedServer.getSettingsFilename ( )

Returns the filename where server properties are stored

Implements net.minecraft.network.rcon.IServer.

int net.minecraft.server.dedicated.DedicatedServer.getSpawnProtectionSize ( )

Return the spawn protection area's size.

String net.minecraft.server.dedicated.DedicatedServer.getStringProperty ( String  par1Str,
String  par2Str 
)

Gets a string property. If it does not exist, set it to the specified value.

Implements net.minecraft.network.rcon.IServer.

boolean net.minecraft.server.dedicated.DedicatedServer.isCommandBlockEnabled ( )
virtual

Return whether command blocks are enabled.

Implements net.minecraft.server.MinecraftServer.

boolean net.minecraft.server.dedicated.DedicatedServer.isDedicatedServer ( )
virtual
boolean net.minecraft.server.dedicated.DedicatedServer.isHardcore ( )
virtual

Defaults to false.

Implements net.minecraft.server.MinecraftServer.

boolean net.minecraft.server.dedicated.DedicatedServer.isSnooperEnabled ( )

Returns whether snooping is enabled or not.

Implements net.minecraft.profiler.IPlayerUsage.

void net.minecraft.server.dedicated.DedicatedServer.saveProperties ( )

Saves all of the server properties to the properties file.

Implements net.minecraft.network.rcon.IServer.

void net.minecraft.server.dedicated.DedicatedServer.setProperty ( String  par1Str,
Object  par2Obj 
)

Saves an Object with the given property name.

Implements net.minecraft.network.rcon.IServer.

String net.minecraft.server.dedicated.DedicatedServer.shareToLAN ( EnumGameType  par1EnumGameType,
boolean  par2 
)
virtual

On dedicated does nothing. On integrated, sets commandsAllowedForAll, gameType and allows external connections.

Implements net.minecraft.server.MinecraftServer.

boolean net.minecraft.server.dedicated.DedicatedServer.startServer ( ) throws IOException
protectedvirtual

Initialises the server and starts it.

Implements net.minecraft.server.MinecraftServer.

void net.minecraft.server.dedicated.DedicatedServer.systemExitNow ( )
protected

Directly calls System.exit(0), instantly killing the program.

void net.minecraft.server.dedicated.DedicatedServer.updateTimeLightAndEntities ( )

The documentation for this class was generated from the following file: