2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* This file ("InitBooklet.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2015-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-08-29 23:01:13 +02:00
|
|
|
package ellpeck.actuallyadditions.booklet;
|
2015-08-28 21:17:09 +02:00
|
|
|
|
2015-08-31 07:24:58 +02:00
|
|
|
import ellpeck.actuallyadditions.blocks.InitBlocks;
|
2015-09-10 21:25:34 +02:00
|
|
|
import ellpeck.actuallyadditions.blocks.metalists.TheColoredLampColors;
|
2015-08-31 07:24:58 +02:00
|
|
|
import ellpeck.actuallyadditions.blocks.metalists.TheMiscBlocks;
|
2015-11-11 18:51:20 +01:00
|
|
|
import ellpeck.actuallyadditions.booklet.chapter.BookletChapter;
|
|
|
|
import ellpeck.actuallyadditions.booklet.chapter.BookletChapterCoffee;
|
|
|
|
import ellpeck.actuallyadditions.booklet.chapter.BookletChapterCrusher;
|
|
|
|
import ellpeck.actuallyadditions.booklet.entry.BookletEntry;
|
|
|
|
import ellpeck.actuallyadditions.booklet.entry.BookletEntryAllSearch;
|
2015-10-03 23:28:32 +02:00
|
|
|
import ellpeck.actuallyadditions.booklet.page.*;
|
2015-09-10 21:25:34 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigIntValues;
|
2015-10-03 23:28:32 +02:00
|
|
|
import ellpeck.actuallyadditions.crafting.*;
|
2015-11-28 19:02:01 +01:00
|
|
|
import ellpeck.actuallyadditions.gen.OreGen;
|
2015-08-28 22:18:46 +02:00
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
2015-12-03 22:49:31 +01:00
|
|
|
import ellpeck.actuallyadditions.items.lens.LensNoneRecipeHandler;
|
2015-08-28 22:18:46 +02:00
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
2015-08-31 07:24:58 +02:00
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
2015-08-31 05:44:09 +02:00
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheSpecialDrops;
|
2015-11-28 19:02:01 +01:00
|
|
|
import ellpeck.actuallyadditions.tile.*;
|
2015-09-23 18:36:53 +02:00
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
2015-12-19 10:11:11 +01:00
|
|
|
import net.minecraft.init.Items;
|
2015-08-28 22:18:46 +02:00
|
|
|
import net.minecraft.item.ItemStack;
|
2015-09-10 21:25:34 +02:00
|
|
|
import net.minecraft.item.crafting.IRecipe;
|
2015-08-28 21:17:09 +02:00
|
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
|
|
|
public class InitBooklet{
|
|
|
|
|
2015-11-11 18:51:20 +01:00
|
|
|
public static ArrayList<BookletEntry> entries = new ArrayList<BookletEntry>();
|
2015-09-10 21:25:34 +02:00
|
|
|
public static ArrayList<BookletPage> pagesWithItemStackData = new ArrayList<BookletPage>();
|
2015-11-11 19:01:19 +01:00
|
|
|
|
2015-11-10 21:43:11 +01:00
|
|
|
public static int wordCount;
|
2015-11-11 19:01:19 +01:00
|
|
|
public static int charCount;
|
2015-08-28 21:17:09 +02:00
|
|
|
|
2015-08-30 19:10:10 +02:00
|
|
|
public static BookletChapter chapterIntro;
|
|
|
|
|
2015-11-15 15:15:32 +01:00
|
|
|
public static BookletEntry entryGettingStarted = new BookletEntry("gettingStarted").setImportant();
|
2015-11-11 18:51:20 +01:00
|
|
|
public static BookletEntry entryFunctionalNonRF = new BookletEntry("functionalNoRF");
|
|
|
|
public static BookletEntry entryFunctionalRF = new BookletEntry("functionalRF").setSpecial();
|
|
|
|
public static BookletEntry entryGeneratingRF = new BookletEntry("generatingRF").setSpecial();
|
|
|
|
public static BookletEntry entryItemsNonRF = new BookletEntry("itemsNoRF");
|
|
|
|
public static BookletEntry entryItemsRF = new BookletEntry("itemsRF").setSpecial();
|
|
|
|
public static BookletEntry entryMisc = new BookletEntry("misc");
|
2015-11-15 15:15:32 +01:00
|
|
|
public static BookletEntry allAndSearch = new BookletEntryAllSearch("allAndSearch").setSpecial();
|
2015-08-28 21:17:09 +02:00
|
|
|
|
2015-12-01 19:48:09 +01:00
|
|
|
public static void init(){
|
|
|
|
initChapters();
|
|
|
|
countWords();
|
|
|
|
}
|
|
|
|
|
2015-11-10 21:43:11 +01:00
|
|
|
private static void initChapters(){
|
2015-11-15 15:15:32 +01:00
|
|
|
//Getting Started
|
2015-12-03 20:15:07 +01:00
|
|
|
chapterIntro = new BookletChapter("intro", entryGettingStarted, new ItemStack(InitItems.itemBooklet), new PageTextOnly(1), new PageTextOnly(2), new PageTextOnly(3));
|
|
|
|
new BookletChapter("bookTutorial", entryGettingStarted, new ItemStack(InitItems.itemBooklet), new PageTextOnly(1), new PageTextOnly(2), new PageCrafting(3, ItemCrafting.recipeBook));
|
2015-12-03 22:49:31 +01:00
|
|
|
new BookletChapter("crystals", entryGettingStarted, new ItemStack(InitBlocks.blockAtomicReconstructor), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityAtomicReconstructor.ENERGY_USE), new PageTextOnly(2), new PagePicture(3, "pageAtomicReconstructor", 0).setNoText(), new PageTextOnly(4), new PageCrafting(5, BlockCrafting.recipeAtomicReconstructor).setNoText(), new PageCrafting(6, MiscCrafting.recipesCrystals).setNoText(), new PageCrafting(7, MiscCrafting.recipesCrystalBlocks).setNoText(), new PageReconstructor(8, LensNoneRecipeHandler.mainPageRecipes).setNoText()).setSpecial();
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("coalGen", entryGettingStarted, new ItemStack(InitBlocks.blockCoalGenerator), new PageCrafting(1, BlockCrafting.recipeCoalGen).addTextReplacement("<rf>", TileEntityCoalGenerator.PRODUCE));
|
2015-11-15 15:15:32 +01:00
|
|
|
new BookletChapter("craftingIngs", entryGettingStarted, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.COIL.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeCoil).setNoText(), new PageCrafting(3, ItemCrafting.recipeCoilAdvanced).setNoText(), new PageCrafting(4, BlockCrafting.recipeCase).setNoText(), new PageCrafting(5, BlockCrafting.recipeStoneCase).setNoText(), new PageCrafting(6, BlockCrafting.recipeEnderPearlBlock).setNoText(), new PageCrafting(7, BlockCrafting.recipeEnderCase).setNoText(), new PageCrafting(8, ItemCrafting.recipeRing).setNoText(), new PageCrafting(9, ItemCrafting.recipeKnifeHandle).setNoText(), new PageCrafting(10, ItemCrafting.recipeKnifeBlade).setNoText(), new PageCrafting(11, ItemCrafting.recipeKnife).setNoText(), new PageCrafting(12, ItemCrafting.recipeDough).setNoText(), new PageCrafting(13, ItemCrafting.recipeRiceDough).setNoText(), new PageCrafting(14, BlockCrafting.recipeIronCase).setNoText()).setImportant();
|
2015-12-19 10:11:11 +01:00
|
|
|
new BookletChapter("rf", entryGettingStarted, new ItemStack(Items.redstone), new PageTextOnly(1));
|
2015-09-10 21:25:34 +02:00
|
|
|
|
2015-09-12 20:35:43 +02:00
|
|
|
//Miscellaneous
|
2015-12-17 17:07:49 +01:00
|
|
|
new BookletChapter("reconstructorLenses", entryMisc, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.LENS.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeLens).setNoText(), new PageReconstructor(3, LensNoneRecipeHandler.recipeColorLens), new PageReconstructor(4, LensNoneRecipeHandler.recipeExplosionLens), new PageReconstructor(5, LensNoneRecipeHandler.recipeDamageLens), new PageReconstructor(6, LensNoneRecipeHandler.recipesGlowstoneRedstone).setNoText(), new PageReconstructor(7, LensNoneRecipeHandler.recipeSoulSand).setNoText(), new PageReconstructor(8, LensNoneRecipeHandler.recipeLeather).setNoText()).setImportant();
|
2015-12-03 22:49:31 +01:00
|
|
|
new BookletChapter("miscDecorStuffsAndThings", entryMisc, new ItemStack(InitBlocks.blockTestifiBucksGreenWall), new PageTextOnly(1), new PageReconstructor(2, LensNoneRecipeHandler.recipeWhiteWall).setNoText(), new PageReconstructor(3, LensNoneRecipeHandler.recipeGreenWall).setNoText());
|
2015-11-24 20:19:27 +01:00
|
|
|
new BookletChapter("bookStand", entryMisc, new ItemStack(InitBlocks.blockBookletStand), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeBookStand));
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("quartz", entryMisc, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal()), new PageTextOnly(1).setStack(new ItemStack(InitBlocks.blockMisc, 1, TheMiscBlocks.ORE_QUARTZ.ordinal())).addTextReplacement("<lowest>", OreGen.QUARTZ_MIN).addTextReplacement("<highest>", OreGen.QUARTZ_MAX), new PageTextOnly(2).setStack(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.QUARTZ.ordinal())), new PageCrafting(3, BlockCrafting.recipeQuartzBlock).setNoText(), new PageCrafting(4, BlockCrafting.recipeQuartzPillar).setNoText(), new PageCrafting(5, BlockCrafting.recipeQuartzChiseled).setNoText());
|
2015-10-23 19:05:02 +02:00
|
|
|
new BookletChapter("cloud", entryMisc, new ItemStack(InitBlocks.blockSmileyCloud), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeSmileyCloud).setNoText()).setSpecial();
|
2015-09-14 11:02:16 +02:00
|
|
|
new BookletChapter("coalStuff", entryMisc, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.TINY_COAL.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeTinyCoal).setNoText(), new PageCrafting(3, ItemCrafting.recipeTinyChar).setNoText(), new PageCrafting(4, BlockCrafting.recipeBlockChar).setNoText());
|
2015-09-16 11:58:11 +02:00
|
|
|
ArrayList<BookletPage> lampPages = new ArrayList<BookletPage>();
|
2015-09-19 17:50:16 +02:00
|
|
|
lampPages.add(new PageTextOnly(lampPages.size()+1));
|
2015-09-17 00:11:19 +02:00
|
|
|
lampPages.add(new PageCrafting(lampPages.size()+1, BlockCrafting.recipePowerer).setNoText());
|
2015-09-16 11:58:11 +02:00
|
|
|
for(IRecipe recipe : BlockCrafting.recipesLamps){
|
|
|
|
lampPages.add(new PageCrafting(lampPages.size()+1, recipe).setNoText());
|
|
|
|
}
|
|
|
|
new BookletChapter("lamps", entryMisc, new ItemStack(InitBlocks.blockColoredLampOn, 1, TheColoredLampColors.GREEN.ordinal()), lampPages.toArray(new BookletPage[lampPages.size()]));
|
|
|
|
|
2015-10-30 20:07:36 +01:00
|
|
|
new BookletChapter("treasureChest", entryMisc, new ItemStack(InitBlocks.blockTreasureChest), new PagePicture(1, "pageTreasureChest", 150).setStack(new ItemStack(InitBlocks.blockTreasureChest)), new PageTextOnly(2)).setSpecial();
|
|
|
|
new BookletChapter("hairBalls", entryMisc, new ItemStack(InitItems.itemHairyBall), new PagePicture(1, "pageFurBalls", 110).setStack(new ItemStack(InitItems.itemHairyBall)), new PageTextOnly(2)).setSpecial();
|
2015-11-03 16:30:13 +01:00
|
|
|
new BookletChapter("blackLotus", entryMisc, new ItemStack(InitBlocks.blockBlackLotus), new PageTextOnly(1).setStack(new ItemStack(InitBlocks.blockBlackLotus)), new PageCrafting(2, ItemCrafting.recipeBlackDye));
|
2015-09-10 21:25:34 +02:00
|
|
|
|
2015-09-12 20:35:43 +02:00
|
|
|
//No RF Using Blocks
|
2015-09-10 21:25:34 +02:00
|
|
|
new BookletChapter("breaker", entryFunctionalNonRF, new ItemStack(InitBlocks.blockBreaker), new PageCrafting(1, BlockCrafting.recipeBreaker), new PageCrafting(2, BlockCrafting.recipePlacer), new PageCrafting(3, BlockCrafting.recipeLiquidPlacer), new PageCrafting(4, BlockCrafting.recipeLiquidCollector));
|
2015-12-06 21:01:37 +01:00
|
|
|
new BookletChapter("dropper", entryFunctionalNonRF, new ItemStack(InitBlocks.blockDropper), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeDropper).setNoText());
|
2015-12-19 11:39:46 +01:00
|
|
|
new BookletChapter("phantomfaces", entryFunctionalNonRF, new ItemStack(InitBlocks.blockPhantomLiquiface), new PageTextOnly(1).addTextReplacement("<range>", TileEntityPhantomface.RANGE), new PageTextOnly(2), new PageCrafting(3, BlockCrafting.recipePhantomface), new PageCrafting(4, BlockCrafting.recipeLiquiface), new PageCrafting(5, BlockCrafting.recipeEnergyface), new PageCrafting(6, ItemCrafting.recipePhantomConnector).setNoText(), new PageCrafting(7, BlockCrafting.recipePhantomBooster)).setImportant();
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("phantomBreaker", entryFunctionalNonRF, new ItemStack(InitBlocks.blockPhantomBreaker), new PageTextOnly(1).addTextReplacement("<range>", TileEntityPhantomPlacer.RANGE), new PageCrafting(2, BlockCrafting.recipePhantomPlacer).setNoText(), new PageCrafting(3, BlockCrafting.recipePhantomBreaker).setNoText());
|
2015-10-23 19:05:02 +02:00
|
|
|
new BookletChapter("esd", entryFunctionalNonRF, new ItemStack(InitBlocks.blockInputterAdvanced), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeESD).setNoText(), new PageCrafting(3, BlockCrafting.recipeAdvancedESD).setNoText()).setSpecial();
|
|
|
|
new BookletChapter("xpSolidifier", entryFunctionalNonRF, new ItemStack(InitBlocks.blockXPSolidifier), new PageTextOnly(1).setStack(new ItemStack(InitItems.itemSpecialDrop, 1, TheSpecialDrops.SOLIDIFIED_EXPERIENCE.ordinal())), new PageCrafting(2, BlockCrafting.recipeSolidifier).setNoText()).setSpecial();
|
2015-12-05 16:00:11 +01:00
|
|
|
new BookletChapter("greenhouseGlass", entryFunctionalNonRF, new ItemStack(InitBlocks.blockGreenhouseGlass), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeGlass));
|
2015-09-16 17:34:11 +02:00
|
|
|
new BookletChapter("fishingNet", entryFunctionalNonRF, new ItemStack(InitBlocks.blockFishingNet), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeFisher).setNoText());
|
|
|
|
new BookletChapter("feeder", entryFunctionalNonRF, new ItemStack(InitBlocks.blockFeeder), new PageTextOnly(1), new PageCrafting(2, BlockCrafting.recipeFeeder).setNoText());
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("compost", entryFunctionalNonRF, new ItemStack(InitBlocks.blockCompost), new PageTextOnly(1).setStack(new ItemStack(InitItems.itemFertilizer)).addTextReplacement("<num>", TileEntityCompost.AMOUNT), new PageCrafting(2, BlockCrafting.recipeCompost).setNoText(), new PageCrafting(3, ItemCrafting.recipesMashedFood));
|
2015-12-16 15:45:01 +01:00
|
|
|
new BookletChapter("crate", entryFunctionalNonRF, new ItemStack(InitBlocks.blockGiantChest), new PageCrafting(1, BlockCrafting.recipeCrate), new PageCrafting(2, ItemCrafting.recipeCrateKeeper), new PageCrafting(3, ItemCrafting.recipeChestToCrateUpgrade));
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("rangedCollector", entryFunctionalNonRF, new ItemStack(InitBlocks.blockRangedCollector), new PageTextOnly(1).addTextReplacement("<range>", TileEntityRangedCollector.RANGE), new PageCrafting(2, BlockCrafting.recipeRangedCollector).setNoText());
|
2015-09-10 21:25:34 +02:00
|
|
|
|
2015-09-12 20:35:43 +02:00
|
|
|
//RF Using Blocks
|
2015-12-13 17:43:35 +01:00
|
|
|
new BookletChapter("fireworkBox", entryFunctionalRF, new ItemStack(InitBlocks.blockFireworkBox), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityFireworkBox.USE_PER_SHOT), new PageCrafting(2, BlockCrafting.recipeFireworkBox)).setSpecial();
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("laserRelays", entryFunctionalRF, new ItemStack(InitBlocks.blockLaserRelay), new PageTextOnly(1).addTextReplacement("<range>", TileEntityLaserRelay.MAX_DISTANCE).addTextReplacement("<loss>", ConfigIntValues.LASER_RELAY_LOSS.getValue()), new PagePicture(2, "pageLaserRelay", 0).setNoText(), new PageCrafting(3, BlockCrafting.recipeLaserRelay).setNoText(), new PageCrafting(4, ItemCrafting.recipeLaserWrench).setNoText()).setImportant();
|
2015-12-09 20:59:10 +01:00
|
|
|
new BookletChapter("miner", entryFunctionalRF, new ItemStack(InitBlocks.blockMiner), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityMiner.ENERGY_USE_PER_BLOCK), new PageCrafting(2, BlockCrafting.recipeMiner)).setSpecial();
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapterCoffee("coffeeMachine", entryFunctionalRF, new ItemStack(InitBlocks.blockCoffeeMachine), new PageTextOnly(1).setStack(new ItemStack(InitItems.itemCoffeeBean)).addTextReplacement("<rf>", TileEntityCoffeeMachine.ENERGY_USED).addTextReplacement("<coffee>", TileEntityCoffeeMachine.CACHE_USE).addTextReplacement("<water>", TileEntityCoffeeMachine.WATER_USE), new PageTextOnly(2).setStack(new ItemStack(InitItems.itemCoffee)), new PagePicture(3, "pageCoffeeMachine", 115), new PageCrafting(4, BlockCrafting.recipeCoffeeMachine).setNoText(), new PageCrafting(5, ItemCrafting.recipeCup).setNoText()).setImportant();
|
2015-12-01 23:23:55 +01:00
|
|
|
new BookletChapterCrusher("crusher", entryFunctionalRF, new ItemStack(InitBlocks.blockGrinderDouble), new PageTextOnly(1).addTextReplacement("<rf1>", TileEntityGrinder.getEnergyUse(false)).addTextReplacement("<rf2>", TileEntityGrinder.getEnergyUse(true)), new PageCrafting(2, BlockCrafting.recipeCrusher).setNoText(), new PageCrafting(3, BlockCrafting.recipeDoubleCrusher).setNoText(), new PageCrusherRecipe(4, CrusherCrafting.recipeIronHorseArmor).setNoText(), new PageCrusherRecipe(5, CrusherCrafting.recipeGoldHorseArmor).setNoText(), new PageCrusherRecipe(6, CrusherCrafting.recipeDiamondHorseArmor).setNoText());
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("furnaceDouble", entryFunctionalRF, new ItemStack(InitBlocks.blockFurnaceDouble), new PageCrafting(1, BlockCrafting.recipeFurnace).addTextReplacement("<rf>", TileEntityFurnaceDouble.ENERGY_USE));
|
|
|
|
new BookletChapter("lavaFactory", entryFunctionalRF, new ItemStack(InitBlocks.blockLavaFactoryController), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityLavaFactoryController.ENERGY_USE), new PagePicture(2, "pageLavaFactory", 0).setNoText(), new PageCrafting(3, BlockCrafting.recipeLavaFactory).setNoText(), new PageCrafting(4, BlockCrafting.recipeCasing).setNoText());
|
2015-09-10 21:25:34 +02:00
|
|
|
new BookletChapter("energizer", entryFunctionalRF, new ItemStack(InitBlocks.blockEnergizer), new PageCrafting(1, BlockCrafting.recipeEnergizer), new PageCrafting(2, BlockCrafting.recipeEnervator));
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("repairer", entryFunctionalRF, new ItemStack(InitBlocks.blockItemRepairer), new PageCrafting(1, BlockCrafting.recipeRepairer).addTextReplacement("<rf>", TileEntityItemRepairer.ENERGY_USE));
|
|
|
|
new BookletChapter("longRangeBreaker", entryFunctionalRF, new ItemStack(InitBlocks.blockDirectionalBreaker), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityDirectionalBreaker.ENERGY_USE).addTextReplacement("<range>", TileEntityDirectionalBreaker.RANGE), new PageCrafting(2, BlockCrafting.recipeDirectionalBreaker));
|
2015-09-10 21:25:34 +02:00
|
|
|
|
2015-09-12 20:35:43 +02:00
|
|
|
//RF Generating Blocks
|
2015-11-28 19:02:01 +01:00
|
|
|
new BookletChapter("solarPanel", entryGeneratingRF, new ItemStack(InitBlocks.blockFurnaceSolar), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityFurnaceSolar.PRODUCE), new PageCrafting(2, BlockCrafting.recipeSolar).setNoText());
|
|
|
|
new BookletChapter("heatCollector", entryGeneratingRF, new ItemStack(InitBlocks.blockHeatCollector), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityHeatCollector.ENERGY_PRODUCE).addTextReplacement("<min>", TileEntityHeatCollector.BLOCKS_NEEDED), new PageCrafting(2, BlockCrafting.recipeHeatCollector).setNoText());
|
|
|
|
new BookletChapter("canola", entryGeneratingRF, new ItemStack(InitBlocks.blockFermentingBarrel), new PageTextOnly(1).setStack(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.CANOLA.ordinal())).addTextReplacement("<pressRF>", TileEntityCanolaPress.ENERGY_USE).addTextReplacement("<canola>", TileEntityCanolaPress.PRODUCE).addTextReplacement("<rf>", TileEntityOilGenerator.ENERGY_PRODUCED), new PageCrafting(2, BlockCrafting.recipeCanolaPress).setNoText(), new PageCrafting(3, BlockCrafting.recipeFermentingBarrel).setNoText(), new PageCrafting(4, BlockCrafting.recipeOilGen).setNoText());
|
|
|
|
new BookletChapter("leafGen", entryGeneratingRF, new ItemStack(InitBlocks.blockLeafGenerator), new PageTextOnly(1).addTextReplacement("<rf>", TileEntityLeafGenerator.ENERGY_PRODUCED).addTextReplacement("<range>", TileEntityLeafGenerator.RANGE), new PageCrafting(2, BlockCrafting.recipeLeafGen)).setImportant();
|
2015-09-10 21:25:34 +02:00
|
|
|
|
2015-09-12 20:35:43 +02:00
|
|
|
//No RF Using Items
|
2015-10-23 19:05:02 +02:00
|
|
|
new BookletChapter("wings", entryItemsNonRF, new ItemStack(InitItems.itemWingsOfTheBats), new PageTextOnly(1).setStack(new ItemStack(InitItems.itemMisc, 1, TheMiscItems.BAT_WING.ordinal())), new PageCrafting(2, ItemCrafting.recipeWings).setNoText()).setSpecial();
|
2015-10-24 21:20:27 +02:00
|
|
|
new BookletChapter("foods", entryItemsNonRF, new ItemStack(InitItems.itemFoods, 1, TheFoods.HAMBURGER.ordinal()), new PageCrafting(1, FoodCrafting.recipePizza).setNoText(), new PageFurnace(2, new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE_BREAD.ordinal())).setNoText(), new PageCrafting(3, FoodCrafting.recipeHamburger).setNoText(), new PageCrafting(4, FoodCrafting.recipeBigCookie).setNoText(), new PageCrafting(5, FoodCrafting.recipeSubSandwich).setNoText(), new PageCrafting(6, FoodCrafting.recipeFrenchFry).setNoText(), new PageCrafting(7, FoodCrafting.recipeFrenchFries).setNoText(), new PageCrafting(8, FoodCrafting.recipeFishNChips).setNoText(), new PageCrafting(9, FoodCrafting.recipeCheese).setNoText(), new PageCrafting(10, FoodCrafting.recipePumpkinStew).setNoText(), new PageCrafting(11, FoodCrafting.recipeCarrotJuice).setNoText(), new PageCrafting(12, FoodCrafting.recipeSpaghetti).setNoText(), new PageCrafting(13, FoodCrafting.recipeNoodle).setNoText(), new PageCrafting(14, FoodCrafting.recipeChocolate).setNoText(), new PageCrafting(15, FoodCrafting.recipeChocolateCake).setNoText(), new PageCrafting(16, FoodCrafting.recipeToast).setNoText(), new PageFurnace(17, new ItemStack(InitItems.itemFoods, 1, TheFoods.BAGUETTE.ordinal())).setNoText(), new PageCrafting(18, FoodCrafting.recipeChocolateToast).setNoText());
|
2015-10-23 19:05:02 +02:00
|
|
|
new BookletChapter("leafBlower", entryItemsNonRF, new ItemStack(InitItems.itemLeafBlowerAdvanced), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeLeafBlower).setNoText(), new PageCrafting(3, ItemCrafting.recipeLeafBlowerAdvanced).setNoText()).setImportant();
|
2015-09-12 20:35:43 +02:00
|
|
|
ArrayList<BookletPage> aiotPages = new ArrayList<BookletPage>();
|
|
|
|
aiotPages.add(new PageTextOnly(aiotPages.size()+1));
|
|
|
|
for(IRecipe recipe : ToolCrafting.recipesPaxels){
|
2015-11-14 14:30:35 +01:00
|
|
|
aiotPages.add(new PageCrafting(aiotPages.size()+1, recipe).setNoText().setPageStacksWildcard());
|
2015-09-12 20:35:43 +02:00
|
|
|
}
|
2015-10-23 19:05:02 +02:00
|
|
|
new BookletChapter("aiots", entryItemsNonRF, new ItemStack(InitItems.emeraldPaxel), aiotPages.toArray(new BookletPage[aiotPages.size()])).setImportant();
|
2015-09-12 20:35:43 +02:00
|
|
|
|
2015-10-10 21:56:52 +02:00
|
|
|
new BookletChapter("jams", entryItemsNonRF, new ItemStack(InitItems.itemJams), new PageTextOnly(1).setStack(new ItemStack(InitItems.itemJams, 1, Util.WILDCARD)), new PageTextOnly(2));
|
2015-09-12 20:35:43 +02:00
|
|
|
|
|
|
|
ArrayList<BookletPage> potionRingPages = new ArrayList<BookletPage>();
|
|
|
|
potionRingPages.add(new PageTextOnly(potionRingPages.size()+1));
|
|
|
|
for(IRecipe recipe : ItemCrafting.recipesPotionRings){
|
2015-09-16 11:58:11 +02:00
|
|
|
potionRingPages.add(new PageCrafting(potionRingPages.size()+1, recipe).setNoText());
|
2015-09-12 20:35:43 +02:00
|
|
|
}
|
|
|
|
new BookletChapter("potionRings", entryItemsNonRF, new ItemStack(InitItems.itemPotionRing), potionRingPages.toArray(new BookletPage[potionRingPages.size()]));
|
2015-09-10 21:25:34 +02:00
|
|
|
|
2015-09-12 20:35:43 +02:00
|
|
|
//RF Using Items
|
2015-12-01 23:44:57 +01:00
|
|
|
new BookletChapter("drill", entryItemsRF, new ItemStack(InitItems.itemDrill, 1, TheColoredLampColors.LIGHT_BLUE.ordinal()), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeDrill).setNoText(), new PageCrafting(3, ItemCrafting.recipesDrillColoring), new PageCrafting(4, ItemCrafting.recipeDrillCore).setNoText(), new PageCrafting(5, ItemCrafting.recipeDrillSpeedI).setNoText(), new PageCrafting(6, ItemCrafting.recipeDrillSpeedII).setNoText(), new PageCrafting(7, ItemCrafting.recipeDrillSpeedIII).setNoText(), new PageCrafting(8, ItemCrafting.recipeDrillFortuneI).setNoText(), new PageCrafting(9, ItemCrafting.recipeDrillFortuneII).setNoText(), new PageCrafting(10, ItemCrafting.recipeDrillSilk).setNoText(), new PageCrafting(11, ItemCrafting.recipeDrillThree).setNoText(), new PageCrafting(12, ItemCrafting.recipeDrillFive).setNoText(), new PageCrafting(13, ItemCrafting.recipeDrillPlacing).setNoText()).setSpecial();
|
2015-10-23 19:05:02 +02:00
|
|
|
new BookletChapter("staff", entryItemsRF, new ItemStack(InitItems.itemTeleStaff), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeStaff).setNoText()).setImportant();
|
2015-09-10 21:25:34 +02:00
|
|
|
new BookletChapter("magnetRing", entryItemsRF, new ItemStack(InitItems.itemMagnetRing), new PageCrafting(1, ItemCrafting.recipeMagnetRing));
|
|
|
|
new BookletChapter("growthRing", entryItemsRF, new ItemStack(InitItems.itemGrowthRing), new PageCrafting(1, ItemCrafting.recipeGrowthRing));
|
|
|
|
new BookletChapter("waterRemovalRing", entryItemsRF, new ItemStack(InitItems.itemWaterRemovalRing), new PageCrafting(1, ItemCrafting.recipeWaterRing));
|
2015-09-19 16:50:04 +02:00
|
|
|
new BookletChapter("batteries", entryItemsRF, new ItemStack(InitItems.itemBatteryTriple), new PageTextOnly(1), new PageCrafting(2, ItemCrafting.recipeBattery).setNoText(), new PageCrafting(3, ItemCrafting.recipeBatteryDouble).setNoText(), new PageCrafting(4, ItemCrafting.recipeBatteryTriple).setNoText(), new PageCrafting(5, ItemCrafting.recipeBatteryQuadruple).setNoText(), new PageCrafting(6, ItemCrafting.recipeBatteryQuintuple).setNoText());
|
2015-08-28 21:17:09 +02:00
|
|
|
}
|
2015-11-10 21:43:11 +01:00
|
|
|
|
|
|
|
private static void countWords(){
|
2015-11-11 18:51:20 +01:00
|
|
|
for(BookletEntry entry : entries){
|
2015-11-10 21:43:11 +01:00
|
|
|
for(BookletChapter chapter : entry.chapters){
|
|
|
|
for(BookletPage page : chapter.pages){
|
|
|
|
if(page.getText() != null){
|
|
|
|
wordCount += page.getText().split(" ").length;
|
2015-11-11 19:01:19 +01:00
|
|
|
charCount += page.getText().length();
|
2015-11-10 21:43:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
wordCount += chapter.getLocalizedName().split(" ").length;
|
2015-11-11 19:01:19 +01:00
|
|
|
charCount += chapter.getLocalizedName().length();
|
2015-11-10 21:43:11 +01:00
|
|
|
}
|
|
|
|
wordCount += entry.getLocalizedName().split(" ").length;
|
2015-11-11 19:01:19 +01:00
|
|
|
charCount += entry.getLocalizedName().length();
|
2015-11-10 21:43:11 +01:00
|
|
|
}
|
|
|
|
}
|
2015-08-28 21:17:09 +02:00
|
|
|
}
|