public class FMLCommonHandler
extends java.lang.Object
Constructor and Description |
---|
FMLCommonHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addModToResourcePack(ModContainer container) |
void |
adjustEntityLocationOnClient(EntitySpawnAdjustmentPacket entitySpawnAdjustmentPacket) |
void |
beginLoading(IFMLSidedHandler handler) |
void |
computeBranding() |
void |
disconnectIDMismatch(com.google.common.collect.MapDifference<java.lang.Integer,ItemData> serverDifference,
NetHandler toKill,
INetworkManager network) |
void |
enhanceCrashReport(CrashReport crashReport,
CrashReportCategory category) |
ModContainer |
findContainerFor(java.lang.Object mod)
Find the container that associates with the supplied mod object
|
java.util.List<java.lang.String> |
getBrandings() |
java.lang.String |
getCurrentLanguage() |
Side |
getEffectiveSide()
Return the effective side for the context in the game.
|
java.util.logging.Logger |
getFMLLogger()
Get the forge mod loader logging instance (goes to the forgemodloader log file)
|
MinecraftServer |
getMinecraftServerInstance() |
java.lang.String |
getModName() |
Side |
getSide() |
IFMLSidedHandler |
getSidedDelegate() |
boolean |
handleServerAboutToStart(MinecraftServer server) |
void |
handleServerStarted() |
boolean |
handleServerStarting(MinecraftServer server) |
void |
handleServerStopped() |
void |
handleServerStopping() |
void |
handleTinyPacket(NetHandler handler,
Packet131MapData mapData) |
void |
handleWorldDataLoad(SaveHandler handler,
WorldInfo worldInfo,
NBTTagCompound tagCompound) |
void |
handleWorldDataSave(SaveHandler handler,
WorldInfo worldInfo,
NBTTagCompound tagCompound) |
static FMLCommonHandler |
instance() |
void |
onPlayerPostTick(EntityPlayer player) |
void |
onPlayerPreTick(EntityPlayer player) |
void |
onPostClientTick() |
void |
onPostServerTick() |
void |
onPostWorldTick(java.lang.Object world)
Every tick just after world and other ticks occur
|
void |
onPreClientTick() |
void |
onPreServerTick() |
void |
onPreWorldTick(java.lang.Object world)
Every tick just before world and other ticks occur
|
void |
onRenderTickEnd(float timer) |
void |
onRenderTickStart(float timer) |
void |
onServerStart(DedicatedServer dedicatedServer) |
void |
onServerStarted() |
void |
onWorldLoadTick(World[] worlds) |
void |
raiseException(java.lang.Throwable exception,
java.lang.String message,
boolean stopGame)
Raise an exception
|
void |
registerCrashCallable(ICrashCallable callable) |
void |
rescheduleTicks(Side side) |
boolean |
shouldServerBeKilledQuietly() |
void |
showGuiScreen(java.lang.Object clientGuiElement) |
Entity |
spawnEntityIntoClientWorld(EntityRegistry.EntityRegistration registration,
EntitySpawnPacket entitySpawnPacket) |
void |
tickEnd(java.util.EnumSet<TickType> ticks,
Side side,
java.lang.Object... data) |
void |
tickStart(java.util.EnumSet<TickType> ticks,
Side side,
java.lang.Object... data) |
void |
updateResourcePackList() |
public void beginLoading(IFMLSidedHandler handler)
public void rescheduleTicks(Side side)
public void tickStart(java.util.EnumSet<TickType> ticks, Side side, java.lang.Object... data)
public static FMLCommonHandler instance()
public ModContainer findContainerFor(java.lang.Object mod)
mod
- public java.util.logging.Logger getFMLLogger()
public Side getSide()
public Side getEffectiveSide()
public void raiseException(java.lang.Throwable exception, java.lang.String message, boolean stopGame)
public void computeBranding()
public java.util.List<java.lang.String> getBrandings()
public IFMLSidedHandler getSidedDelegate()
public void onPostServerTick()
public void onPostWorldTick(java.lang.Object world)
public void onPreServerTick()
public void onPreWorldTick(java.lang.Object world)
public void onWorldLoadTick(World[] worlds)
public boolean handleServerAboutToStart(MinecraftServer server)
public boolean handleServerStarting(MinecraftServer server)
public void handleServerStarted()
public void handleServerStopping()
public MinecraftServer getMinecraftServerInstance()
public void showGuiScreen(java.lang.Object clientGuiElement)
public Entity spawnEntityIntoClientWorld(EntityRegistry.EntityRegistration registration, EntitySpawnPacket entitySpawnPacket)
public void adjustEntityLocationOnClient(EntitySpawnAdjustmentPacket entitySpawnAdjustmentPacket)
public void onServerStart(DedicatedServer dedicatedServer)
public void onServerStarted()
public void onPreClientTick()
public void onPostClientTick()
public void onRenderTickStart(float timer)
public void onRenderTickEnd(float timer)
public void onPlayerPreTick(EntityPlayer player)
public void onPlayerPostTick(EntityPlayer player)
public void registerCrashCallable(ICrashCallable callable)
public void enhanceCrashReport(CrashReport crashReport, CrashReportCategory category)
public void handleTinyPacket(NetHandler handler, Packet131MapData mapData)
public void handleWorldDataSave(SaveHandler handler, WorldInfo worldInfo, NBTTagCompound tagCompound)
public void handleWorldDataLoad(SaveHandler handler, WorldInfo worldInfo, NBTTagCompound tagCompound)
public boolean shouldServerBeKilledQuietly()
public void disconnectIDMismatch(com.google.common.collect.MapDifference<java.lang.Integer,ItemData> serverDifference, NetHandler toKill, INetworkManager network)
public void handleServerStopped()
public java.lang.String getModName()
public void addModToResourcePack(ModContainer container)
public void updateResourcePackList()
public java.lang.String getCurrentLanguage()