aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core
diff options
context:
space:
mode:
authorJordan Byrne <draknyte1@hotmail.com>2018-03-03 00:15:48 +1000
committerJordan Byrne <draknyte1@hotmail.com>2018-03-03 00:15:48 +1000
commit5d674370577d6fb4210007055cd67f881b026dad (patch)
tree2db1007aaa301fa95cf13eae93bf430d12792b60 /src/Java/gtPlusPlus/core
parent015f77f4d2c108c01c4a0524ed28803683f31ca4 (diff)
downloadGT5-Unofficial-5d674370577d6fb4210007055cd67f881b026dad.tar.gz
GT5-Unofficial-5d674370577d6fb4210007055cd67f881b026dad.tar.bz2
GT5-Unofficial-5d674370577d6fb4210007055cd67f881b026dad.zip
+ Base work for Multi Machine.
+ Added a manual for the Multi Machine.
Diffstat (limited to 'src/Java/gtPlusPlus/core')
-rw-r--r--src/Java/gtPlusPlus/core/handler/BookHandler.java21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/core/handler/BookHandler.java b/src/Java/gtPlusPlus/core/handler/BookHandler.java
index 6c7e49c754..ca9fffbeb3 100644
--- a/src/Java/gtPlusPlus/core/handler/BookHandler.java
+++ b/src/Java/gtPlusPlus/core/handler/BookHandler.java
@@ -8,6 +8,7 @@ import net.minecraft.item.ItemStack;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.item.ModItems;
+import gtPlusPlus.core.recipe.common.CI;
import gtPlusPlus.core.util.minecraft.ItemUtils;
import gtPlusPlus.core.util.minecraft.RecipeUtils;
@@ -15,11 +16,12 @@ public class BookHandler {
public static int mBookKeeperCount = 0;
- public static Map<Integer, BookTemplate> mBookMap = new HashMap();
+ public static Map<Integer, BookTemplate> mBookMap = new HashMap<Integer, BookTemplate>();
public static BookTemplate book_ThermalBoiler;
public static BookTemplate book_TestNovel;
public static BookTemplate book_ModularBauble;
+ public static BookTemplate book_MultiMachineManual;
public static void run(){
@@ -70,6 +72,18 @@ public class BookHandler {
"There was once a sad and lonely oak tree.",
"There was once a sad and lonely oak tree.",
"There was once a sad and lonely oak tree."});
+
+ //Test Novel
+ //20/21/22
+ book_MultiMachineManual = writeBookTemplate(
+ "Manual_Multi_Machine", "Multi Machine Manual", "Alkalus",
+ new String[] {"This Multiblock, depending upon the casings used, can function as a variety of different machines. The idea behind this, was that most of these machines are rather niche compared to any others, as such, not used often.",
+ "The Mode for the controller can be set by using a Screwdriver on the controller block. Each mode allows the use of Numbered Circuits, to allow a different machine 'type' for each input bus.",
+ "[Metal Work] Mode A - Allows the multiblock to function as a Compressor, a Lathe or an Electro-Magnet. To allow a hatch to run in Compressor mode, insert a No. 20 circuit. For Lathe, use No. 21 and for Electro-Magnet use No. 22.",
+ "[Fluid Work] Mode B - Allows the multiblock to function as a Fermenter, a Distillery or an Extractor. To allow a hatch to run in Fermenter mode, insert a No. 20 circuit. For Distillery, use No. 21 and for Extractor use No. 22.",
+ "[Misc. Work] Mode C - Allows the multiblock to function as a Laser Engraver, a Replicator or an Autoclave. To allow a hatch to run in Laser Engraver mode, insert a No. 20 circuit. For Autoclave, use No. 21 and for Replicator use No. 22.",
+ "",
+ "",});
}
@@ -78,12 +92,17 @@ public class BookHandler {
public static ItemStack ItemBookWritten_ThermalBoiler;
public static ItemStack ItemBookWritten_ModularBaubles;
public static ItemStack ItemBookWritten_Test;
+ public static ItemStack ItemBookWritten_MultiMachineManual;
public static void runLater(){
ItemBookWritten_ThermalBoiler = ItemUtils.simpleMetaStack(ModItems.itemCustomBook, 0, 1);
ItemBookWritten_ModularBaubles = ItemUtils.simpleMetaStack(ModItems.itemCustomBook, 1, 1);
ItemBookWritten_Test = ItemUtils.simpleMetaStack(ModItems.itemCustomBook, 2, 1);
+ ItemBookWritten_MultiMachineManual = ItemUtils.simpleMetaStack(ModItems.itemCustomBook, 3, 1);
+
+ //Multiblock Manuals
RecipeUtils.addShapelessGregtechRecipe(new ItemStack[]{ItemUtils.getSimpleStack(Items.writable_book), ItemUtils.getSimpleStack(Items.lava_bucket)}, ItemBookWritten_ThermalBoiler);
+ RecipeUtils.addShapelessGregtechRecipe(new ItemStack[]{ItemUtils.getSimpleStack(Items.writable_book), ItemUtils.getItemStackOfAmountFromOreDict(CI.craftingToolWrench, 1)}, ItemBookWritten_MultiMachineManual);
}
private static BookTemplate writeBookTemplate(String aMapping, String aTitle, String aAuthor, String[] aPages){