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 input, containing the type of and amount of infuse the operation requires, as well as the input ItemStack.
|
|
|
|
* @author AidanBrady
|
|
|
|
*
|
|
|
|
*/
|
2013-01-02 15:19:46 +01:00
|
|
|
public class InfusionInput
|
|
|
|
{
|
2013-02-25 21:02:05 +01:00
|
|
|
/** The type of this infusion */
|
2013-06-02 03:33:19 +02:00
|
|
|
public InfuseType infusionType;
|
2013-02-25 21:02:05 +01:00
|
|
|
|
|
|
|
/** How much infuse it takes to perform this operation */
|
2013-06-02 03:33:19 +02:00
|
|
|
public int infuseAmount;
|
2013-02-25 21:02:05 +01:00
|
|
|
|
|
|
|
/** The input ItemStack */
|
2013-06-02 03:33:19 +02:00
|
|
|
public ItemStack inputStack;
|
2013-01-02 15:19:46 +01:00
|
|
|
|
2013-06-02 03:33:19 +02:00
|
|
|
public InfusionInput(InfuseType infusiontype, int required, ItemStack itemstack)
|
2013-01-02 15:19:46 +01:00
|
|
|
{
|
|
|
|
infusionType = infusiontype;
|
2013-06-02 03:33:19 +02:00
|
|
|
infuseAmount = required;
|
|
|
|
inputStack = itemstack;
|
2013-01-02 15:19:46 +01:00
|
|
|
}
|
|
|
|
|
2013-06-02 03:33:19 +02:00
|
|
|
public static InfusionInput getInfusion(InfuseType type, int stored, ItemStack itemstack)
|
2013-01-02 15:19:46 +01:00
|
|
|
{
|
|
|
|
return new InfusionInput(type, stored, itemstack);
|
|
|
|
}
|
|
|
|
}
|