From c5302f8d6bbccd776e207d1b99f622a55b1d707a Mon Sep 17 00:00:00 2001 From: TheDoctorSoda Date: Mon, 7 Mar 2016 23:15:53 -0800 Subject: [PATCH] Add description page to JEI on how to obtain sap --- src/main/java/techreborn/api/recipe/ScrapboxRecipe.java | 2 +- src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java | 4 ++++ src/main/java/techreborn/lib/Reference.java | 1 + src/main/resources/assets/techreborn/lang/en_US.lang | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/techreborn/api/recipe/ScrapboxRecipe.java b/src/main/java/techreborn/api/recipe/ScrapboxRecipe.java index d5e27eb5d..ab07b2be9 100644 --- a/src/main/java/techreborn/api/recipe/ScrapboxRecipe.java +++ b/src/main/java/techreborn/api/recipe/ScrapboxRecipe.java @@ -8,7 +8,7 @@ import techreborn.lib.Reference; public class ScrapboxRecipe extends BaseRecipe { public ScrapboxRecipe(ItemStack output) { - super(Reference.compressorRecipe, 0, 0); + super(Reference.scrapboxRecipe, 0, 0); inputs.add(new ItemStack(ModItems.scrapBox)); addOutput(output); } diff --git a/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java b/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java index 336b2d1fb..07acf51bb 100644 --- a/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java +++ b/src/main/java/techreborn/compat/jei/TechRebornJeiPlugin.java @@ -13,6 +13,7 @@ import mezz.jei.api.recipe.VanillaRecipeCategoryUid; import mezz.jei.api.recipe.transfer.IRecipeTransferRegistry; import net.minecraft.init.Blocks; import net.minecraft.item.ItemStack; +import net.minecraft.util.StatCollector; import techreborn.Core; import techreborn.api.reactor.FusionReactorRecipeHelper; import techreborn.api.recipe.RecipeHandler; @@ -55,6 +56,7 @@ import techreborn.compat.jei.scrapbox.ScrapboxRecipeCategory; import techreborn.compat.jei.scrapbox.ScrapboxRecipeHandler; import techreborn.compat.jei.vacuumFreezer.VacuumFreezerRecipeCategory; import techreborn.compat.jei.vacuumFreezer.VacuumFreezerRecipeHandler; +import techreborn.items.ItemParts; @mezz.jei.api.JEIPlugin public class TechRebornJeiPlugin extends BlankModPlugin { @@ -117,6 +119,8 @@ public class TechRebornJeiPlugin extends BlankModPlugin { addDebugRecipes(registry); } + registry.addDescription(ItemParts.getPartByName("rubberSap"), StatCollector.translateToLocal("techreborn.desc.rubberSap")); + registry.addRecipeClickArea(GuiAlloyFurnace.class, 80, 35, 26, 20, RecipeCategoryUids.ALLOY_SMELTER, VanillaRecipeCategoryUid.FUEL); registry.addRecipeClickArea(GuiAlloySmelter.class, 80, 35, 26, 20, RecipeCategoryUids.ALLOY_SMELTER); registry.addRecipeClickArea(GuiAssemblingMachine.class, 85, 34, 24, 20, RecipeCategoryUids.ASSEMBLING_MACHINE); diff --git a/src/main/java/techreborn/lib/Reference.java b/src/main/java/techreborn/lib/Reference.java index 2f59ae25c..750461141 100644 --- a/src/main/java/techreborn/lib/Reference.java +++ b/src/main/java/techreborn/lib/Reference.java @@ -19,4 +19,5 @@ public class Reference { public static String extractorRecipe = StatCollector.translateToLocal("tile.techreborn.extractor.name"); public static String compressorRecipe = StatCollector.translateToLocal("tile.techreborn.compressor.name"); public static String recyclerRecipe = StatCollector.translateToLocal("tile.techreborn.recycler.name"); + public static String scrapboxRecipe = StatCollector.translateToLocal("techreborn.recipe.scrapbox"); } diff --git a/src/main/resources/assets/techreborn/lang/en_US.lang b/src/main/resources/assets/techreborn/lang/en_US.lang index e261ccb18..2abae404f 100644 --- a/src/main/resources/assets/techreborn/lang/en_US.lang +++ b/src/main/resources/assets/techreborn/lang/en_US.lang @@ -975,6 +975,7 @@ techreborn.jei.recipe.running.cost=EU/t: %s techreborn.jei.recipe.processing.time.1=Time: %s ticks techreborn.jei.recipe.processing.time.2=(%s seconds) jei.techreborn.scrapbox.name=Opening Scrapboxes +techreborn.desc.rubberSap=In order to get sap, you need to find a rubber tree or obtain a rubber tree sapling and proceed to grow it. Once you have obtained a rubber tree, search around for little yellowish spots on the tree. If you don't see any, just wait a bit and eventually these yellow "sap" spots. To harvest the sap, use a treetap and use it on the log. techreborn.jei.category.alloy.furnace=Alloy Furnace