mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-19 20:09:43 +00:00
Fix up Integration for Forestry 4.1.0 using only the API
This commit is contained in:
1 parent
4682dba3e6
commit
28175a9e95
22 files changed
+758
-353
No files matched your search
@@ -0,0 +1,38 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user