diff --git a/src/main/java/tconstruct/client/pages/MaterialPage.java b/src/main/java/tconstruct/client/pages/MaterialPage.java index ac92ed75..9a0bd71d 100644 --- a/src/main/java/tconstruct/client/pages/MaterialPage.java +++ b/src/main/java/tconstruct/client/pages/MaterialPage.java @@ -13,7 +13,6 @@ import org.w3c.dom.NodeList; import tconstruct.client.gui.PartCrafterGui; import tconstruct.library.TConstructRegistry; -import tconstruct.library.client.TConstructClientRegistry; import tconstruct.library.crafting.PatternBuilder; import tconstruct.library.tools.TToolMaterial; diff --git a/src/main/java/tconstruct/library/crafting/Smeltery.java b/src/main/java/tconstruct/library/crafting/Smeltery.java index 5cde5ee0..e4926d16 100644 --- a/src/main/java/tconstruct/library/crafting/Smeltery.java +++ b/src/main/java/tconstruct/library/crafting/Smeltery.java @@ -42,13 +42,25 @@ public class Smeltery { addMelting(new ItemStack(item, 1, metadata), item, metadata, temperature, output); } + /** Adds mappings between a block and its liquid + * Example: Smeltery.addMelting(Block.oreIron, 0, 600, new FluidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 0)); + * + * @param blockID The ID of the block to liquify and render + * @param metadata The metadata of the block to liquify and render + * @param temperature How hot the block should be before liquifying. Max temp in the Smeltery is 800, other structures may vary + * @param output The result of the process in liquid form + */ + public static void addMelting (Block block, int metadata, int temperature, FluidStack output) + { + addMelting(new ItemStack(block, 1, metadata), new ItemStack(block).getItem(), metadata, temperature, output); + } /** Adds mappings between an input and its liquid. * Renders with the given input's block ID and metadata * Example: Smeltery.addMelting(Block.oreIron, 0, 600, new FluidStack(liquidMetalStill.blockID, TConstruct.ingotLiquidValue * 2, 0)); * * @param input The item to liquify - * @param blockID The ID of the block to render + * @param block The block to render * @param metadata The metadata of the block to render * @param temperature How hot the block should be before liquifying * @param liquid The result of the process