2013-08-26 18:49:32 -04:00
|
|
|
package mekanism.api.infuse;
|
2013-01-02 09:19:46 -05:00
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2013-03-31 19:12:10 -04:00
|
|
|
/**
|
|
|
|
* An infusion output, containing a reference to it's input as well as the output resource.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2013-01-02 09:19:46 -05:00
|
|
|
public class InfusionOutput
|
|
|
|
{
|
2013-02-25 15:02:05 -05:00
|
|
|
/** The input infusion */
|
2013-01-02 09:19:46 -05:00
|
|
|
public InfusionInput infusionInput;
|
2013-02-25 15:02:05 -05:00
|
|
|
|
|
|
|
/** The output resource of this infusion */
|
2013-01-02 09:19:46 -05: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-01 21:33:19 -04:00
|
|
|
return infusionInput.infuseAmount;
|
2013-01-02 09:19:46 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
public InfusionOutput copy()
|
|
|
|
{
|
|
|
|
return new InfusionOutput(infusionInput, resource);
|
|
|
|
}
|
|
|
|
}
|