2013-01-02 15:19:46 +01:00
|
|
|
package mekanism.api;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2013-04-01 01:12:10 +02:00
|
|
|
/**
|
|
|
|
* An infusion output, containing a reference to it's input as well as the output resource.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2013-01-02 15:19:46 +01:00
|
|
|
public class InfusionOutput
|
|
|
|
{
|
2013-02-25 21:02:05 +01:00
|
|
|
/** The input infusion */
|
2013-01-02 15:19:46 +01:00
|
|
|
public InfusionInput infusionInput;
|
2013-02-25 21:02:05 +01:00
|
|
|
|
|
|
|
/** The output resource of this infusion */
|
2013-01-02 15:19:46 +01:00
|
|
|
public ItemStack resource;
|
|
|
|
|
|
|
|
public InfusionOutput(InfusionInput input, ItemStack itemstack)
|
|
|
|
{
|
|
|
|
infusionInput = input;
|
|
|
|
resource = itemstack;
|
|
|
|
}
|
|
|
|
|
|
|
|
public static InfusionOutput getInfusion(InfusionInput input, ItemStack itemstack)
|
|
|
|
{
|
|
|
|
return new InfusionOutput(input, itemstack);
|
|
|
|
}
|
|
|
|
|
|
|
|
public int getInfuseRequired()
|
|
|
|
{
|
2013-06-02 03:33:19 +02:00
|
|
|
return infusionInput.infuseAmount;
|
2013-01-02 15:19:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public InfusionOutput copy()
|
|
|
|
{
|
|
|
|
return new InfusionOutput(infusionInput, resource);
|
|
|
|
}
|
|
|
|
}
|