Added Mimic entry to The Architect.

This commit is contained in:
WayofTime 2016-09-08 19:20:14 -04:00
parent 4190031710
commit 63febfeb85
4 changed files with 19 additions and 8 deletions

View file

@ -26,7 +26,6 @@ import WayofTime.bloodmagic.util.helper.TextHelper;
import amerifrance.guideapi.api.IPage;
import amerifrance.guideapi.api.impl.abstraction.EntryAbstract;
import amerifrance.guideapi.api.util.PageHelper;
import amerifrance.guideapi.page.PageIRecipe;
import amerifrance.guideapi.page.PageText;
public class CategoryArchitect
@ -46,7 +45,7 @@ public class CategoryArchitect
IRecipe altarRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.altar));
if (altarRecipe != null)
{
altarPages.add(new PageIRecipe(altarRecipe));
altarPages.add(BookUtils.getPageForRecipe(altarRecipe));
}
altarPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "bloodaltar" + ".info.1"), 370));
@ -54,7 +53,7 @@ public class CategoryArchitect
IRecipe daggerRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModItems.sacrificialDagger));
if (daggerRecipe != null)
{
altarPages.add(new PageIRecipe(daggerRecipe));
altarPages.add(BookUtils.getPageForRecipe(daggerRecipe));
}
altarPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "bloodaltar" + ".info.2"), 370));
@ -656,6 +655,17 @@ public class CategoryArchitect
bridgePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "bridge" + ".info.1"), 370));
entries.put(new ResourceLocation(keyBase + "bridge"), new EntryText(bridgePages, TextHelper.localize(keyBase + "bridge"), true));
List<IPage> mimicPages = new ArrayList<IPage>();
IRecipe mimicRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.mimic, 1, 1));
if (mimicRecipe != null)
{
mimicPages.add(BookUtils.getPageForRecipe(mimicRecipe));
}
mimicPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "mimic" + ".info.1"), 370));
entries.put(new ResourceLocation(keyBase + "mimic"), new EntryText(mimicPages, TextHelper.localize(keyBase + "mimic"), true));
for (Entry<ResourceLocation, EntryAbstract> entry : entries.entrySet())
{
for (IPage page : entry.getValue().pageList)

View file

@ -11,6 +11,7 @@ import net.minecraft.item.crafting.IRecipe;
import net.minecraft.util.ResourceLocation;
import WayofTime.bloodmagic.api.Constants;
import WayofTime.bloodmagic.api.recipe.TartaricForgeRecipe;
import WayofTime.bloodmagic.compat.guideapi.BookUtils;
import WayofTime.bloodmagic.compat.guideapi.entry.EntryText;
import WayofTime.bloodmagic.compat.guideapi.page.PageTartaricForgeRecipe;
import WayofTime.bloodmagic.registry.ModBlocks;
@ -20,7 +21,6 @@ import WayofTime.bloodmagic.util.helper.TextHelper;
import amerifrance.guideapi.api.IPage;
import amerifrance.guideapi.api.impl.abstraction.EntryAbstract;
import amerifrance.guideapi.api.util.PageHelper;
import amerifrance.guideapi.page.PageIRecipe;
import amerifrance.guideapi.page.PageText;
public class CategoryDemon
@ -42,7 +42,7 @@ public class CategoryDemon
IRecipe snareRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModItems.soulSnare));
if (snareRecipe != null)
{
snarePages.add(new PageIRecipe(snareRecipe));
snarePages.add(BookUtils.getPageForRecipe(snareRecipe));
}
snarePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "snare" + ".info.2"), 370));
@ -54,7 +54,7 @@ public class CategoryDemon
IRecipe forgeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(ModBlocks.soulForge));
if (forgeRecipe != null)
{
forgePages.add(new PageIRecipe(forgeRecipe));
forgePages.add(BookUtils.getPageForRecipe(forgeRecipe));
}
forgePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "forge" + ".info.2"), 370));