From 342d1822f78f52daec4995d97f65486244534076 Mon Sep 17 00:00:00 2001 From: NotAPenguin Date: Tue, 3 Sep 2024 11:37:18 +0200 Subject: [PATCH] the great renaming. again (#41) --- dependencies.gradle | 2 +- .../com/github/vfyjxf/nee/processor/GTPPRecipeProcessor.java | 4 ++-- .../github/vfyjxf/nee/processor/GregTech5RecipeProcessor.java | 4 ++-- src/main/java/com/github/vfyjxf/nee/utils/ItemUtils.java | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dependencies.gradle b/dependencies.gradle index f139848..8c056ee 100644 --- a/dependencies.gradle +++ b/dependencies.gradle @@ -11,7 +11,7 @@ dependencies { compileOnly("com.github.GTNewHorizons:BuildCraftCompat:7.1.17:dev") { transitive = false } compileOnly('com.github.GTNewHorizons:EnderIO:2.8.17:dev') { transitive=false } compileOnly("com.github.GTNewHorizons:ForestryMC:4.9.7:dev") { transitive = false } - compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.49.22:dev") { transitive = false } + compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.49.55:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:ThaumicEnergistics:1.6.22-GTNH:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:AE2FluidCraft-Rework:1.3.26-gtnh:dev") { transitive = false } compileOnly("com.github.GTNewHorizons:Avaritiaddons:1.7.1-GTNH:dev") { transitive = false } diff --git a/src/main/java/com/github/vfyjxf/nee/processor/GTPPRecipeProcessor.java b/src/main/java/com/github/vfyjxf/nee/processor/GTPPRecipeProcessor.java index 89c44db..cfcdeaf 100644 --- a/src/main/java/com/github/vfyjxf/nee/processor/GTPPRecipeProcessor.java +++ b/src/main/java/com/github/vfyjxf/nee/processor/GTPPRecipeProcessor.java @@ -32,8 +32,8 @@ public Set getAllOverlayIdentifier() { } try { - Class gtRecipeMapClazz = Class.forName("gregtech.api.util.GT_Recipe$GT_Recipe_Map"); - Class gtppRecipeMapClazz = Class.forName("gregtech.api.util.GTPP_Recipe$GTPP_Recipe_Map_Internal"); + Class gtRecipeMapClazz = Class.forName("gregtech.api.util.GTRecipe$GT_Recipe_Map"); + Class gtppRecipeMapClazz = Class.forName("gregtech.api.util.GTPPRecipe$GTPP_Recipe_Map_Internal"); Collection sMappingsEx = (Collection) gtppRecipeMapClazz.getDeclaredField("sMappingsEx").get(null); for (Object gtppMap : sMappingsEx) { boolean mNEIAllowed = gtRecipeMapClazz.getDeclaredField("mNEIAllowed").getBoolean(gtppMap); diff --git a/src/main/java/com/github/vfyjxf/nee/processor/GregTech5RecipeProcessor.java b/src/main/java/com/github/vfyjxf/nee/processor/GregTech5RecipeProcessor.java index ed2201f..45c5a34 100644 --- a/src/main/java/com/github/vfyjxf/nee/processor/GregTech5RecipeProcessor.java +++ b/src/main/java/com/github/vfyjxf/nee/processor/GregTech5RecipeProcessor.java @@ -22,7 +22,7 @@ import codechicken.nei.recipe.IRecipeHandler; import gregtech.api.enums.ItemList; import gregtech.api.recipe.RecipeCategory; -import gregtech.nei.GT_NEI_DefaultHandler.FixedPositionedStack; +import gregtech.nei.GTNEIDefaultHandler.FixedPositionedStack; /** * @author vfyjxf @@ -37,7 +37,7 @@ public class GregTech5RecipeProcessor implements IRecipeProcessor { Class gtDH = null; Class gtAL = null; try { - gtDH = Class.forName("gregtech.nei.GT_NEI_DefaultHandler"); + gtDH = Class.forName("gregtech.nei.GTNEIDefaultHandler"); gtAL = Class.forName("gregtech.nei.GT_NEI_AssLineHandler"); } catch (ClassNotFoundException ignored) {} gtDefaultClz = gtDH; diff --git a/src/main/java/com/github/vfyjxf/nee/utils/ItemUtils.java b/src/main/java/com/github/vfyjxf/nee/utils/ItemUtils.java index 6ef3a98..7aad6c3 100644 --- a/src/main/java/com/github/vfyjxf/nee/utils/ItemUtils.java +++ b/src/main/java/com/github/vfyjxf/nee/utils/ItemUtils.java @@ -33,7 +33,7 @@ public final class ItemUtils { static { try { - GT_MetaGenerated_ToolClass = Class.forName("gregtech.api.items.GT_MetaGenerated_Tool"); + GT_MetaGenerated_ToolClass = Class.forName("gregtech.api.items.MetaGeneratedTool"); } catch (ClassNotFoundException ignored) {} }