diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-02-06 11:55:23 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-02-06 11:55:23 +0800 |
| commit | 3ab6f974fb63b9f9232f8507e156cfc53cdf0250 (patch) | |
| tree | f6625574308f0e5fd6e3e8f0120919ca4de4a0b1 /src/main/java/me/shedaniel/rei/plugin/crafting/DefaultCustomDisplay.java | |
| parent | 129d287ddad825878af3b447f144ab38ccd1acf6 (diff) | |
| download | RoughlyEnoughItems-3ab6f974fb63b9f9232f8507e156cfc53cdf0250.tar.gz RoughlyEnoughItems-3ab6f974fb63b9f9232f8507e156cfc53cdf0250.tar.bz2 RoughlyEnoughItems-3ab6f974fb63b9f9232f8507e156cfc53cdf0250.zip | |
4.0-unstable
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/crafting/DefaultCustomDisplay.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/crafting/DefaultCustomDisplay.java | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultCustomDisplay.java b/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultCustomDisplay.java index 92925dc85..0c55e3b57 100644 --- a/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultCustomDisplay.java +++ b/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultCustomDisplay.java @@ -11,7 +11,6 @@ import me.shedaniel.rei.utils.CollectionUtils; import net.minecraft.item.ItemStack; import net.minecraft.recipe.Recipe; import net.minecraft.util.Identifier; -import org.jetbrains.annotations.ApiStatus; import java.util.List; import java.util.Optional; @@ -49,15 +48,13 @@ public class DefaultCustomDisplay implements DefaultCraftingDisplay { this(input, output, null); } - @Deprecated - @ApiStatus.ScheduledForRemoval - public Recipe getPossibleRecipe() { - return possibleRecipe; + protected Optional<Recipe<?>> getRecipe() { + return Optional.ofNullable(possibleRecipe); } @Override public Optional<Identifier> getRecipeLocation() { - return Optional.ofNullable(possibleRecipe).map(Recipe::getId); + return getRecipe().map(Recipe::getId); } @Override |
