diff options
| author | Daniel She <shekwancheung0528@gmail.com> | 2019-02-25 21:18:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-25 21:18:26 +0800 |
| commit | 9e55b44b710f38c63a4bfd17d0b07318d5c68535 (patch) | |
| tree | a2cc0c519b4327028d7b8f544ba5171fff2d8dc1 /src/main/java/me/shedaniel/rei/plugin/DefaultStoneCuttingDisplay.java | |
| parent | b7e018527db2e9cae2db4226f6af9fc34054c964 (diff) | |
| download | RoughlyEnoughItems-9e55b44b710f38c63a4bfd17d0b07318d5c68535.tar.gz RoughlyEnoughItems-9e55b44b710f38c63a4bfd17d0b07318d5c68535.tar.bz2 RoughlyEnoughItems-9e55b44b710f38c63a4bfd17d0b07318d5c68535.zip | |
REI v2.3.1 (#40)
- API Changes
- Updated Config Screen
- Added Tipped Arrows Recipes
- Updated Mappings
- Added IRecipeHelper
- Turning things to Optional
- Removed Cheats button, now included with the new config button
- Buttons for switching gamemodes / time / weather (default: off) [Maybe not in this update]
- Clickable Labels
- 3+ recipes at the same time
- Fixed RecipeBaseWidget bad rendering when too big
- Fixed #42 Patched up item deleting & cheating
- Choose Page Dialog
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/DefaultStoneCuttingDisplay.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/DefaultStoneCuttingDisplay.java | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultStoneCuttingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/DefaultStoneCuttingDisplay.java index ad68fd901..31938753a 100644 --- a/src/main/java/me/shedaniel/rei/plugin/DefaultStoneCuttingDisplay.java +++ b/src/main/java/me/shedaniel/rei/plugin/DefaultStoneCuttingDisplay.java @@ -4,7 +4,6 @@ import com.google.common.collect.Lists; import me.shedaniel.rei.api.IRecipeDisplay; import net.minecraft.item.ItemStack; import net.minecraft.recipe.Ingredient; -import net.minecraft.recipe.Recipe; import net.minecraft.recipe.StonecuttingRecipe; import net.minecraft.util.DefaultedList; import net.minecraft.util.Identifier; @@ -12,13 +11,16 @@ import net.minecraft.util.Identifier; import java.util.Arrays; import java.util.Collections; import java.util.List; +import java.util.Optional; -public class DefaultStoneCuttingDisplay implements IRecipeDisplay { +public class DefaultStoneCuttingDisplay implements IRecipeDisplay<StonecuttingRecipe> { private List<ItemStack> inputs, output; + private StonecuttingRecipe display; public DefaultStoneCuttingDisplay(StonecuttingRecipe recipe) { this(recipe.getPreviewInputs(), recipe.getOutput()); + this.display = recipe; } public DefaultStoneCuttingDisplay(DefaultedList<Ingredient> ingredients, ItemStack output) { @@ -28,8 +30,8 @@ public class DefaultStoneCuttingDisplay implements IRecipeDisplay { } @Override - public Recipe getRecipe() { - return null; + public Optional<StonecuttingRecipe> getRecipe() { + return Optional.ofNullable(display); } @Override |
