aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api
diff options
context:
space:
mode:
authormiozune <miozune@gmail.com>2024-02-26 19:51:42 +0900
committerGitHub <noreply@github.com>2024-02-26 19:51:42 +0900
commit59f446b394b29fbb9d6307418a6b9f8e4a78e1ea (patch)
treef58aa4ae5714b8297b80b02007aebb6e24a97b1d /src/main/java/gregtech/api
parentc0b794462f6548fc35069d8d326e88d7e8524750 (diff)
downloadGT5-Unofficial-59f446b394b29fbb9d6307418a6b9f8e4a78e1ea.tar.gz
GT5-Unofficial-59f446b394b29fbb9d6307418a6b9f8e4a78e1ea.tar.bz2
GT5-Unofficial-59f446b394b29fbb9d6307418a6b9f8e4a78e1ea.zip
Add recipe categories for TiC integration (#2510)
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r--src/main/java/gregtech/api/recipe/RecipeCategories.java15
-rw-r--r--src/main/java/gregtech/api/recipe/RecipeCategory.java4
2 files changed, 17 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/recipe/RecipeCategories.java b/src/main/java/gregtech/api/recipe/RecipeCategories.java
index c2de890793..61eed8a8d7 100644
--- a/src/main/java/gregtech/api/recipe/RecipeCategories.java
+++ b/src/main/java/gregtech/api/recipe/RecipeCategories.java
@@ -3,6 +3,7 @@ package gregtech.api.recipe;
import static gregtech.api.enums.Mods.GregTech;
import static gregtech.api.recipe.RecipeCategory.createIcon;
+@SuppressWarnings("unused")
public final class RecipeCategories {
@RecipeCategoryHolder
@@ -53,4 +54,18 @@ public final class RecipeCategories {
RecipeMaps.hammerRecipes,
builder -> builder.setDisplayImage(
createIcon(GregTech.getResourcePath("textures", "gui", "picture", "forge_hammer_recycling.png"))));
+
+ @RecipeCategoryHolder
+ public static final RecipeCategory ticPartExtruding = new RecipeCategory(
+ "gt.recipe.category.tic_part_extruding",
+ RecipeMaps.extruderRecipes,
+ builder -> builder.setDisplayImage(
+ createIcon(GregTech.getResourcePath("textures", "gui", "picture", "tic_part_extruding.png"))));
+
+ @RecipeCategoryHolder
+ public static final RecipeCategory ticBoltMolding = new RecipeCategory(
+ "gt.recipe.category.tic_bolt_molding",
+ RecipeMaps.fluidSolidifierRecipes,
+ builder -> builder.setDisplayImage(
+ createIcon(GregTech.getResourcePath("textures", "gui", "picture", "tic_bolt_molding.png"))));
}
diff --git a/src/main/java/gregtech/api/recipe/RecipeCategory.java b/src/main/java/gregtech/api/recipe/RecipeCategory.java
index d7729ac493..9f8674e939 100644
--- a/src/main/java/gregtech/api/recipe/RecipeCategory.java
+++ b/src/main/java/gregtech/api/recipe/RecipeCategory.java
@@ -16,7 +16,7 @@ import gregtech.api.util.FieldsAreNonnullByDefault;
import gregtech.api.util.MethodsReturnNonnullByDefault;
/**
- * Used to display recipes on NEI on different tabs.
+ * Allows certain recipes to be displayed on different tabs on NEI.
* <p>
* Also apply {@link RecipeCategoryHolder} annotation to each instance to be picked up by GT config.
*/
@@ -69,7 +69,7 @@ public final class RecipeCategory {
}
/**
- * Creates icon for recipe category. Size is 16px.
+ * Util method for creating icon for recipe category. Size is 16px.
*/
public static DrawableResource createIcon(String resourceLocation) {
return new DrawableBuilder(resourceLocation, 0, 0, 16, 16)