package projectzombie.util.gl.texture; import mainloop.task.IMainloopTask; import projectzombie.init.Textures; public class AnimationEventHandler implements IMainloopTask { public static final AnimationEventHandler ANIMATION_EVENT_HANDLER = new AnimationEventHandler(); @Override public boolean MainLoopDelay(long millis) { return millis > 10; } @Override public boolean MainLoopRepeat() { return true; } @Override public void MainLoopUpdate() { // Loop over the animations and update them all for(AnimationReference r : Textures.animations) { r.tick(); } } }