use of mezz.jei.api.IGuiHelper in project EnderIO by SleepyTrousers.
the class MachinesPlugin method register.
@Override
public void register(@Nonnull IModRegistry registry) {
super.register(registry);
IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
AlloyRecipeCategory.register(registry, guiHelper);
CombustionRecipeCategory.register(registry, guiHelper);
EnchanterRecipeCategory.register(registry, guiHelper);
PainterRecipeCategory.register(registry, registry.getJeiHelpers());
SagMillRecipeCategory.register(registry, guiHelper);
SliceAndSpliceRecipeCategory.register(registry, guiHelper);
SolarPanelRecipeCategory.register(registry, guiHelper);
SoulBinderRecipeCategory.register(registry, guiHelper);
StirlingRecipeCategory.register(registry, guiHelper);
TankRecipeCategory.register(registry, guiHelper);
VatRecipeCategory.register(registry, guiHelper);
WiredChargerRecipeCategory.register(registry, guiHelper);
WeatherObeliskRecipeCategory.register(registry, guiHelper);
ZombieGeneratorRecipeCategory.register(registry, guiHelper);
}
use of mezz.jei.api.IGuiHelper in project ForestryMC by ForestryMC.
the class CharcoalJeiPlugin method registerCategories.
@Override
public void registerCategories(IRecipeCategoryRegistration registry) {
if (!ForestryAPI.enabledModules.contains(new ResourceLocation(Constants.MOD_ID, ForestryModuleUids.CHARCOAL))) {
return;
}
IGuiHelper guiHelper = registry.getJeiHelpers().getGuiHelper();
registry.addRecipeCategories(new CharcoalPileWallCategory(guiHelper));
}
use of mezz.jei.api.IGuiHelper in project Random-Things by lumien231.
the class RandomThingsPlugin method register.
@Override
public void register(IModRegistry registry) {
this.jeiHelpers = registry.getJeiHelpers();
RandomThingsPlugin.stackHelper = jeiHelpers.getStackHelper();
IGuiHelper guiHelper = jeiHelpers.getGuiHelper();
registry.handleRecipes(ImbuingRecipe.class, (recipe) -> (new ImbuingRecipeWrapper(recipe.getIngredients(), recipe.toImbue(), recipe.getResult())), IMBUE_ID);
registry.addRecipeCatalyst(new ItemStack(ModBlocks.imbuingStation), IMBUE_ID);
IRecipeTransferRegistry recipeTransferRegistry = registry.getRecipeTransferRegistry();
recipeTransferRegistry.addRecipeTransferHandler(ContainerImbuingStation.class, IMBUE_ID, 0, 4, 5, 36);
registry.addRecipes(lumien.randomthings.recipes.imbuing.ImbuingRecipeHandler.imbuingRecipes, IMBUE_ID);
List<IRecipeWrapper> anvilRecipes = new ArrayList<IRecipeWrapper>();
for (AnvilRecipe ar : lumien.randomthings.recipes.anvil.AnvilRecipeHandler.getAllRecipes()) {
anvilRecipes.add(jeiHelpers.getVanillaRecipeFactory().createAnvilRecipe(ar.getFirst(), Lists.newArrayList(ar.getSecond()), Lists.newArrayList(ar.getOutput())));
}
registry.addRecipes(anvilRecipes, VanillaRecipeCategoryUid.ANVIL);
registry.addRecipeClickArea(GuiImbuingStation.class, 99, 54, 22, 16, IMBUE_ID);
DescriptionHandler.addDescriptions(registry);
}
Aggregations