2016-01-16 20:06:25 +01:00
|
|
|
/*
|
|
|
|
* This file ("JEIActuallyAdditionsPlugin.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://ellpeck.de/actaddlicense/
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
|
|
|
* © 2016 Ellpeck
|
|
|
|
*/
|
|
|
|
|
|
|
|
package de.ellpeck.actuallyadditions.mod.jei;
|
|
|
|
|
|
|
|
import de.ellpeck.actuallyadditions.api.ActuallyAdditionsAPI;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeCategory;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.booklet.BookletRecipeHandler;
|
2016-01-17 12:17:24 +01:00
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.coffee.CoffeeMachineRecipeCategory;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.jei.coffee.CoffeeMachineRecipeHandler;
|
2016-01-16 20:06:25 +01:00
|
|
|
import mezz.jei.api.*;
|
|
|
|
|
|
|
|
@JEIPlugin
|
|
|
|
public class JEIActuallyAdditionsPlugin implements IModPlugin{
|
|
|
|
|
|
|
|
private IJeiHelpers helpers;
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onJeiHelpersAvailable(IJeiHelpers jeiHelpers){
|
|
|
|
this.helpers = jeiHelpers;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onItemRegistryAvailable(IItemRegistry itemRegistry){
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void register(IModRegistry registry){
|
|
|
|
registry.addRecipeCategories(
|
2016-01-17 12:17:24 +01:00
|
|
|
new BookletRecipeCategory(this.helpers.getGuiHelper()),
|
|
|
|
new CoffeeMachineRecipeCategory(this.helpers.getGuiHelper())
|
2016-01-16 20:06:25 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
registry.addRecipeHandlers(
|
2016-01-17 12:17:24 +01:00
|
|
|
new BookletRecipeHandler(),
|
|
|
|
new CoffeeMachineRecipeHandler()
|
2016-01-16 20:06:25 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
registry.addRecipes(ActuallyAdditionsAPI.bookletPagesWithItemStackData);
|
2016-01-17 12:17:24 +01:00
|
|
|
registry.addRecipes(ActuallyAdditionsAPI.coffeeMachineIngredients);
|
2016-01-16 20:06:25 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onRecipeRegistryAvailable(IRecipeRegistry recipeRegistry){
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|