package net.acomputerdog.BlazeLoader.api.tick;

import net.acomputerdog.BlazeLoader.main.BlazeLoader;
import net.minecraft.src.MinecraftPackageAccessor;
import net.minecraft.src.Timer;

/**
 * Api for function related to the world tick.
 */
public class ApiTick {

    /**
     * The game's tick timer.
     */
    public static Timer gameTimer;

    /**
     * Gets the game's tick rate.  Uses reflection only on first run.
     * @return Returns the game's current tick rate.
     */
    public static float getTPS(){
        return MinecraftPackageAccessor.getTPS();
    }

    /**
     * Sets the game tick rate.
     * @param tps The new tick rate.
     */
    public static void setTPS(float tps){
        MinecraftPackageAccessor.setTPS(tps);
    }

    /**
     * Returns true if the game is currently in the middle of a tick.
     * @return Returns true if the game is in a tick, false if not.
     */
    public static boolean isGameInTick(){
        return BlazeLoader.isInTick;
    }

    public static long getTotalTicksInGame(){
        return BlazeLoader.ticks;
    }
}

@@ -986,24 +986,194 @@
 ick;%0A    %7D%0A%0A
+    /**%0A     * Gets the total number of ticks that the game has run for.%0A     * @return Return a long representing the number of ticks that the game has run for.%0A     */%0A
     public s

Add missing comment