public class FMLServerHandler extends java.lang.Object implements IFMLSidedHandler
beginServerLoading(MinecraftServer)
called from
DedicatedServer
Obfuscated code should focus on this class and other members of the "server"
(or "client") code
The actual mod loading is handled at arms length by Loader
It is expected that a similar class will exist for each target environment:
Bukkit and Client side.
It should not be directly modified.Modifier and Type | Method and Description |
---|---|
void |
addModAsResource(ModContainer container) |
void |
allowLogins() |
void |
beginServerLoading(MinecraftServer minecraftServer)
Called to start the whole game off from
MinecraftServer#startServer |
void |
finishServerLoading()
Called a bit later on during server initialization to finish loading mods
|
void |
fireNetRegistrationEvent(EventBus bus,
NetworkManager manager,
java.util.Set<java.lang.String> channelSet,
java.lang.String channel,
Side side) |
void |
fireSidedRegistryEvents() |
java.util.List<java.lang.String> |
getAdditionalBrandingInformation() |
INetHandler |
getClientPlayHandler() |
NetworkManager |
getClientToServerNetworkManager() |
java.lang.String |
getCurrentLanguage() |
CompoundDataFixer |
getDataFixer() |
java.io.File |
getSavesDirectory() |
MinecraftServer |
getServer()
Get the server instance
|
Side |
getSide() |
IThreadListener |
getWorldThread(INetHandler net) |
void |
haltGame(java.lang.String message,
java.lang.Throwable exception) |
static FMLServerHandler |
instance() |
void |
processWindowMessages() |
void |
queryUser(StartupQuery query) |
void |
reloadRenderers() |
void |
serverStopped() |
boolean |
shouldAllowPlayerLogins() |
boolean |
shouldServerShouldBeKilledQuietly() |
void |
showGuiScreen(java.lang.Object clientGuiElement) |
java.lang.String |
stripSpecialChars(java.lang.String message) |
public void beginServerLoading(MinecraftServer minecraftServer)
MinecraftServer#startServer
beginServerLoading
in interface IFMLSidedHandler
minecraftServer
- serverpublic void finishServerLoading()
finishServerLoading
in interface IFMLSidedHandler
public void haltGame(java.lang.String message, java.lang.Throwable exception)
haltGame
in interface IFMLSidedHandler
public java.io.File getSavesDirectory()
getSavesDirectory
in interface IFMLSidedHandler
public MinecraftServer getServer()
getServer
in interface IFMLSidedHandler
public static FMLServerHandler instance()
public java.util.List<java.lang.String> getAdditionalBrandingInformation()
getAdditionalBrandingInformation
in interface IFMLSidedHandler
public Side getSide()
getSide
in interface IFMLSidedHandler
public void showGuiScreen(java.lang.Object clientGuiElement)
showGuiScreen
in interface IFMLSidedHandler
public void queryUser(StartupQuery query) throws java.lang.InterruptedException
queryUser
in interface IFMLSidedHandler
java.lang.InterruptedException
public boolean shouldServerShouldBeKilledQuietly()
shouldServerShouldBeKilledQuietly
in interface IFMLSidedHandler
public void addModAsResource(ModContainer container)
addModAsResource
in interface IFMLSidedHandler
public java.lang.String getCurrentLanguage()
getCurrentLanguage
in interface IFMLSidedHandler
public void serverStopped()
serverStopped
in interface IFMLSidedHandler
public NetworkManager getClientToServerNetworkManager()
getClientToServerNetworkManager
in interface IFMLSidedHandler
public INetHandler getClientPlayHandler()
getClientPlayHandler
in interface IFMLSidedHandler
public void fireNetRegistrationEvent(EventBus bus, NetworkManager manager, java.util.Set<java.lang.String> channelSet, java.lang.String channel, Side side)
fireNetRegistrationEvent
in interface IFMLSidedHandler
public boolean shouldAllowPlayerLogins()
shouldAllowPlayerLogins
in interface IFMLSidedHandler
public void allowLogins()
allowLogins
in interface IFMLSidedHandler
public IThreadListener getWorldThread(INetHandler net)
getWorldThread
in interface IFMLSidedHandler
public void processWindowMessages()
processWindowMessages
in interface IFMLSidedHandler
public java.lang.String stripSpecialChars(java.lang.String message)
stripSpecialChars
in interface IFMLSidedHandler
public void reloadRenderers()
reloadRenderers
in interface IFMLSidedHandler
public void fireSidedRegistryEvents()
fireSidedRegistryEvents
in interface IFMLSidedHandler
public CompoundDataFixer getDataFixer()
getDataFixer
in interface IFMLSidedHandler