Update to REI 3.0-pre (#1793)

* Update to REI 3.0-pre

* Update fabric.mod.json
This commit is contained in:
Daniel She 2019-08-19 21:26:47 +08:00 committed by Modmuss50
parent c03d99f11f
commit f0b8d99853
7 changed files with 56 additions and 72 deletions

View file

@ -34,7 +34,7 @@ import java.util.List;
import java.util.Optional;
import java.util.stream.Collectors;
public class MachineRecipeDisplay<R extends RebornRecipe> implements RecipeDisplay<R> {
public class MachineRecipeDisplay<R extends RebornRecipe> implements RecipeDisplay {
private final R recipe;
private List<List<ItemStack>> inputs;
@ -53,8 +53,8 @@ public class MachineRecipeDisplay<R extends RebornRecipe> implements RecipeDispl
}
@Override
public Optional<R> getRecipe() {
return Optional.ofNullable(recipe);
public Optional<Identifier> getRecipeLocation() {
return Optional.ofNullable(recipe).map(RebornRecipe::getId);
}
@Override