YATS/Forge Documentation
 All Classes Namespaces Files Functions Variables Enumerator Pages
net.minecraft.server.integrated.IntegratedServer Class Reference
Inheritance diagram for net.minecraft.server.integrated.IntegratedServer:
net.minecraft.server.MinecraftServer net.minecraft.command.ICommandSender net.minecraft.profiler.IPlayerUsage

Public Member Functions

 IntegratedServer (Minecraft par1Minecraft, String par2Str, String par3Str, WorldSettings par4WorldSettings)
 
void tick ()
 
boolean canStructuresSpawn ()
 
EnumGameType getGameType ()
 
int getDifficulty ()
 
boolean isHardcore ()
 
boolean isDedicatedServer ()
 
IntegratedServerListenThread getServerListeningThread ()
 
CrashReport addServerInfoToCrashReport (CrashReport par1CrashReport)
 
void addServerStatsToSnooper (PlayerUsageSnooper par1PlayerUsageSnooper)
 
boolean isSnooperEnabled ()
 
String shareToLAN (EnumGameType par1EnumGameType, boolean par2)
 
ILogAgent getLogAgent ()
 
void stopServer ()
 
void initiateShutdown ()
 
boolean getPublic ()
 
void setGameType (EnumGameType par1EnumGameType)
 
boolean isCommandBlockEnabled ()
 
NetworkListenThread getNetworkThread ()
 
- 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 ()
 

Protected Member Functions

void loadAllWorlds (String par1Str, String par2Str, long par3, WorldType par5WorldType, String par6Str)
 
boolean startServer () throws IOException
 
File getDataDirectory ()
 
void finalTick (CrashReport par1CrashReport)
 
- 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.integrated.IntegratedServer.IntegratedServer ( Minecraft  par1Minecraft,
String  par2Str,
String  par3Str,
WorldSettings  par4WorldSettings 
)

Member Function Documentation

CrashReport net.minecraft.server.integrated.IntegratedServer.addServerInfoToCrashReport ( CrashReport  par1CrashReport)

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

void net.minecraft.server.integrated.IntegratedServer.addServerStatsToSnooper ( PlayerUsageSnooper  par1PlayerUsageSnooper)
boolean net.minecraft.server.integrated.IntegratedServer.canStructuresSpawn ( )
virtual
void net.minecraft.server.integrated.IntegratedServer.finalTick ( CrashReport  par1CrashReport)
protected

Called on exit from the main run() loop.

File net.minecraft.server.integrated.IntegratedServer.getDataDirectory ( )
protected
int net.minecraft.server.integrated.IntegratedServer.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.integrated.IntegratedServer.getGameType ( )
virtual
ILogAgent net.minecraft.server.integrated.IntegratedServer.getLogAgent ( )
virtual
NetworkListenThread net.minecraft.server.integrated.IntegratedServer.getNetworkThread ( )
virtual
boolean net.minecraft.server.integrated.IntegratedServer.getPublic ( )

Returns true if this integrated server is open to LAN

IntegratedServerListenThread net.minecraft.server.integrated.IntegratedServer.getServerListeningThread ( )

Gets the IntergratedServerListenThread.

void net.minecraft.server.integrated.IntegratedServer.initiateShutdown ( )

Sets the serverRunning variable to false, in order to get the server to shut down.

boolean net.minecraft.server.integrated.IntegratedServer.isCommandBlockEnabled ( )
virtual

Return whether command blocks are enabled.

Implements net.minecraft.server.MinecraftServer.

boolean net.minecraft.server.integrated.IntegratedServer.isDedicatedServer ( )
virtual
boolean net.minecraft.server.integrated.IntegratedServer.isHardcore ( )
virtual

Defaults to false.

Implements net.minecraft.server.MinecraftServer.

boolean net.minecraft.server.integrated.IntegratedServer.isSnooperEnabled ( )

Returns whether snooping is enabled or not.

Implements net.minecraft.profiler.IPlayerUsage.

void net.minecraft.server.integrated.IntegratedServer.loadAllWorlds ( String  par1Str,
String  par2Str,
long  par3,
WorldType  par5WorldType,
String  par6Str 
)
protected
void net.minecraft.server.integrated.IntegratedServer.setGameType ( EnumGameType  par1EnumGameType)

Sets the game type for all worlds.

String net.minecraft.server.integrated.IntegratedServer.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.integrated.IntegratedServer.startServer ( ) throws IOException
protectedvirtual

Initialises the server and starts it.

Implements net.minecraft.server.MinecraftServer.

void net.minecraft.server.integrated.IntegratedServer.stopServer ( )

Saves all necessary data as preparation for stopping the server.

void net.minecraft.server.integrated.IntegratedServer.tick ( )

Main function called by run() every loop.


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