mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
*Refactored API, removing core interfaces and adding more descriptive javadocs. MDK users, be prepared to update. *Fixed differing progress not being recognized. *Fixed Theoretical Elementizer displaying incorrect progress. *Made IGasStorage work in both items and blocks -- IStorageTank extends this now. *Better storage tank code. *Loads of reformatting and added missing javadocs.
39 lines
788 B
Java
39 lines
788 B
Java
package mekanism.api;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
/**
|
|
* An infusion output, containing a reference to it's input as well as the output resource.
|
|
* @author AidanBrady
|
|
*
|
|
*/
|
|
public class InfusionOutput
|
|
{
|
|
/** The input infusion */
|
|
public InfusionInput infusionInput;
|
|
|
|
/** The output resource of this infusion */
|
|
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()
|
|
{
|
|
return infusionInput.infuseStored;
|
|
}
|
|
|
|
public InfusionOutput copy()
|
|
{
|
|
return new InfusionOutput(infusionInput, resource);
|
|
}
|
|
}
|