|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.minecraft.server.MinecraftServer
net.minecraft.server.dedicated.DedicatedServer
public class DedicatedServer
Field Summary |
---|
Fields inherited from class net.minecraft.server.MinecraftServer |
---|
currentTask, logger, percentDone, receivedPacketCountArray, receivedPacketSizeArray, sentPacketCountArray, sentPacketSizeArray, theProfiler, tickTimeArray, worldServers, worldTickTimes |
Constructor Summary | |
---|---|
DedicatedServer(File par1File)
|
Method Summary | |
---|---|
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 |
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. |
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()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.minecraft.network.rcon.IServer |
---|
executeCommand, getAllUsernames, getCurrentPlayerCount, getFolderName, getHostname, getMaxPlayers, getMinecraftVersion, getPlugins, getPort, getServerMOTD, isDebuggingEnabled, logDebug, logInfo, logSevere, logWarning |
Constructor Detail |
---|
public DedicatedServer(File par1File)
Method Detail |
---|
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 ServerConfigurationManager getConfigurationManager()
getConfigurationManager
in class MinecraftServer
public void enableGui()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |