diff --git a/src/main/java/gregtech/api/recipes/Recipe.java b/src/main/java/gregtech/api/recipes/Recipe.java index d2859a67f95..6daabb5c028 100644 --- a/src/main/java/gregtech/api/recipes/Recipe.java +++ b/src/main/java/gregtech/api/recipes/Recipe.java @@ -314,6 +314,10 @@ public Set getPropertyKeys() { return recipePropertyStorage.getRecipePropertyKeys(); } + public boolean hasProperty(RecipeProperty property) { + return recipePropertyStorage.hasRecipeProperty(property); + } + public int getPropertyCount() { return recipePropertyStorage.getSize(); } diff --git a/src/main/java/gregtech/api/recipes/recipeproperties/RecipePropertyStorage.java b/src/main/java/gregtech/api/recipes/recipeproperties/RecipePropertyStorage.java index 96597a7afac..b355115a5a2 100644 --- a/src/main/java/gregtech/api/recipes/recipeproperties/RecipePropertyStorage.java +++ b/src/main/java/gregtech/api/recipes/recipeproperties/RecipePropertyStorage.java @@ -94,6 +94,10 @@ public T getRecipePropertyValue(RecipeProperty recipeProperty, T defaultV return recipeProperty.castValue(value); } + public boolean hasRecipeProperty(RecipeProperty recipeProperty) { + return recipeProperties.containsKey(recipeProperty); + } + /** * Provides keys of all stored {@link RecipeProperty} * diff --git a/src/main/java/gregtech/integration/jei/recipe/GTRecipeWrapper.java b/src/main/java/gregtech/integration/jei/recipe/GTRecipeWrapper.java index 5a92426991e..a5d3708a7f6 100644 --- a/src/main/java/gregtech/integration/jei/recipe/GTRecipeWrapper.java +++ b/src/main/java/gregtech/integration/jei/recipe/GTRecipeWrapper.java @@ -126,7 +126,7 @@ public void addTooltip(int slotIndex, boolean input, Object ingredient, List= 0 ? "gregtech.recipe.eu" : "gregtech.recipe.eu_inverted", Math.abs(recipe.getEUt()), JEIHelpers.getMinTierForVoltage(recipe.getEUt())), 0, yPosition += LINE_HEIGHT, 0x111111); }