Guide capacity recipe, rearranged some entries (#1641)
* Fix meta ID's (recipes shown) in the guide book for Displacement and Capacity * Rearranged topics to be closer to a natural progression.
This commit is contained in:
parent
0cbaa13cfc
commit
24b3552b60
|
@ -1,12 +1,12 @@
|
||||||
package WayofTime.bloodmagic.compat.guideapi.book;
|
package WayofTime.bloodmagic.compat.guideapi.book;
|
||||||
|
|
||||||
import WayofTime.bloodmagic.BloodMagic;
|
import WayofTime.bloodmagic.BloodMagic;
|
||||||
import WayofTime.bloodmagic.recipe.TartaricForgeRecipe;
|
|
||||||
import WayofTime.bloodmagic.compat.guideapi.BookUtils;
|
import WayofTime.bloodmagic.compat.guideapi.BookUtils;
|
||||||
import WayofTime.bloodmagic.compat.guideapi.entry.EntryText;
|
import WayofTime.bloodmagic.compat.guideapi.entry.EntryText;
|
||||||
import WayofTime.bloodmagic.compat.guideapi.page.PageAlchemyArray;
|
import WayofTime.bloodmagic.compat.guideapi.page.PageAlchemyArray;
|
||||||
import WayofTime.bloodmagic.compat.guideapi.page.PageTartaricForgeRecipe;
|
import WayofTime.bloodmagic.compat.guideapi.page.PageTartaricForgeRecipe;
|
||||||
import WayofTime.bloodmagic.core.RegistrarBloodMagicItems;
|
import WayofTime.bloodmagic.core.RegistrarBloodMagicItems;
|
||||||
|
import WayofTime.bloodmagic.recipe.TartaricForgeRecipe;
|
||||||
import WayofTime.bloodmagic.util.helper.RecipeHelper;
|
import WayofTime.bloodmagic.util.helper.RecipeHelper;
|
||||||
import WayofTime.bloodmagic.util.helper.TextHelper;
|
import WayofTime.bloodmagic.util.helper.TextHelper;
|
||||||
import amerifrance.guideapi.api.IPage;
|
import amerifrance.guideapi.api.IPage;
|
||||||
|
@ -63,6 +63,20 @@ public class CategoryAlchemy
|
||||||
speedPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "speed" + ".info"), 370));
|
speedPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "speed" + ".info"), 370));
|
||||||
entries.put(new ResourceLocation(keyBase + "speed"), new EntryText(speedPages, TextHelper.localize(keyBase + "speed"), true));
|
entries.put(new ResourceLocation(keyBase + "speed"), new EntryText(speedPages, TextHelper.localize(keyBase + "speed"), true));
|
||||||
|
|
||||||
|
List<IPage> buffPages = new ArrayList<>();
|
||||||
|
|
||||||
|
buffPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "buff" + ".info"), 370));
|
||||||
|
entries.put(new ResourceLocation(keyBase + "buff"), new EntryText(buffPages, TextHelper.localize(keyBase + "buff"), true));
|
||||||
|
|
||||||
|
List<IPage> fastMinerPages = new ArrayList<>();
|
||||||
|
|
||||||
|
PageAlchemyArray fastMinerRecipePage = BookUtils.getAlchemyPage("fastMiner");
|
||||||
|
if (fastMinerRecipePage != null) {
|
||||||
|
fastMinerPages.add(fastMinerRecipePage);
|
||||||
|
}
|
||||||
|
fastMinerPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "fastMiner" + ".info"), 370));
|
||||||
|
entries.put(new ResourceLocation(keyBase + "fastMiner"), new EntryText(fastMinerPages, TextHelper.localize(keyBase + "fastMiner"), true));
|
||||||
|
|
||||||
List<IPage> updraftPages = new ArrayList<>();
|
List<IPage> updraftPages = new ArrayList<>();
|
||||||
|
|
||||||
PageAlchemyArray updraftRecipePage = BookUtils.getAlchemyPage("updraft");
|
PageAlchemyArray updraftRecipePage = BookUtils.getAlchemyPage("updraft");
|
||||||
|
@ -123,21 +137,6 @@ public class CategoryAlchemy
|
||||||
laputaPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "laputa" + ".info"), 370));
|
laputaPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "laputa" + ".info"), 370));
|
||||||
entries.put(new ResourceLocation(keyBase + "laputa"), new EntryText(laputaPages, TextHelper.localize(keyBase + "laputa"), true));
|
entries.put(new ResourceLocation(keyBase + "laputa"), new EntryText(laputaPages, TextHelper.localize(keyBase + "laputa"), true));
|
||||||
|
|
||||||
List<IPage> buffPages = new ArrayList<>();
|
|
||||||
|
|
||||||
buffPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "buff" + ".info"), 370));
|
|
||||||
entries.put(new ResourceLocation(keyBase + "buff"), new EntryText(buffPages, TextHelper.localize(keyBase + "buff"), true));
|
|
||||||
|
|
||||||
List<IPage> fastMinerPages = new ArrayList<>();
|
|
||||||
|
|
||||||
PageAlchemyArray fastMinerRecipePage = BookUtils.getAlchemyPage("fastMiner");
|
|
||||||
if (fastMinerRecipePage != null)
|
|
||||||
{
|
|
||||||
fastMinerPages.add(fastMinerRecipePage);
|
|
||||||
}
|
|
||||||
fastMinerPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "fastMiner" + ".info"), 370));
|
|
||||||
entries.put(new ResourceLocation(keyBase + "fastMiner"), new EntryText(fastMinerPages, TextHelper.localize(keyBase + "fastMiner"), true));
|
|
||||||
|
|
||||||
for (Entry<ResourceLocation, EntryAbstract> entry : entries.entrySet())
|
for (Entry<ResourceLocation, EntryAbstract> entry : entries.entrySet())
|
||||||
{
|
{
|
||||||
for (IPage page : entry.getValue().pageList)
|
for (IPage page : entry.getValue().pageList)
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
package WayofTime.bloodmagic.compat.guideapi.book;
|
package WayofTime.bloodmagic.compat.guideapi.book;
|
||||||
|
|
||||||
import WayofTime.bloodmagic.BloodMagic;
|
import WayofTime.bloodmagic.BloodMagic;
|
||||||
import WayofTime.bloodmagic.recipe.TartaricForgeRecipe;
|
|
||||||
import WayofTime.bloodmagic.core.registry.AltarRecipeRegistry.AltarRecipe;
|
|
||||||
import WayofTime.bloodmagic.core.registry.OrbRegistry;
|
|
||||||
import WayofTime.bloodmagic.compat.guideapi.BookUtils;
|
import WayofTime.bloodmagic.compat.guideapi.BookUtils;
|
||||||
import WayofTime.bloodmagic.compat.guideapi.entry.EntryText;
|
import WayofTime.bloodmagic.compat.guideapi.entry.EntryText;
|
||||||
import WayofTime.bloodmagic.compat.guideapi.page.PageAlchemyArray;
|
import WayofTime.bloodmagic.compat.guideapi.page.PageAlchemyArray;
|
||||||
|
@ -12,7 +9,10 @@ import WayofTime.bloodmagic.compat.guideapi.page.PageTartaricForgeRecipe;
|
||||||
import WayofTime.bloodmagic.core.RegistrarBloodMagic;
|
import WayofTime.bloodmagic.core.RegistrarBloodMagic;
|
||||||
import WayofTime.bloodmagic.core.RegistrarBloodMagicBlocks;
|
import WayofTime.bloodmagic.core.RegistrarBloodMagicBlocks;
|
||||||
import WayofTime.bloodmagic.core.RegistrarBloodMagicItems;
|
import WayofTime.bloodmagic.core.RegistrarBloodMagicItems;
|
||||||
|
import WayofTime.bloodmagic.core.registry.AltarRecipeRegistry.AltarRecipe;
|
||||||
|
import WayofTime.bloodmagic.core.registry.OrbRegistry;
|
||||||
import WayofTime.bloodmagic.item.types.ComponentTypes;
|
import WayofTime.bloodmagic.item.types.ComponentTypes;
|
||||||
|
import WayofTime.bloodmagic.recipe.TartaricForgeRecipe;
|
||||||
import WayofTime.bloodmagic.util.helper.RecipeHelper;
|
import WayofTime.bloodmagic.util.helper.RecipeHelper;
|
||||||
import WayofTime.bloodmagic.util.helper.TextHelper;
|
import WayofTime.bloodmagic.util.helper.TextHelper;
|
||||||
import amerifrance.guideapi.api.IPage;
|
import amerifrance.guideapi.api.IPage;
|
||||||
|
@ -60,6 +60,16 @@ public class CategoryArchitect
|
||||||
altarPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "bloodaltar" + ".info.2"), 370));
|
altarPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "bloodaltar" + ".info.2"), 370));
|
||||||
entries.put(new ResourceLocation(keyBase + "bloodaltar"), new EntryText(altarPages, TextHelper.localize(keyBase + "bloodaltar"), true));
|
entries.put(new ResourceLocation(keyBase + "bloodaltar"), new EntryText(altarPages, TextHelper.localize(keyBase + "bloodaltar"), true));
|
||||||
|
|
||||||
|
List<IPage> daggerPages = new ArrayList<>();
|
||||||
|
|
||||||
|
AltarRecipe daggerOfSacrificeRecipe = RecipeHelper.getAltarRecipeForOutput(new ItemStack(RegistrarBloodMagicItems.DAGGER_OF_SACRIFICE));
|
||||||
|
if (daggerOfSacrificeRecipe != null) {
|
||||||
|
daggerPages.add(new PageAltarRecipe(daggerOfSacrificeRecipe));
|
||||||
|
}
|
||||||
|
|
||||||
|
daggerPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "dagger" + ".info.1"), 370));
|
||||||
|
entries.put(new ResourceLocation(keyBase + "dagger"), new EntryText(daggerPages, TextHelper.localize(keyBase + "dagger"), true));
|
||||||
|
|
||||||
List<IPage> ashPages = new ArrayList<>();
|
List<IPage> ashPages = new ArrayList<>();
|
||||||
|
|
||||||
TartaricForgeRecipe ashRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(RegistrarBloodMagicItems.ARCANE_ASHES));
|
TartaricForgeRecipe ashRecipe = RecipeHelper.getForgeRecipeForOutput(new ItemStack(RegistrarBloodMagicItems.ARCANE_ASHES));
|
||||||
|
@ -206,17 +216,6 @@ public class CategoryArchitect
|
||||||
apprenticeorbPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "apprenticeorb" + ".info.1"), 370));
|
apprenticeorbPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "apprenticeorb" + ".info.1"), 370));
|
||||||
entries.put(new ResourceLocation(keyBase + "apprenticeorb"), new EntryText(apprenticeorbPages, TextHelper.localize(keyBase + "apprenticeorb"), true));
|
entries.put(new ResourceLocation(keyBase + "apprenticeorb"), new EntryText(apprenticeorbPages, TextHelper.localize(keyBase + "apprenticeorb"), true));
|
||||||
|
|
||||||
List<IPage> daggerPages = new ArrayList<>();
|
|
||||||
|
|
||||||
AltarRecipe daggerOfSacrificeRecipe = RecipeHelper.getAltarRecipeForOutput(new ItemStack(RegistrarBloodMagicItems.DAGGER_OF_SACRIFICE));
|
|
||||||
if (daggerOfSacrificeRecipe != null)
|
|
||||||
{
|
|
||||||
daggerPages.add(new PageAltarRecipe(daggerOfSacrificeRecipe));
|
|
||||||
}
|
|
||||||
|
|
||||||
daggerPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "dagger" + ".info.1"), 370));
|
|
||||||
entries.put(new ResourceLocation(keyBase + "dagger"), new EntryText(daggerPages, TextHelper.localize(keyBase + "dagger"), true));
|
|
||||||
|
|
||||||
List<IPage> runeSacrificePages = new ArrayList<>();
|
List<IPage> runeSacrificePages = new ArrayList<>();
|
||||||
|
|
||||||
IRecipe runeSacrificeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(RegistrarBloodMagicBlocks.BLOOD_RUNE, 1, 3));
|
IRecipe runeSacrificeRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(RegistrarBloodMagicBlocks.BLOOD_RUNE, 1, 3));
|
||||||
|
@ -359,7 +358,7 @@ public class CategoryArchitect
|
||||||
|
|
||||||
List<IPage> capacityPages = new ArrayList<>();
|
List<IPage> capacityPages = new ArrayList<>();
|
||||||
|
|
||||||
IRecipe capacityRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(RegistrarBloodMagicBlocks.BLOOD_RUNE, 1, 4));
|
IRecipe capacityRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(RegistrarBloodMagicBlocks.BLOOD_RUNE, 1, 6));
|
||||||
if (capacityRecipe != null)
|
if (capacityRecipe != null)
|
||||||
{
|
{
|
||||||
capacityPages.add(BookUtils.getPageForRecipe(capacityRecipe));
|
capacityPages.add(BookUtils.getPageForRecipe(capacityRecipe));
|
||||||
|
@ -370,7 +369,7 @@ public class CategoryArchitect
|
||||||
|
|
||||||
List<IPage> displacementPages = new ArrayList<>();
|
List<IPage> displacementPages = new ArrayList<>();
|
||||||
|
|
||||||
IRecipe displacementRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(RegistrarBloodMagicBlocks.BLOOD_RUNE, 1, 4));
|
IRecipe displacementRecipe = RecipeHelper.getRecipeForOutput(new ItemStack(RegistrarBloodMagicBlocks.BLOOD_RUNE, 1, 5));
|
||||||
if (displacementRecipe != null)
|
if (displacementRecipe != null)
|
||||||
{
|
{
|
||||||
displacementPages.add(BookUtils.getPageForRecipe(displacementRecipe));
|
displacementPages.add(BookUtils.getPageForRecipe(displacementRecipe));
|
||||||
|
@ -486,6 +485,41 @@ public class CategoryArchitect
|
||||||
downgradePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "downgrade" + ".info"), 370));
|
downgradePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "downgrade" + ".info"), 370));
|
||||||
entries.put(new ResourceLocation(keyBase + "downgrade"), new EntryText(downgradePages, TextHelper.localize(keyBase + "downgrade"), true));
|
entries.put(new ResourceLocation(keyBase + "downgrade"), new EntryText(downgradePages, TextHelper.localize(keyBase + "downgrade"), true));
|
||||||
|
|
||||||
|
List<IPage> boundBladePages = new ArrayList<>();
|
||||||
|
|
||||||
|
PageAlchemyArray boundBladePage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_SWORD));
|
||||||
|
if (boundBladePage != null) {
|
||||||
|
boundBladePages.add(boundBladePage);
|
||||||
|
}
|
||||||
|
|
||||||
|
boundBladePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "boundBlade" + ".info.1"), 370));
|
||||||
|
entries.put(new ResourceLocation(keyBase + "boundBlade"), new EntryText(boundBladePages, TextHelper.localize(keyBase + "boundBlade"), true));
|
||||||
|
|
||||||
|
List<IPage> boundToolPages = new ArrayList<>();
|
||||||
|
|
||||||
|
PageAlchemyArray boundToolPage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_PICKAXE));
|
||||||
|
if (boundToolPage != null) {
|
||||||
|
boundToolPages.add(boundToolPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
boundToolPage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_AXE));
|
||||||
|
if (boundToolPage != null) {
|
||||||
|
boundToolPages.add(boundToolPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
boundToolPage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_SHOVEL));
|
||||||
|
if (boundToolPage != null) {
|
||||||
|
boundToolPages.add(boundToolPage);
|
||||||
|
}
|
||||||
|
|
||||||
|
boundToolPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "boundTool" + ".info.1"), 370));
|
||||||
|
entries.put(new ResourceLocation(keyBase + "boundTool"), new EntryText(boundToolPages, TextHelper.localize(keyBase + "boundTool"), true));
|
||||||
|
|
||||||
|
List<IPage> weakShardPages = new ArrayList<>();
|
||||||
|
|
||||||
|
weakShardPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "weakShard" + ".info.1"), 370));
|
||||||
|
entries.put(new ResourceLocation(keyBase + "weakShard"), new EntryText(weakShardPages, TextHelper.localize(keyBase + "weakShard"), true));
|
||||||
|
|
||||||
List<IPage> teleposerPages = new ArrayList<>();
|
List<IPage> teleposerPages = new ArrayList<>();
|
||||||
|
|
||||||
AltarRecipe teleposerFocusRecipe = RecipeHelper.getAltarRecipeForOutput(new ItemStack(RegistrarBloodMagicItems.TELEPOSITION_FOCUS));
|
AltarRecipe teleposerFocusRecipe = RecipeHelper.getAltarRecipeForOutput(new ItemStack(RegistrarBloodMagicItems.TELEPOSITION_FOCUS));
|
||||||
|
@ -503,45 +537,6 @@ public class CategoryArchitect
|
||||||
teleposerPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "teleposer" + ".info.1"), 370));
|
teleposerPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "teleposer" + ".info.1"), 370));
|
||||||
entries.put(new ResourceLocation(keyBase + "teleposer"), new EntryText(teleposerPages, TextHelper.localize(keyBase + "teleposer"), true));
|
entries.put(new ResourceLocation(keyBase + "teleposer"), new EntryText(teleposerPages, TextHelper.localize(keyBase + "teleposer"), true));
|
||||||
|
|
||||||
List<IPage> boundBladePages = new ArrayList<>();
|
|
||||||
|
|
||||||
PageAlchemyArray boundBladePage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_SWORD));
|
|
||||||
if (boundBladePage != null)
|
|
||||||
{
|
|
||||||
boundBladePages.add(boundBladePage);
|
|
||||||
}
|
|
||||||
|
|
||||||
boundBladePages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "boundBlade" + ".info.1"), 370));
|
|
||||||
entries.put(new ResourceLocation(keyBase + "boundBlade"), new EntryText(boundBladePages, TextHelper.localize(keyBase + "boundBlade"), true));
|
|
||||||
|
|
||||||
List<IPage> boundToolPages = new ArrayList<>();
|
|
||||||
|
|
||||||
PageAlchemyArray boundToolPage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_PICKAXE));
|
|
||||||
if (boundToolPage != null)
|
|
||||||
{
|
|
||||||
boundToolPages.add(boundToolPage);
|
|
||||||
}
|
|
||||||
|
|
||||||
boundToolPage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_AXE));
|
|
||||||
if (boundToolPage != null)
|
|
||||||
{
|
|
||||||
boundToolPages.add(boundToolPage);
|
|
||||||
}
|
|
||||||
|
|
||||||
boundToolPage = BookUtils.getAlchemyPage(new ItemStack(RegistrarBloodMagicItems.BOUND_SHOVEL));
|
|
||||||
if (boundToolPage != null)
|
|
||||||
{
|
|
||||||
boundToolPages.add(boundToolPage);
|
|
||||||
}
|
|
||||||
|
|
||||||
boundToolPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "boundTool" + ".info.1"), 370));
|
|
||||||
entries.put(new ResourceLocation(keyBase + "boundTool"), new EntryText(boundToolPages, TextHelper.localize(keyBase + "boundTool"), true));
|
|
||||||
|
|
||||||
List<IPage> weakShardPages = new ArrayList<>();
|
|
||||||
|
|
||||||
weakShardPages.addAll(PageHelper.pagesForLongText(TextHelper.localize(keyBase + "weakShard" + ".info.1"), 370));
|
|
||||||
entries.put(new ResourceLocation(keyBase + "weakShard"), new EntryText(weakShardPages, TextHelper.localize(keyBase + "weakShard"), true));
|
|
||||||
|
|
||||||
List<IPage> masterOrbPages = new ArrayList<>();
|
List<IPage> masterOrbPages = new ArrayList<>();
|
||||||
|
|
||||||
AltarRecipe masterOrbRecipe = RecipeHelper.getAltarRecipeForOutput(OrbRegistry.getOrbStack(RegistrarBloodMagic.ORB_MASTER));
|
AltarRecipe masterOrbRecipe = RecipeHelper.getAltarRecipeForOutput(OrbRegistry.getOrbStack(RegistrarBloodMagic.ORB_MASTER));
|
||||||
|
|
Loading…
Reference in a new issue