Skip to content

Commit

Permalink
add in extra method to smelting interface in library
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Jan 28, 2014
1 parent c029bd8 commit 692460d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/tconstruct/client/pages/MaterialPage.java
Expand Up @@ -13,7 +13,6 @@

import tconstruct.client.gui.PartCrafterGui;
import tconstruct.library.TConstructRegistry;
import tconstruct.library.client.TConstructClientRegistry;
import tconstruct.library.crafting.PatternBuilder;
import tconstruct.library.tools.TToolMaterial;

Expand Down
14 changes: 13 additions & 1 deletion src/main/java/tconstruct/library/crafting/Smeltery.java
Expand Up @@ -42,13 +42,25 @@ public static void addMelting (Item item, int metadata, int temperature, FluidSt
{
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
Expand Down

0 comments on commit 692460d

Please sign in to comment.