mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-12 16:27:27 +00:00
39 lines
912 B
Java
39 lines
912 B
Java
package modtweaker2.mods.forestry.recipes;
|
|
|
|
import net.minecraftforge.fluids.FluidStack;
|
|
|
|
import forestry.api.recipes.IStillRecipe;
|
|
|
|
public class StillRecipe implements IStillRecipe {
|
|
private final int timePerUnit;
|
|
private final FluidStack input;
|
|
private final FluidStack output;
|
|
|
|
public StillRecipe(int timePerUnit, FluidStack input, FluidStack output) {
|
|
this.timePerUnit = timePerUnit;
|
|
if (input == null) {
|
|
throw new IllegalArgumentException("Still recipes need an input. Input was null.");
|
|
}
|
|
if (output == null) {
|
|
throw new IllegalArgumentException("Still recipes need an output. Output was null.");
|
|
}
|
|
this.input = input;
|
|
this.output = output;
|
|
}
|
|
|
|
@Override
|
|
public int getCyclesPerUnit() {
|
|
return timePerUnit;
|
|
}
|
|
|
|
@Override
|
|
public FluidStack getInput() {
|
|
return input;
|
|
}
|
|
|
|
@Override
|
|
public FluidStack getOutput() {
|
|
return output;
|
|
}
|
|
}
|