mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00:00
more client side hooks and Texture overrides/animations.
This commit is contained in:
1 parent
1a40f433a5
commit
8586d8ae85
13 files changed
+996
-11
No files matched your search
@@ -35,7 +35,21 @@ public abstract class BaseMod implements IWorldGenerator, IPickupNotifier, IDisp
|
||||
*/
|
||||
public final boolean doTickInGame(float clock, Object minecraftInstance)
|
||||
{
|
||||
return onTickInGame((Minecraft)minecraftInstance);
|
||||
Minecraft mc = (Minecraft)minecraftInstance;
|
||||
if (mc.field_6324_e != null)
|
||||
{
|
||||
return onTickInGame(mc);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
public final boolean doTickInGui(float clock, Object minecraftInstance)
|
||||
{
|
||||
Minecraft mc = (Minecraft)minecraftInstance;
|
||||
if (mc.field_40007_r != null)
|
||||
{
|
||||
return onTickInGUI(clock, mc, mc.field_6313_p);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -222,7 +236,7 @@ public abstract class BaseMod implements IWorldGenerator, IPickupNotifier, IDisp
|
||||
* @param minecraftServer the server
|
||||
* @return true to continue receiving ticks
|
||||
*/
|
||||
public boolean onTickInGame(Object minecraftInstance)
|
||||
public boolean onTickInGame(Minecraft minecraftInstance)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user