|
||||||||||
| 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 MinecraftServerpublic EnumGameType getGameType()
getGameType in class MinecraftServerpublic int getDifficulty()
getDifficulty in class MinecraftServerpublic boolean isHardcore()
isHardcore in class MinecraftServerpublic CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
addServerInfoToCrashReport in class MinecraftServerpublic void updateTimeLightAndEntities()
updateTimeLightAndEntities in class MinecraftServerpublic boolean getAllowNether()
getAllowNether in class MinecraftServerpublic boolean allowSpawnMonsters()
public void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
addServerStatsToSnooper in interface IPlayerUsageaddServerStatsToSnooper in class MinecraftServerpublic boolean isSnooperEnabled()
isSnooperEnabled in interface IPlayerUsageisSnooperEnabled in class MinecraftServer
public void addPendingCommand(String par1Str,
ICommandSender par2ICommandSender)
public void executePendingCommands()
public boolean isDedicatedServer()
isDedicatedServer in class MinecraftServerpublic 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 IServerpublic void saveProperties()
saveProperties in interface IServerpublic String getSettingsFilename()
getSettingsFilename in interface IServerpublic boolean getGuiEnabled()
getGuiEnabled in class MinecraftServer
public String shareToLAN(EnumGameType par1EnumGameType,
boolean par2)
shareToLAN in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic int getSpawnProtectionSize()
getSpawnProtectionSize in class MinecraftServerpublic ServerConfigurationManager getConfigurationManager()
getConfigurationManager in class MinecraftServerpublic void enableGui()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||