-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
487 additions
and
631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
dependencies { | ||
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.73:dev') | ||
api('com.github.GTNewHorizons:TecTech:5.3.13:dev') | ||
api('com.github.GTNewHorizons:Galaxy-Space-GTNH:1.2.11-GTNH:dev') | ||
api('com.github.GTNewHorizons:GoodGenerator:0.7.5:dev') | ||
api('com.github.GTNewHorizons:GT5-Unofficial:5.09.44.92-pre:dev') | ||
api('com.github.GTNewHorizons:TecTech:5.3.16-pre:dev') | ||
api('com.github.GTNewHorizons:Galaxy-Space-GTNH:1.2.14-GTNH:dev') | ||
api('com.github.GTNewHorizons:GoodGenerator:0.7.7-pre:dev') | ||
compileOnly("com.github.GTNewHorizons:Hodgepodge:2.3.22:dev") {transitive = false} | ||
devOnlyNonPublishable('com.github.GTNewHorizons:GTplusplus:1.10.24:dev') | ||
devOnlyNonPublishable('com.github.GTNewHorizons:GTplusplus:1.10.35-pre:dev') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 0 additions & 85 deletions
85
src/main/java/com/gtnewhorizons/gtnhintergalactic/nei/IMCForNEI.java
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
src/main/java/com/gtnewhorizons/gtnhintergalactic/nei/NEIConfig.java
This file was deleted.
Oops, something went wrong.
65 changes: 65 additions & 0 deletions
65
src/main/java/com/gtnewhorizons/gtnhintergalactic/nei/NEI_IG_Config.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
package com.gtnewhorizons.gtnhintergalactic.nei; | ||
|
||
import java.util.Arrays; | ||
|
||
import net.minecraft.item.ItemStack; | ||
|
||
import com.gtnewhorizons.gtnhintergalactic.Tags; | ||
import com.gtnewhorizons.gtnhintergalactic.item.IGItems; | ||
|
||
import codechicken.nei.api.API; | ||
import codechicken.nei.api.IConfigureNEI; | ||
import codechicken.nei.event.NEIRegisterHandlerInfosEvent; | ||
import codechicken.nei.recipe.HandlerInfo; | ||
import cpw.mods.fml.common.eventhandler.SubscribeEvent; | ||
|
||
public class NEI_IG_Config implements IConfigureNEI { | ||
|
||
public static boolean executed = false; | ||
|
||
@Override | ||
public void loadConfig() { | ||
API.registerRecipeHandler(new SpacePumpModuleRecipeHandler()); | ||
API.registerUsageHandler(new SpacePumpModuleRecipeHandler()); | ||
API.registerRecipeHandler(new GasSiphonRecipeHandler()); | ||
API.registerUsageHandler(new GasSiphonRecipeHandler()); | ||
|
||
for (ItemStack pump : Arrays.asList( | ||
IGItems.SpaceElevatorModulePumpT1, | ||
IGItems.SpaceElevatorModulePumpT2, | ||
IGItems.SpaceElevatorModulePumpT3)) { | ||
API.addRecipeCatalyst(pump, "com.gtnewhorizons.gtnhintergalactic.nei.SpacePumpModuleRecipeHandler"); | ||
} | ||
API.addRecipeCatalyst( | ||
IGItems.PlanetaryGasSiphon, | ||
"com.gtnewhorizons.gtnhintergalactic.nei.GasSiphonRecipeHandler"); | ||
|
||
executed = true; | ||
} | ||
|
||
@SubscribeEvent | ||
public void registerHandlerInfo(NEIRegisterHandlerInfosEvent event) { | ||
event.registerHandlerInfo( | ||
new HandlerInfo.Builder( | ||
"com.gtnewhorizons.gtnhintergalactic.nei.SpacePumpModuleRecipeHandler", | ||
Tags.MODNAME, | ||
Tags.MODID).setDisplayStack(IGItems.SpaceElevatorModulePumpT1).setShiftY(6).setWidth(160) | ||
.setHeight(90).setMaxRecipesPerPage(3).build()); | ||
event.registerHandlerInfo( | ||
new HandlerInfo.Builder( | ||
"com.gtnewhorizons.gtnhintergalactic.nei.GasSiphonRecipeHandler", | ||
Tags.MODNAME, | ||
Tags.MODID).setDisplayStack(IGItems.PlanetaryGasSiphon).setShiftY(6).setWidth(160).setHeight(90) | ||
.setMaxRecipesPerPage(3).build()); | ||
} | ||
|
||
@Override | ||
public String getName() { | ||
return "GTNH-Intergalactic NEI Plugin"; | ||
} | ||
|
||
@Override | ||
public String getVersion() { | ||
return Tags.VERSION; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/com/gtnewhorizons/gtnhintergalactic/recipe/IGRecipeMaps.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.gtnewhorizons.gtnhintergalactic.recipe; | ||
|
||
import java.util.Comparator; | ||
|
||
import com.gtnewhorizons.gtnhintergalactic.gui.IG_UITextures; | ||
import com.gtnewhorizons.gtnhintergalactic.recipe.maps.SpaceAssemblerFrontend; | ||
import com.gtnewhorizons.gtnhintergalactic.recipe.maps.SpaceMiningFrontend; | ||
import com.gtnewhorizons.gtnhintergalactic.recipe.maps.SpaceResearchFrontend; | ||
|
||
import gregtech.api.recipe.RecipeMap; | ||
import gregtech.api.recipe.RecipeMapBackend; | ||
import gregtech.api.recipe.RecipeMapBuilder; | ||
import gregtech.api.util.GT_Recipe; | ||
|
||
public class IGRecipeMaps { | ||
|
||
/** Recipe map for recipes in the Space Research Module */ | ||
public static final RecipeMap<RecipeMapBackend> spaceResearchRecipes = RecipeMapBuilder | ||
.of("gt.recipe.spaceResearch").maxIO(7, 1, 3, 0).minInputs(1, 0).logo(IG_UITextures.PICTURE_ELEVATOR_LOGO) | ||
.logoSize(18, 18).neiTransferRect(110, 35, 18, 18).progressBarPos(110, 35) | ||
.frontend(SpaceResearchFrontend::new).build(); | ||
/** Recipe map for recipes in the Space Assembler Module */ | ||
public static final RecipeMap<RecipeMapBackend> spaceAssemblerRecipes = RecipeMapBuilder | ||
.of("gt.recipe.spaceAssembler").maxIO(16, 1, 4, 0).minInputs(1, 0).logo(IG_UITextures.PICTURE_ELEVATOR_LOGO) | ||
.logoSize(18, 18).neiTransferRect(124, 8, 16, 16) | ||
.neiRecipeComparator( | ||
Comparator.<GT_Recipe, Integer>comparing(recipe -> recipe.mSpecialValue) | ||
.thenComparing(GT_Recipe::compareTo)) | ||
.neiTransferRect(88, 8, 18, 72).neiTransferRect(124, 8, 18, 72).useCustomFilterForNEI() | ||
.frontend(SpaceAssemblerFrontend::new).build(); | ||
/** Recipe map for recipes in the Space Mining Module */ | ||
public static final RecipeMap<RecipeMapBackend> spaceMiningRecipes = RecipeMapBuilder.of("gt.recipe.spaceMining") | ||
.maxIO(5, 16, 2, 0).minInputs(1, 0) | ||
.neiRecipeComparator( | ||
Comparator.<GT_Recipe, Integer>comparing(recipe -> recipe.mSpecialValue) | ||
.thenComparing(GT_Recipe::compareTo)) | ||
.logo(IG_UITextures.PICTURE_ELEVATOR_LOGO).logoPos(151, 58).logoSize(18, 18) | ||
.neiRecipeBackgroundSize(170, 78).neiTransferRect(46, 6, 23, 63).dontUseProgressBar() | ||
.addSpecialTexture(46, 6, 23, 63, IG_UITextures.PROGRESSBAR_SPACE_MINING_MODULE_ARROW) | ||
.useCustomFilterForNEI().frontend(SpaceMiningFrontend::new).build(); | ||
} |
Oops, something went wrong.