mirror of
https://github.com/GTNewHorizons/JustEnoughCalculation.git
synced 2026-11-19 11:49:06 +00:00
feat: remove gt++
This commit is contained in:
1 parent
815af30b79
commit
8f81fa790b
4 files changed
+30
-33
No files matched your search
@@ -25,10 +25,10 @@ public class Adapter {
|
||||
JustEnoughCalculation.logger.info("gregtech installed");
|
||||
adapters.add(new GregTech());
|
||||
}
|
||||
if (Loader.isModLoaded("miscutils")) {
|
||||
JustEnoughCalculation.logger.info("gt++ not supported");
|
||||
adapters.add(new GTPP());
|
||||
}
|
||||
// if (Loader.isModLoaded("miscutils")) {
|
||||
// JustEnoughCalculation.logger.info("gt++ not supported");
|
||||
// adapters.add(new GTPP());
|
||||
// }
|
||||
if (Loader.isModLoaded("Avaritia")) {
|
||||
JustEnoughCalculation.logger.info("Avaritia installed");
|
||||
adapters.add(new Avaritia());
|
||||
|
||||
@@ -2,8 +2,6 @@ package me.towdium.jecalculation.nei.adapter;
|
||||
|
||||
import codechicken.nei.recipe.IRecipeHandler;
|
||||
import codechicken.nei.recipe.TemplateRecipeHandler;
|
||||
import gregtech.api.util.GTPP_Recipe;
|
||||
import gtPlusPlus.nei.*;
|
||||
import me.towdium.jecalculation.JustEnoughCalculation;
|
||||
|
||||
import javax.annotation.ParametersAreNonnullByDefault;
|
||||
@@ -17,30 +15,30 @@ import java.util.stream.Stream;
|
||||
* don't work, why?
|
||||
*/
|
||||
@ParametersAreNonnullByDefault
|
||||
public class GTPP extends GregTech {
|
||||
|
||||
private final static Set<Class<? extends TemplateRecipeHandler>> defaultHandlers = Stream.of(
|
||||
GTPP_NEI_DefaultHandler.class, GT_NEI_VacFurnace.class, GT_NEI_RFPP.class,
|
||||
GT_NEI_multiCentriElectroFreezer.class, GT_NEI_MillingMachine.class, GT_NEI_FluidReactor.class,
|
||||
GT_NEI_FlotationCell.class, DecayableRecipeHandler.class).collect(Collectors.toSet());
|
||||
|
||||
@Override
|
||||
public Set<String> getAllOverlayIdentifier() {
|
||||
Set<String> recipeNames = GTPP_Recipe.GT_Recipe_Map.sMappings.stream()
|
||||
.map(gt_recipe_map -> gt_recipe_map.mNEIName)
|
||||
.collect(Collectors.toSet());
|
||||
recipeNames.add("GTPP_Decayables");
|
||||
JustEnoughCalculation.logger.info("GTPP recipe handlers cecipe name");
|
||||
for (String recipeName : recipeNames) {
|
||||
JustEnoughCalculation.logger.info(" " + recipeName);
|
||||
}
|
||||
return recipeNames;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleRecipe(IRecipeHandler recipe, int index, List<Object[]> inputs, List<Object[]> outputs) {
|
||||
if (defaultHandlers.stream().anyMatch(aClass -> aClass.isInstance(recipe))) {
|
||||
handleDefault(recipe, index, inputs, outputs);
|
||||
}
|
||||
}
|
||||
public class GTPP /* extends GregTech */ {
|
||||
//
|
||||
// private final static Set<Class<? extends TemplateRecipeHandler>> defaultHandlers = Stream.of(
|
||||
// GTPP_NEI_DefaultHandler.class, GT_NEI_VacFurnace.class, GT_NEI_RFPP.class,
|
||||
// GT_NEI_multiCentriElectroFreezer.class, GT_NEI_MillingMachine.class, GT_NEI_FluidReactor.class,
|
||||
// GT_NEI_FlotationCell.class, DecayableRecipeHandler.class).collect(Collectors.toSet());
|
||||
//
|
||||
// @Override
|
||||
// public Set<String> getAllOverlayIdentifier() {
|
||||
// Set<String> recipeNames = GTPP_Recipe.GT_Recipe_Map.sMappings.stream()
|
||||
// .map(gt_recipe_map -> gt_recipe_map.mNEIName)
|
||||
// .collect(Collectors.toSet());
|
||||
// recipeNames.add("GTPP_Decayables");
|
||||
// JustEnoughCalculation.logger.info("GTPP recipe handlers cecipe name");
|
||||
// for (String recipeName : recipeNames) {
|
||||
// JustEnoughCalculation.logger.info(" " + recipeName);
|
||||
// }
|
||||
// return recipeNames;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public void handleRecipe(IRecipeHandler recipe, int index, List<Object[]> inputs, List<Object[]> outputs) {
|
||||
// if (defaultHandlers.stream().anyMatch(aClass -> aClass.isInstance(recipe))) {
|
||||
// handleDefault(recipe, index, inputs, outputs);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
Reference in new issue
Block a user