public class FMLServerHandler extends 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.public void beginServerLoading(MinecraftServer minecraftServer)
MinecraftServer.startServer()
beginServerLoading
in interface IFMLSidedHandler
minecraftServer
- public void finishServerLoading()
finishServerLoading
in interface IFMLSidedHandler
public void haltGame(String message, Throwable exception)
haltGame
in interface IFMLSidedHandler
public MinecraftServer getServer()
getServer
in interface IFMLSidedHandler
public static FMLServerHandler instance()
public List<String> getAdditionalBrandingInformation()
getAdditionalBrandingInformation
in interface IFMLSidedHandler
public Side getSide()
getSide
in interface IFMLSidedHandler
public void showGuiScreen(Object clientGuiElement)
showGuiScreen
in interface IFMLSidedHandler
public Entity spawnEntityIntoClientWorld(EntityRegistry.EntityRegistration er, EntitySpawnPacket packet)
spawnEntityIntoClientWorld
in interface IFMLSidedHandler
public void adjustEntityLocationOnClient(EntitySpawnAdjustmentPacket entitySpawnAdjustmentPacket)
adjustEntityLocationOnClient
in interface IFMLSidedHandler
public void sendPacket(Packet packet)
sendPacket
in interface IFMLSidedHandler
public void displayMissingMods(ModMissingPacket modMissingPacket)
displayMissingMods
in interface IFMLSidedHandler
public void handleTinyPacket(NetHandler handler, Packet131MapData mapData)
handleTinyPacket
in interface IFMLSidedHandler
public void setClientCompatibilityLevel(byte compatibilityLevel)
setClientCompatibilityLevel
in interface IFMLSidedHandler
public byte getClientCompatibilityLevel()
getClientCompatibilityLevel
in interface IFMLSidedHandler
public boolean shouldServerShouldBeKilledQuietly()
shouldServerShouldBeKilledQuietly
in interface IFMLSidedHandler
public void disconnectIDMismatch(com.google.common.collect.MapDifference<Integer,ItemData> s, NetHandler handler, INetworkManager mgr)
disconnectIDMismatch
in interface IFMLSidedHandler
public void addModAsResource(ModContainer container)
addModAsResource
in interface IFMLSidedHandler
public void updateResourcePackList()
updateResourcePackList
in interface IFMLSidedHandler
public String getCurrentLanguage()
getCurrentLanguage
in interface IFMLSidedHandler