|
||||||||||
| 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.integrated.IntegratedServer
public class IntegratedServer
| Field Summary |
|---|
| Fields inherited from class net.minecraft.server.MinecraftServer |
|---|
currentTask, logger, percentDone, receivedPacketCountArray, receivedPacketSizeArray, sentPacketCountArray, sentPacketSizeArray, theProfiler, tickTimeArray, worldServers, worldTickTimes |
| Constructor Summary | |
|---|---|
IntegratedServer(Minecraft par1Minecraft,
String par2Str,
String par3Str,
WorldSettings par4WorldSettings)
|
|
| Method Summary | |
|---|---|
CrashReport |
addServerInfoToCrashReport(CrashReport par1CrashReport)
Adds the server info, including from theWorldServer, to the crash report. |
void |
addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
|
boolean |
canStructuresSpawn()
|
int |
getDifficulty()
Defaults to "1" (Easy) for the dedicated server, defaults to "2" (Normal) on the client. |
EnumGameType |
getGameType()
|
NetworkListenThread |
getNetworkThread()
|
boolean |
getPublic()
Returns true if this integrated server is open to LAN |
IntegratedServerListenThread |
getServerListeningThread()
Gets the IntergratedServerListenThread. |
void |
initiateShutdown()
Sets the serverRunning variable to false, in order to get the server to shut down. |
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 |
setGameType(EnumGameType par1EnumGameType)
Sets the game type for all worlds. |
String |
shareToLAN(EnumGameType par1EnumGameType,
boolean par2)
On dedicated does nothing. |
void |
stopServer()
Saves all necessary data as preparation for stopping the server. |
void |
tick()
Main function called by run() every loop. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegratedServer(Minecraft par1Minecraft,
String par2Str,
String par3Str,
WorldSettings par4WorldSettings)
| Method Detail |
|---|
public void tick()
tick in class MinecraftServerpublic boolean canStructuresSpawn()
canStructuresSpawn in class MinecraftServerpublic EnumGameType getGameType()
getGameType in class MinecraftServerpublic int getDifficulty()
getDifficulty in class MinecraftServerpublic boolean isHardcore()
isHardcore in class MinecraftServerpublic boolean isDedicatedServer()
isDedicatedServer in class MinecraftServerpublic IntegratedServerListenThread getServerListeningThread()
public CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
addServerInfoToCrashReport in class MinecraftServerpublic void addServerStatsToSnooper(PlayerUsageSnooper par1PlayerUsageSnooper)
addServerStatsToSnooper in interface IPlayerUsageaddServerStatsToSnooper in class MinecraftServerpublic boolean isSnooperEnabled()
isSnooperEnabled in interface IPlayerUsageisSnooperEnabled in class MinecraftServer
public String shareToLAN(EnumGameType par1EnumGameType,
boolean par2)
shareToLAN in class MinecraftServerpublic void stopServer()
stopServer in class MinecraftServerpublic void initiateShutdown()
initiateShutdown in class MinecraftServerpublic boolean getPublic()
public void setGameType(EnumGameType par1EnumGameType)
setGameType in class MinecraftServerpublic boolean isCommandBlockEnabled()
isCommandBlockEnabled in class MinecraftServerpublic NetworkListenThread getNetworkThread()
getNetworkThread in class MinecraftServer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||