2015-11-29 07:52:06 +00:00
|
|
|
package WayofTime.bloodmagic.compat.jei;
|
|
|
|
|
|
|
|
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeCategory;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeHandler;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.altar.AltarRecipeMaker;
|
2015-12-03 03:27:28 +00:00
|
|
|
import WayofTime.bloodmagic.compat.jei.binding.BindingRecipeCategory;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.binding.BindingRecipeHandler;
|
|
|
|
import WayofTime.bloodmagic.compat.jei.binding.BindingRecipeMaker;
|
2015-11-29 07:52:06 +00:00
|
|
|
import mezz.jei.api.IModPlugin;
|
2015-12-04 01:12:50 +00:00
|
|
|
import mezz.jei.api.JEIPlugin;
|
2015-11-29 07:52:06 +00:00
|
|
|
import mezz.jei.api.recipe.IRecipeCategory;
|
|
|
|
import mezz.jei.api.recipe.IRecipeHandler;
|
2015-12-02 08:55:52 +00:00
|
|
|
import mezz.jei.api.recipe.IRecipeTransferHelper;
|
2015-11-29 07:52:06 +00:00
|
|
|
|
2015-12-02 08:55:52 +00:00
|
|
|
import javax.annotation.Nonnull;
|
2015-11-29 07:52:06 +00:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.Arrays;
|
|
|
|
import java.util.List;
|
|
|
|
|
2015-12-04 01:12:50 +00:00
|
|
|
@JEIPlugin
|
2015-11-29 07:52:06 +00:00
|
|
|
public class BloodMagicPlugin implements IModPlugin {
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isModLoaded() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-02 08:55:52 +00:00
|
|
|
@Nonnull
|
2015-11-29 07:52:06 +00:00
|
|
|
public Iterable<? extends IRecipeCategory> getRecipeCategories() {
|
|
|
|
return Arrays.asList(
|
2015-12-03 03:27:28 +00:00
|
|
|
new AltarRecipeCategory(),
|
|
|
|
new BindingRecipeCategory()
|
2015-11-29 07:52:06 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-12-02 08:55:52 +00:00
|
|
|
@Nonnull
|
2015-11-29 07:52:06 +00:00
|
|
|
public Iterable<? extends IRecipeHandler> getRecipeHandlers() {
|
|
|
|
return Arrays.asList(
|
2015-12-03 03:27:28 +00:00
|
|
|
new AltarRecipeHandler(),
|
|
|
|
new BindingRecipeHandler()
|
2015-11-29 07:52:06 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-12-02 08:55:52 +00:00
|
|
|
@Nonnull
|
|
|
|
public Iterable<? extends IRecipeTransferHelper> getRecipeTransferHelpers() {
|
|
|
|
return Arrays.asList(
|
|
|
|
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2015-11-29 07:52:06 +00:00
|
|
|
@Override
|
2015-12-02 08:55:52 +00:00
|
|
|
@Nonnull
|
2015-11-29 07:52:06 +00:00
|
|
|
public Iterable<Object> getRecipes() {
|
|
|
|
List<Object> recipes = new ArrayList<Object>();
|
|
|
|
|
2015-12-03 03:27:28 +00:00
|
|
|
recipes.addAll(AltarRecipeMaker.getRecipes());
|
|
|
|
recipes.addAll(BindingRecipeMaker.getRecipes());
|
2015-11-29 07:52:06 +00:00
|
|
|
|
|
|
|
return recipes;
|
|
|
|
}
|
|
|
|
}
|