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