From 1b167e197af2846908828649a51ec52c0058d5a3 Mon Sep 17 00:00:00 2001 From: DoctorMacc Date: Wed, 11 Nov 2020 16:15:44 -0500 Subject: [PATCH] Make all recipes nullable Cookable recipes can have a nullable result too - I'm going to assume that all recipe types can too. --- .../mc/protocol/data/game/recipe/data/CookedRecipeData.java | 2 +- .../mc/protocol/data/game/recipe/data/SmithingRecipeData.java | 2 +- .../protocol/data/game/recipe/data/StoneCuttingRecipeData.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/CookedRecipeData.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/CookedRecipeData.java index 77716f3a..633c73ce 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/CookedRecipeData.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/CookedRecipeData.java @@ -11,7 +11,7 @@ import lombok.NonNull; public class CookedRecipeData implements RecipeData { private final @NonNull String group; private final @NonNull Ingredient ingredient; - private final @NonNull ItemStack result; + private final ItemStack result; private final float experience; private final int cookingTime; } diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/SmithingRecipeData.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/SmithingRecipeData.java index 56ddcff5..c536d6ef 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/SmithingRecipeData.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/SmithingRecipeData.java @@ -11,5 +11,5 @@ import lombok.NonNull; public class SmithingRecipeData implements RecipeData { private final @NonNull Ingredient base; private final @NonNull Ingredient addition; - private final @NonNull ItemStack result; + private final ItemStack result; } diff --git a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/StoneCuttingRecipeData.java b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/StoneCuttingRecipeData.java index 7ede1c28..417af6cb 100644 --- a/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/StoneCuttingRecipeData.java +++ b/src/main/java/com/github/steveice10/mc/protocol/data/game/recipe/data/StoneCuttingRecipeData.java @@ -11,5 +11,5 @@ import lombok.NonNull; public class StoneCuttingRecipeData implements RecipeData { private final @NonNull String group; private final @NonNull Ingredient ingredient; - private final @NonNull ItemStack result; + private final ItemStack result; }