mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Update tester mod
This commit is contained in:
1 parent
05f9861da4
commit
70d7c8fc68
1 file changed
+8
@@ -18,6 +18,7 @@ public class mod_testMod extends BaseMod implements ITickHandler {
|
||||
@Override
|
||||
public void load() {
|
||||
ModLoader.setInGameHook(this, true, true);
|
||||
ModLoader.setInGUIHook(this, true, false);
|
||||
FMLCommonHandler.instance().registerTickHandler(this);
|
||||
ts=System.currentTimeMillis();
|
||||
tsg=ts;
|
||||
@@ -32,6 +33,13 @@ public class mod_testMod extends BaseMod implements ITickHandler {
|
||||
System.out.printf("%d %d %d %d MLTICK\n",del, ts, tsg, now);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onTickInGUI(float tick, Minecraft game, GuiScreen gui)
|
||||
{
|
||||
System.out.printf("%d MLGUITICK\n",System.currentTimeMillis());
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tickStart(EnumSet<TickType> type, Object... tickData)
|
||||
|
||||
Reference in new issue
Block a user