Added some recipe texts to REI. Looks ugly

This commit is contained in:
drcrazy 2019-08-16 14:18:48 +03:00
parent 3e5965ad57
commit 3eec5bcb5b
3 changed files with 26 additions and 10 deletions

View file

@ -39,11 +39,17 @@ public class MachineRecipeDisplay<R extends RebornRecipe> implements RecipeDispl
private final R recipe;
private List<List<ItemStack>> inputs;
private List<ItemStack> outputs;
private int energy = 0;
public MachineRecipeDisplay(R recipe) {
this.recipe = recipe;
this.inputs = recipe.getRebornIngredients().stream().map(RebornIngredient::getPreviewStacks).collect(Collectors.toList());
this.outputs = recipe.getOutputs();
this.energy = recipe.getPower();
}
public int getEnergy() {
return energy;
}
@Override