|
||||||||||
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 MinecraftServer
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 boolean isDedicatedServer()
isDedicatedServer
in class MinecraftServer
public IntegratedServerListenThread getServerListeningThread()
public CrashReport addServerInfoToCrashReport(CrashReport par1CrashReport)
addServerInfoToCrashReport
in class MinecraftServer
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 String shareToLAN(EnumGameType par1EnumGameType, boolean par2)
shareToLAN
in class MinecraftServer
public void stopServer()
stopServer
in class MinecraftServer
public void initiateShutdown()
initiateShutdown
in class MinecraftServer
public boolean getPublic()
public void setGameType(EnumGameType par1EnumGameType)
setGameType
in class MinecraftServer
public boolean isCommandBlockEnabled()
isCommandBlockEnabled
in class MinecraftServer
public NetworkListenThread getNetworkThread()
getNetworkThread
in class MinecraftServer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |