package WayofTime.alchemicalWizardry.common.book; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumChatFormatting; import WayofTime.alchemicalWizardry.ModBlocks; import WayofTime.alchemicalWizardry.ModItems; import WayofTime.alchemicalWizardry.book.compact.Category; import WayofTime.alchemicalWizardry.book.compact.Entry; import WayofTime.alchemicalWizardry.book.entries.EntryImage; import WayofTime.alchemicalWizardry.book.entries.EntryItemText; import WayofTime.alchemicalWizardry.book.entries.EntryRitualInfo; import WayofTime.alchemicalWizardry.book.entries.EntryText; import WayofTime.alchemicalWizardry.book.entries.IEntry; import WayofTime.alchemicalWizardry.book.enums.EnumType; import WayofTime.alchemicalWizardry.book.registries.EntryRegistry; public class BUEntries { public void postInit() { initCategories(); initEntries(); } public void initCategories(){ categoryBasics = new Category("Basics", new ItemStack(ModItems.weakBloodOrb), EnumType.ITEM); categoryRituals = new Category("Rituals", new ItemStack(ModItems.itemRitualDiviner), EnumType.ITEM); registerCategories(); } public static Category categoryBasics; public static Category categoryRituals; public void registerCategories(){ EntryRegistry.registerCategories(BUEntries.categoryBasics); EntryRegistry.registerCategories(BUEntries.categoryRituals); } public void initEntries() { rIntro = new Entry(new IEntry[]{new EntryText(), new EntryText(), new EntryText()}, "Introduction", 1); rWeakRituals = new Entry(new IEntry[]{new EntryText(), new EntryText(), new EntryText(), new EntryText()}, "Weak Rituals", 1); rRituals = new Entry(new IEntry[]{new EntryText(), new EntryText(), new EntryText(), new EntryText()}, "Rituals", 1); rRitualWater = this.getPureTextEntry(2, "Ritual of the Full Spring", 1); theAltar = new Entry(new IEntry[]{new EntryItemText(new ItemStack(ModBlocks.blockAltar), "Blood Altar")}, EnumChatFormatting.BLUE + "Blood Altar", 1); runes = new Entry(new IEntry[]{new EntryItemText(new ItemStack(ModBlocks.runeOfSelfSacrifice)), new EntryItemText(new ItemStack(ModBlocks.runeOfSacrifice)), new EntryItemText(new ItemStack(ModBlocks.speedRune))}, "Runes", 1); /** Page 1 */ ritualWater = new Entry(new IEntry[]{new EntryText()}, "Full Spring", 1); ritualLava = new Entry(new IEntry[]{new EntryText(), new EntryText()}, "Nether", 1); ritualGreenGrove = new Entry(new IEntry[]{new EntryText(), new EntryText()}, "Green Grove", 1); ritualInterdiction = new Entry(new IEntry[]{new EntryText(), new EntryText()}, "Interdiction", 1); ritualContainment = new Entry(new IEntry[]{new EntryText()}, "Containment", 1); ritualHighJump = new Entry(new IEntry[]{new EntryText()}, "High Jump", 1); ritualSpeed = new Entry(new IEntry[]{new EntryText()}, "Speed", 1); ritualMagnet = new Entry(new IEntry[]{new EntryText()}, "Magnetism", 1); ritualCrusher = new Entry(new IEntry[]{new EntryText()}, "Crusher", 1); ritualShepherd = new Entry(new IEntry[]{new EntryText()}, "Shepherd", 1); ritualRegeneration = new Entry(new IEntry[]{new EntryText(), new EntryText(), new EntryText()}, "Regeneration", 1); ritualFeatheredKnife = new Entry(new IEntry[]{new EntryText(), new EntryText(), new EntryText(), new EntryText()}, "Feathered Knife", 1); ritualMoon = new Entry(new IEntry[]{new EntryText()}, "Harvest Moon", 1); ritualSoul = new Entry(new IEntry[]{new EntryText(), new EntryText()}, "Eternal Soul", 2); ritualCure = new Entry(new IEntry[]{new EntryText(), new EntryRitualInfo(500)}, "Curing", 1); // blockDivination = new Entry(new IEntry[]{new EntryItemText(new ItemStack(BUBlocks.altarProgress)), new EntryCraftingRecipe(BURecipes.altarProgress)}, "Divination Block", 1); // sigilAdvancedDivination = new Entry(new IEntry[]{new EntryItemText(new ItemStack(BUItems.sigil_advancedDivination)), new EntryAltarRecipe(BURecipes.advancedSigil)}, "Advanced Divination", 1); // // elementRituals = new Entry(new IEntry[]{new EntryItemText(new ItemStack(BUBlocks.darknessArea)), new EntryText(), new EntryCraftingRecipe(BURecipes.gemEmpty), new EntryAltarRecipe(BURecipes.diamondBlood)}, "Elemental Rituals", 1); // reviving = new Entry(new IEntry[]{new EntryText(), new EntryCraftingRecipe(BURecipes.reviver)}, "Reviving", 1); /** Debug */ debug = new Entry(new IEntry[]{new EntryText("Debug"), new EntryImage("bloodutils:textures/misc/screenshots/t1.png", 854, 480, "Debug")}, EnumChatFormatting.AQUA + "De" + EnumChatFormatting.RED + "bug", 1); registerEntries(); } public Entry getPureTextEntry(int numberOfPages, String name, int pageNumber) { IEntry[] entries = new IEntry[numberOfPages]; for(int i=0; i