aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gtPlusPlus/core/handler/Recipes/LateRegistrationHandler.java
blob: aa83b3bcca5b0dc08c52846fa41114e5c5a11495 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package gtPlusPlus.core.handler.Recipes;

import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.handler.CompatHandler;
import gtPlusPlus.core.recipe.ShapedRecipeObject;

public class LateRegistrationHandler {

    public static int recipesSuccess = 0;
    public static int recipesFailed = 0;

    public static void run() {
        init();
    }

    private static void init() {
        for (final ShapedRecipeObject item : CompatHandler.AddRecipeQueue) {
            item.buildRecipe();
        }
        try {
            Thread.sleep(10);
        } catch (final InterruptedException e) {
            Logger.INFO(e.toString());
        }
        Logger.INFO("Late Recipes Loaded: " + recipesSuccess + " Failed: " + recipesFailed);
    }
}