|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcpw.mods.fml.client.FMLClientHandler
public class FMLClientHandler
Handles primary communication from hooked code into the system
The FML entry point is beginMinecraftLoading(Minecraft)
called from
Minecraft
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.
Constructor Summary | |
---|---|
FMLClientHandler()
|
Method Summary | |
---|---|
void |
addSpecialModEntries(ArrayList<ModContainer> mods)
|
void |
adjustEntityLocationOnClient(EntitySpawnAdjustmentPacket packet)
|
void |
beginMinecraftLoading(Minecraft minecraft)
Called to start the whole game off |
void |
beginServerLoading(MinecraftServer server)
|
void |
callbackIdDifferenceResponse(boolean response)
|
void |
disconnectIDMismatch(com.google.common.collect.MapDifference<Integer,ItemData> s,
NetHandler toKill,
INetworkManager mgr)
|
void |
displayGuiScreen(EntityPlayer player,
GuiScreen gui)
|
void |
displayMissingMods(ModMissingPacket modMissingPacket)
|
void |
finishMinecraftLoading()
Called a bit later on during initialization to finish loading mods Also initializes key bindings |
void |
finishServerLoading()
|
List<String> |
getAdditionalBrandingInformation()
|
Minecraft |
getClient()
Get the server instance |
byte |
getClientCompatibilityLevel()
|
Logger |
getMinecraftLogger()
Get a handle to the client's logger instance The client actually doesn't have one- so we return null |
MinecraftServer |
getServer()
|
Side |
getSide()
|
void |
haltGame(String message,
Throwable t)
|
void |
handleTinyPacket(NetHandler handler,
Packet131MapData mapData)
|
boolean |
hasOptifine()
|
static FMLClientHandler |
instance()
|
boolean |
isLoading()
If the client is in the midst of loading, we disable saving so that custom settings aren't wiped out |
void |
onInitializationComplete()
|
void |
sendPacket(Packet packet)
|
void |
setClientCompatibilityLevel(byte compatibilityLevel)
|
boolean |
shouldServerShouldBeKilledQuietly()
|
void |
showGuiScreen(Object clientGuiElement)
|
Entity |
spawnEntityIntoClientWorld(EntityRegistry.EntityRegistration er,
EntitySpawnPacket packet)
|
void |
warnIDMismatch(com.google.common.collect.MapDifference<Integer,ItemData> idDifferences,
boolean mayContinue)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FMLClientHandler()
Method Detail |
---|
public void beginMinecraftLoading(Minecraft minecraft)
minecraft
- The minecraft instance being launchedpublic void haltGame(String message, Throwable t)
haltGame
in interface IFMLSidedHandler
public void finishMinecraftLoading()
public void onInitializationComplete()
public Minecraft getClient()
public Logger getMinecraftLogger()
public static FMLClientHandler instance()
public void displayGuiScreen(EntityPlayer player, GuiScreen gui)
player
- gui
- public void addSpecialModEntries(ArrayList<ModContainer> mods)
mods
- public List<String> getAdditionalBrandingInformation()
getAdditionalBrandingInformation
in interface IFMLSidedHandler
public Side getSide()
getSide
in interface IFMLSidedHandler
public boolean hasOptifine()
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 packet)
adjustEntityLocationOnClient
in interface IFMLSidedHandler
public void beginServerLoading(MinecraftServer server)
beginServerLoading
in interface IFMLSidedHandler
public void finishServerLoading()
finishServerLoading
in interface IFMLSidedHandler
public MinecraftServer getServer()
getServer
in interface IFMLSidedHandler
public void sendPacket(Packet packet)
sendPacket
in interface IFMLSidedHandler
public void displayMissingMods(ModMissingPacket modMissingPacket)
displayMissingMods
in interface IFMLSidedHandler
public boolean isLoading()
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 void warnIDMismatch(com.google.common.collect.MapDifference<Integer,ItemData> idDifferences, boolean mayContinue)
public void callbackIdDifferenceResponse(boolean response)
public boolean shouldServerShouldBeKilledQuietly()
shouldServerShouldBeKilledQuietly
in interface IFMLSidedHandler
public void disconnectIDMismatch(com.google.common.collect.MapDifference<Integer,ItemData> s, NetHandler toKill, INetworkManager mgr)
disconnectIDMismatch
in interface IFMLSidedHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |