Partially working REI

This commit is contained in:
Frank Bauer 2021-06-29 20:23:19 +02:00
parent ea62902ee8
commit e7c85c8148
9 changed files with 85 additions and 56 deletions

View file

@ -28,27 +28,23 @@ public class REIAlloyingDisplay extends BasicDisplay implements SimpleGridMenuDi
private Recipe<?> recipe;
private float xp;
private double smeltTime;
public REIAlloyingDisplay(AlloyingRecipe recipe) {
this(recipe, recipe.getExperience(), recipe.getSmeltTime());
}
protected REIAlloyingDisplay(Recipe<?> recipe, float xp, double smeltTime) {
super(
EntryIngredients.ofIngredients(recipe.getIngredients()),
Collections.singletonList(EntryIngredients.of(recipe.getResultItem()))
);
this.recipe = recipe;
this.xp = recipe.getExperience();
this.smeltTime = recipe.getSmeltTime();
this.xp = xp;
this.smeltTime = smeltTime;
}
public REIAlloyingDisplay(BlastingRecipe recipe) {
super(
EntryIngredients.ofIngredients(recipe.getIngredients()),
Collections.singletonList(EntryIngredients.of(recipe.getResultItem()))
);
this.recipe = recipe;
this.xp = recipe.getExperience();
this.smeltTime = recipe.getCookingTime();
}
public static List<EntryStack> getFuel() {
return fuel;
}