Smithing recipe builder + REI tool damage diplay

This commit is contained in:
Aleksey 2020-10-07 10:59:48 +03:00
parent 2f6014d441
commit c1b7c83569
8 changed files with 116 additions and 20 deletions

View file

@ -26,6 +26,10 @@ public class REIAnvilDisplay implements TransferRecipeDisplay {
this.output = Collections.singletonList(EntryStack.create(recipe.getOutput()));
}
public int getDamage() {
return this.recipe.getDamage();
}
@Override
public @NotNull Optional<Identifier> getRecipeLocation() {
return Optional.ofNullable(recipe).map(Recipe::getId);