Package net.minecraft.server
Class MinecraftServer
- java.lang.Object
-
- net.minecraft.server.MinecraftServer
-
- All Implemented Interfaces:
java.lang.Runnable
,ICommandListener
,IServer
public class MinecraftServer extends java.lang.Object implements java.lang.Runnable, ICommandListener, IServer
-
-
Field Summary
Fields Modifier and Type Field Description boolean
allowFlight
int
buildLimit
java.lang.String
currentTask
EntityTracker[]
entityTracker
long[]
field_40027_f
long[][]
field_40028_g
boolean
field_44002_p
long[]
field_48078_w
long[]
field_48079_v
long[]
field_48080_u
long[]
field_48082_x
static it.unimi.dsi.fastutil.objects.Object2IntMap<java.lang.String>
field_6037_b
static java.util.logging.Logger
logger
java.lang.String
motd
NetworkListenThread
networkServer
boolean
onlineMode
int
percentDone
PlayerList
playerList
PropertyManager
propertyManagerObj
boolean
pvpOn
boolean
serverStopped
boolean
spawnPeacefulMobs
WorldServer[]
worldMngr
-
Constructor Summary
Constructors Constructor Description MinecraftServer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addCommand(java.lang.String string, ICommandListener var2)
void
addToOnlinePlayerList(IUpdatePlayerListBox var1)
void
commandLineParser()
SystemReport
fillSystemReport(SystemReport systemReport)
void
func_40010_o()
java.lang.String[]
getBannedIPsList()
java.lang.String[]
getBannedPlayersList()
EntityTracker
getEntityTracker(int var1)
java.io.File
getFile(java.lang.String var1)
java.lang.String
getHostname()
int
getIntProperty(java.lang.String string, int var2)
int
getMaxPlayers()
java.lang.String
getMotd()
java.lang.String[]
getPlayerNamesAsList()
java.lang.String
getPlugin()
int
getPort()
java.lang.String
getServerModName()
java.lang.String
getSettingsFilename()
java.lang.String
getStringProperty(java.lang.String string, java.lang.String var2)
java.lang.String
getUsername()
java.lang.String
getVersionString()
WorldServer
getWorldManager(int var1)
java.lang.String
getWorldName()
java.lang.String
handleRConCommand(java.lang.String var1)
void
initiateShutdown()
boolean
isDebuggingEnabled()
void
log(java.lang.String var1)
void
logIn(java.lang.String var1)
void
logSevere(java.lang.String var1)
void
logWarning(java.lang.String var1)
static void
main(java.lang.String[] strings)
int
playersOnline()
void
run()
void
saveProperties()
void
setProperty(java.lang.String string, java.lang.Object var2)
-
-
-
Field Detail
-
logger
public static java.util.logging.Logger logger
-
field_6037_b
public static it.unimi.dsi.fastutil.objects.Object2IntMap<java.lang.String> field_6037_b
-
networkServer
public NetworkListenThread networkServer
-
propertyManagerObj
public PropertyManager propertyManagerObj
-
worldMngr
public WorldServer[] worldMngr
-
field_40027_f
public long[] field_40027_f
-
field_40028_g
public long[][] field_40028_g
-
playerList
public PlayerList playerList
-
serverStopped
public boolean serverStopped
-
currentTask
public java.lang.String currentTask
-
percentDone
public int percentDone
-
entityTracker
public EntityTracker[] entityTracker
-
onlineMode
public boolean onlineMode
-
spawnPeacefulMobs
public boolean spawnPeacefulMobs
-
field_44002_p
public boolean field_44002_p
-
pvpOn
public boolean pvpOn
-
allowFlight
public boolean allowFlight
-
motd
public java.lang.String motd
-
buildLimit
public int buildLimit
-
field_48080_u
public long[] field_48080_u
-
field_48079_v
public long[] field_48079_v
-
field_48078_w
public long[] field_48078_w
-
field_48082_x
public long[] field_48082_x
-
-
Method Detail
-
initiateShutdown
public void initiateShutdown()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
fillSystemReport
public SystemReport fillSystemReport(SystemReport systemReport)
-
addCommand
public void addCommand(java.lang.String string, ICommandListener var2)
-
commandLineParser
public void commandLineParser()
-
addToOnlinePlayerList
public void addToOnlinePlayerList(IUpdatePlayerListBox var1)
-
main
public static void main(java.lang.String[] strings)
-
getFile
public java.io.File getFile(java.lang.String var1)
-
log
public void log(java.lang.String var1)
- Specified by:
log
in interfaceICommandListener
- Specified by:
log
in interfaceIServer
-
logWarning
public void logWarning(java.lang.String var1)
- Specified by:
logWarning
in interfaceIServer
-
getUsername
public java.lang.String getUsername()
- Specified by:
getUsername
in interfaceICommandListener
-
getWorldManager
public WorldServer getWorldManager(int var1)
-
getEntityTracker
public EntityTracker getEntityTracker(int var1)
-
getIntProperty
public int getIntProperty(java.lang.String string, int var2)
- Specified by:
getIntProperty
in interfaceIServer
-
getStringProperty
public java.lang.String getStringProperty(java.lang.String string, java.lang.String var2)
- Specified by:
getStringProperty
in interfaceIServer
-
setProperty
public void setProperty(java.lang.String string, java.lang.Object var2)
- Specified by:
setProperty
in interfaceIServer
-
saveProperties
public void saveProperties()
- Specified by:
saveProperties
in interfaceIServer
-
getSettingsFilename
public java.lang.String getSettingsFilename()
- Specified by:
getSettingsFilename
in interfaceIServer
-
getHostname
public java.lang.String getHostname()
- Specified by:
getHostname
in interfaceIServer
-
getVersionString
public java.lang.String getVersionString()
- Specified by:
getVersionString
in interfaceIServer
-
playersOnline
public int playersOnline()
- Specified by:
playersOnline
in interfaceIServer
-
getMaxPlayers
public int getMaxPlayers()
- Specified by:
getMaxPlayers
in interfaceIServer
-
getPlayerNamesAsList
public java.lang.String[] getPlayerNamesAsList()
- Specified by:
getPlayerNamesAsList
in interfaceIServer
-
getWorldName
public java.lang.String getWorldName()
- Specified by:
getWorldName
in interfaceIServer
-
func_40010_o
public void func_40010_o()
- Specified by:
func_40010_o
in interfaceIServer
-
handleRConCommand
public java.lang.String handleRConCommand(java.lang.String var1)
- Specified by:
handleRConCommand
in interfaceIServer
-
isDebuggingEnabled
public boolean isDebuggingEnabled()
- Specified by:
isDebuggingEnabled
in interfaceIServer
-
logSevere
public void logSevere(java.lang.String var1)
-
getBannedIPsList
public java.lang.String[] getBannedIPsList()
-
getBannedPlayersList
public java.lang.String[] getBannedPlayersList()
-
getServerModName
public java.lang.String getServerModName()
-
-