mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 19:59:42 +00:00
Halfway through ticking- won't compile
This commit is contained in:
1 parent
6c6f792c6b
commit
1a40f433a5
6 files changed
+77
-12
No files matched your search
@@ -47,6 +47,9 @@ public class ModLoaderModContainer implements ModContainer
|
||||
private ArrayList<String> dependencies;
|
||||
private ArrayList<String> preDependencies;
|
||||
private ArrayList<String> postDependencies;
|
||||
private boolean clockTicks;
|
||||
private boolean guiTicks;
|
||||
private boolean guiClockTicks;
|
||||
public ModLoaderModContainer(Class <? extends BaseMod > modClazz, File modSource)
|
||||
{
|
||||
this.modClazz = modClazz;
|
||||
@@ -278,15 +281,18 @@ public class ModLoaderModContainer implements ModContainer
|
||||
}
|
||||
|
||||
@Override
|
||||
public void tickStart()
|
||||
public boolean shouldTick(float clock)
|
||||
{
|
||||
if (isTicking)
|
||||
{
|
||||
isTicking = mod.doTickInGame(FMLCommonHandler.instance().getMinecraftInstance());
|
||||
}
|
||||
return isTicking && ((!clockTicks || clock!=lastClock ) || ()
|
||||
return false;
|
||||
}
|
||||
@Override
|
||||
public void tickEnd()
|
||||
public void tickStart(float clock)
|
||||
{
|
||||
isTicking = mod.doTickInGame(clock, FMLCommonHandler.instance().getMinecraftInstance());
|
||||
}
|
||||
@Override
|
||||
public void tickEnd(float clock)
|
||||
{
|
||||
// NOOP for modloader
|
||||
}
|
||||
@@ -526,4 +532,28 @@ public class ModLoaderModContainer implements ModContainer
|
||||
{
|
||||
return mod;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param useClock
|
||||
*/
|
||||
public void setClockTicks(boolean useClock)
|
||||
{
|
||||
this.clockTicks=useClock;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param enable
|
||||
*/
|
||||
public void setGUITicking(boolean enable)
|
||||
{
|
||||
this.guiTicks=enable;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param useClock
|
||||
*/
|
||||
public void setGUIClockTicks(boolean useClock)
|
||||
{
|
||||
this.guiClockTicks=useClock;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user