Make all recipes nullable

Cookable recipes can have a nullable result too - I'm going to assume that all recipe types can too.
This commit is contained in:
DoctorMacc 2020-11-11 16:15:44 -05:00
parent 6ac79c14d6
commit 1b167e197a
No known key found for this signature in database
GPG key ID: 6D6E7E059F186DB4
3 changed files with 3 additions and 3 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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;
}