aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/nei
diff options
context:
space:
mode:
authorAlkalus <Draknyte1@hotmail.com>2020-05-28 02:22:23 +0100
committerAlkalus <Draknyte1@hotmail.com>2020-05-28 02:22:23 +0100
commitf2dc49bca798bfeae60a86da35ac0682357cc6d3 (patch)
tree5c7ba302b3948df268e45faac9ce13bc8254a071 /src/Java/gtPlusPlus/nei
parent59c6a1bf700132d0f5b7da49f59b05ac8b9f2894 (diff)
downloadGT5-Unofficial-f2dc49bca798bfeae60a86da35ac0682357cc6d3.tar.gz
GT5-Unofficial-f2dc49bca798bfeae60a86da35ac0682357cc6d3.tar.bz2
GT5-Unofficial-f2dc49bca798bfeae60a86da35ac0682357cc6d3.zip
+ Added ASM debugging for NEI.
- Broke NEI handling for some Multis. (To fix next commit) $ Fixed Handling of broken recipe handlers for CryoFreezer, Large Electro & Large Centrifuge. $ Fixed owner of some NEI handlers. (Was still Gregtech, oops)
Diffstat (limited to 'src/Java/gtPlusPlus/nei')
-rw-r--r--src/Java/gtPlusPlus/nei/GTPP_NEI_CustomMapHandler.java2
-rw-r--r--src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandler.java6
-rw-r--r--src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandlerEx.java2
-rw-r--r--src/Java/gtPlusPlus/nei/NEI_GT_Config.java29
4 files changed, 28 insertions, 11 deletions
diff --git a/src/Java/gtPlusPlus/nei/GTPP_NEI_CustomMapHandler.java b/src/Java/gtPlusPlus/nei/GTPP_NEI_CustomMapHandler.java
index ca6eb55b90..f22a099b98 100644
--- a/src/Java/gtPlusPlus/nei/GTPP_NEI_CustomMapHandler.java
+++ b/src/Java/gtPlusPlus/nei/GTPP_NEI_CustomMapHandler.java
@@ -44,7 +44,7 @@ public class GTPP_NEI_CustomMapHandler
this.mRecipeMap = tMap;
this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(65, 13, 36, 18), getOverlayIdentifier(), new Object[0]));
if (!NEI_GT_Config.sIsAdded) {
- FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtech@" + getRecipeName() + "@" + getOverlayIdentifier());
+ FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtechplusplus@" + getRecipeName() + "@" + getOverlayIdentifier());
GuiCraftingRecipe.craftinghandlers.add(this);
GuiUsageRecipe.usagehandlers.add(this);
}
diff --git a/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandler.java b/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandler.java
index 12c1b501bd..99a7eb5b7c 100644
--- a/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandler.java
+++ b/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandler.java
@@ -35,8 +35,8 @@ public class GTPP_NEI_DefaultHandler
public static final int sOffsetY = 11;
static {
- GuiContainerManager.addInputHandler(new GT_RectHandler());
- GuiContainerManager.addTooltipHandler(new GT_RectHandler());
+ GuiContainerManager.addInputHandler(new GT_NEI_DefaultHandler.GT_RectHandler());
+ GuiContainerManager.addTooltipHandler(new GT_NEI_DefaultHandler.GT_RectHandler());
}
protected final GTPP_Recipe_Map mRecipeMap;
@@ -45,7 +45,7 @@ public class GTPP_NEI_DefaultHandler
this.mRecipeMap = tMap;
this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(65, 13, 36, 18), getOverlayIdentifier(), new Object[0]));
if (!NEI_GT_Config.sIsAdded) {
- FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtech@" + getRecipeName() + "@" + getOverlayIdentifier());
+ FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtechplusplus@" + getRecipeName() + "@" + getOverlayIdentifier());
GuiCraftingRecipe.craftinghandlers.add(this);
GuiUsageRecipe.usagehandlers.add(this);
}
diff --git a/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandlerEx.java b/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandlerEx.java
index 0d9fc52943..47a763c293 100644
--- a/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandlerEx.java
+++ b/src/Java/gtPlusPlus/nei/GTPP_NEI_DefaultHandlerEx.java
@@ -45,7 +45,7 @@ public class GTPP_NEI_DefaultHandlerEx
this.mRecipeMap = tMap;
this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(65, 13, 36, 18), getOverlayIdentifier(), new Object[0]));
if (!NEI_GT_Config.sIsAdded) {
- FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtech@" + getRecipeName() + "@" + getOverlayIdentifier());
+ FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtechplusplus@" + getRecipeName() + "@" + getOverlayIdentifier());
GuiCraftingRecipe.craftinghandlers.add(this);
GuiUsageRecipe.usagehandlers.add(this);
}
diff --git a/src/Java/gtPlusPlus/nei/NEI_GT_Config.java b/src/Java/gtPlusPlus/nei/NEI_GT_Config.java
index e89ec9a13b..ac0e625e3f 100644
--- a/src/Java/gtPlusPlus/nei/NEI_GT_Config.java
+++ b/src/Java/gtPlusPlus/nei/NEI_GT_Config.java
@@ -24,14 +24,23 @@ implements IConfigureNEI {
mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sOreMillRecipes.mUnlocalizedName);
mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sFlotationCellRecipes.mUnlocalizedName);
mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sChemicalDehydratorRecipes.mUnlocalizedName);
- mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sVacuumFurnaceRecipes.mUnlocalizedName);
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sVacuumFurnaceRecipes.mUnlocalizedName);
+
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sAdvFreezerRecipes_GT.mUnlocalizedName);
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sMultiblockCentrifugeRecipes_GT.mUnlocalizedName);
+ mUniqueRecipeMapHandling.add(GTPP_Recipe_Map.sMultiblockElectrolyzerRecipes_GT.mUnlocalizedName);
// Custom Recipe Maps
Logger.INFO("NEI Registration: "+CustomRecipeMap.sMappings.size()+" CustomRecipeMaps");
for (final CustomRecipeMap tMap : CustomRecipeMap.sMappings) {
if (tMap.mNEIAllowed) {
- Logger.INFO("NEI Registration: Registering NEI handler for "+tMap.mNEIName);
- new GTPP_NEI_CustomMapHandler(tMap);
+ if (!mUniqueRecipeMapHandling.contains(tMap.mUnlocalizedName)) {
+ Logger.INFO("NEI Registration: Registering NEI handler for "+tMap.mNEIName);
+ new GTPP_NEI_CustomMapHandler(tMap);
+ }
+ else {
+ Logger.INFO("NEI Registration: Not allowed to register NEI handler for "+tMap.mNEIName);
+ }
}
else {
Logger.INFO("NEI Registration: Not allowed to register NEI handler for "+tMap.mNEIName);
@@ -39,12 +48,12 @@ implements IConfigureNEI {
}
// Custom Recipe maps
- Logger.INFO("NEI Registration: "+GTPP_Recipe.GTPP_Recipe_Map.sMappings.size()+" sMappings");
+ /*Logger.INFO("NEI Registration: "+GTPP_Recipe.GTPP_Recipe_Map.sMappings.size()+" sMappings");
for (final GTPP_Recipe_Map tMap : GTPP_Recipe.GTPP_Recipe_Map.sMappings) {
if (tMap.mNEIAllowed) {
if (!mUniqueRecipeMapHandling.contains(tMap.mUnlocalizedName)) {
Logger.INFO("NEI Registration: Registering NEI handler for "+tMap.mNEIName);
- new GTPP_NEI_DefaultHandler(tMap);
+ //new GTPP_NEI_DefaultHandler_Fix(tMap);
}
else {
Logger.INFO("NEI Registration: Not allowed to register NEI handler for "+tMap.mNEIName);
@@ -54,7 +63,7 @@ implements IConfigureNEI {
Logger.INFO("NEI Registration: Skipping registration of NEI handler for "+tMap.mNEIName);
}
- }
+ }*/
// Standard GT Recipe Maps
Logger.INFO("NEI Registration: "+GTPP_Recipe.GTPP_Recipe_Map_Internal.sMappingsEx.size()+" sMappingEx");
@@ -84,6 +93,14 @@ implements IConfigureNEI {
new GT_NEI_Dehydrator();
Logger.INFO("NEI Registration: Registering NEI handler for "+CustomRecipeMap.sFissionFuelProcessing.mNEIName);
new GT_NEI_RFPP();
+
+ Logger.INFO("NEI Registration: Registering NEI handler for "+GTPP_Recipe.GTPP_Recipe_Map.sAdvFreezerRecipes_GT.mNEIName);
+ new GT_NEI_DefaultHandler(GTPP_Recipe.GTPP_Recipe_Map.sAdvFreezerRecipes_GT);
+ Logger.INFO("NEI Registration: Registering NEI handler for "+GTPP_Recipe.GTPP_Recipe_Map.sMultiblockCentrifugeRecipes_GT.mNEIName);
+ new GT_NEI_DefaultHandler(GTPP_Recipe.GTPP_Recipe_Map.sMultiblockCentrifugeRecipes_GT);
+ Logger.INFO("NEI Registration: Registering NEI handler for "+GTPP_Recipe.GTPP_Recipe_Map.sMultiblockElectrolyzerRecipes_GT.mNEIName);
+ new GT_NEI_DefaultHandler(GTPP_Recipe.GTPP_Recipe_Map.sMultiblockElectrolyzerRecipes_GT);
+
Logger.INFO("NEI Registration: Registering NEI handler for "+DecayableRecipeHandler.mNEIName);
API.registerRecipeHandler(new DecayableRecipeHandler());
API.registerUsageHandler(new DecayableRecipeHandler());