Skip to content

Commit 806c408

Browse files
authored
Merge pull request #14 from GTModpackTeam/add-integrations
2 parents 8017aa6 + cd85823 commit 806c408

16 files changed

Lines changed: 346 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ jobs:
103103
biomes-o-plenty(recommended)
104104
ice-and-fire-dragons(recommended)
105105
wizardry-mod(recommended)
106+
traverse-reforged(recommended)
107+
nether-update-backport(recommended)
108+
the-twilight-forest(recommended)
106109
files: |
107110
build/libs/!(*-@(dev|sources|javadoc)).jar
108111
build/libs/*-@(sources).jar

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
1-
# v1.1.1
1+
# v1.2.0
22
## New Integration
33
- Ice and Fire: Dragons
4+
- Wizardry
5+
- Traverse Reforged
6+
- Nether Update Backport
7+
- The Twilight Forest
48

59
* * *
610

dependencies.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,4 +132,19 @@ dependencies {
132132
runtimeOnlyNonPublishable rfg.deobf("curse.maven:shadowfacts-forgelin-248453:2785465") // Forgelin 1.8.4
133133
runtimeOnlyNonPublishable rfg.deobf("curse.maven:wizardry-mod-278155:5160012") // Wizardry 0.11.3
134134
}
135+
136+
// Debug Traverse Reforged
137+
if (project.debug_all.toBoolean() || project.debug_traverse.toBoolean()) {
138+
runtimeOnlyNonPublishable rfg.deobf("curse.maven:traverse-reforged-267769:2613657") // Traverse Reforged 1.6.0
139+
}
140+
141+
// Debug Nether Update Backport
142+
if (project.debug_all.toBoolean() || project.debug_nub.toBoolean()) {
143+
runtimeOnlyNonPublishable rfg.deobf("curse.maven:nether-update-backport-384529:3140835") // Nether Update Backport 1.0.1
144+
}
145+
146+
// Debug The Twilight Forest
147+
if (project.debug_all.toBoolean() || project.debug_twilight.toBoolean()) {
148+
runtimeOnlyNonPublishable rfg.deobf("curse.maven:the-twilight-forest-227639:3051450") // The Twilight Forest 3.11.1021
149+
}
135150
}

gradle.properties

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ debug_mworld = false
3737
debug_roots = false
3838
debug_bop = false
3939
debug_wizardry = false
40+
debug_traverse = false
41+
debug_nub = false
42+
debug_twilight = false
4043

4144
# Select a username for testing your mod with breakpoints. You may leave this empty for a random username each time you
4245
# restart Minecraft in development. Choose this dependent on your mod:

src/main/java/com/github/gtexpert/gtwp/GTWPMod.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
"after:" + Mods.Names.RANDOM_THINGS + ";" + "after:" + Mods.Names.RUSTIC + ";" +
4141
"after:" + Mods.Names.MYSTICAL_WORLD + ";" + "after:" + Mods.Names.ROOTS + ";" +
4242
"after:" + Mods.Names.BIOMES_O_PLENTY + ";" + "after:" + Mods.Names.ICE_AND_FIRE + ";" +
43-
"after:" + Mods.Names.WIZARDRY + ";")
43+
"after:" + Mods.Names.WIZARDRY + ";" + "after:" + Mods.Names.TRAVERES + ";" +
44+
"after:" + Mods.Names.TWILIGHT_FOREST)
4445
@Mod.EventBusSubscriber(modid = ModValues.MODID)
4546
public class GTWPMod {
4647

src/main/java/com/github/gtexpert/gtwp/api/util/Mods.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public enum Mods {
9292
Nothirium(Names.NOTHIRIUM),
9393
NuclearCraft(Names.NUCLEAR_CRAFT, versionExcludes("2o")),
9494
NuclearCraftOverhauled(Names.NUCLEAR_CRAFT, versionContains("2o")),
95+
NetherUpdateBackport(Names.NETHER_UPDATE_BACKPORT),
9596
OpenComputers(Names.OPEN_COMPUTERS),
9697
ProjectRedCore(Names.PROJECT_RED_CORE),
9798
ProjectRedIllumination(Names.PROJECT_RED_ILLUMINATION),
@@ -103,6 +104,8 @@ public enum Mods {
103104
ProjectVibrantJourneys(Names.PROJECT_VIBRANT_JOURNEYS),
104105
Rustic(Names.RUSTIC),
105106
Thaumcraft(Names.THAUMCRAFT),
107+
Traverse(Names.TRAVERES),
108+
TwilightForest(Names.TWILIGHT_FOREST),
106109
ThaumicEnergistics(Names.THAUMIC_ENERGISTICS),
107110
Wizardry(Names.WIZARDRY),
108111
TheOneProbe(Names.THE_ONE_PROBE),
@@ -199,6 +202,7 @@ public static class Names {
199202
public static final String NEEVES_AE2 = "nae2";
200203
public static final String NOTHIRIUM = "nothirium";
201204
public static final String NUCLEAR_CRAFT = "nuclearcraft";
205+
public static final String NETHER_UPDATE_BACKPORT = "netherbackport";
202206
public static final String OPEN_COMPUTERS = "opencomputers";
203207
public static final String PROJECT_RED_CORE = "projred-core";
204208
public static final String PROJECT_RED_ILLUMINATION = "projectred-illumination";
@@ -210,6 +214,8 @@ public static class Names {
210214
public static final String PROJECT_VIBRANT_JOURNEYS = "pvj";
211215
public static final String RUSTIC = "rustic";
212216
public static final String THAUMCRAFT = "thaumcraft";
217+
public static final String TRAVERES = "traverse";
218+
public static final String TWILIGHT_FOREST = "twilightforest";
213219
public static final String THAUMIC_ENERGISTICS = "haumicenergistics";
214220
public static final String WIZARDRY = "wizardry";
215221
public static final String THE_ONE_PROBE = "theoneprobe";
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.github.gtexpert.gtwp.integration.nub;
2+
3+
import net.minecraftforge.common.config.Config;
4+
5+
import com.github.gtexpert.gtwp.api.ModValues;
6+
import com.github.gtexpert.gtwp.module.Modules;
7+
8+
@Config.LangKey(ModValues.MODID + ".config.integration.nub")
9+
@Config(modid = ModValues.MODID,
10+
name = ModValues.MODID + "/integration/" + Modules.MODULE_NUB,
11+
category = "NetherUpdateBackport")
12+
public class NUBConfigHolder {}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package com.github.gtexpert.gtwp.integration.nub;
2+
3+
import net.minecraft.item.crafting.IRecipe;
4+
import net.minecraftforge.event.RegistryEvent;
5+
6+
import com.github.gtexpert.gtwp.api.ModValues;
7+
import com.github.gtexpert.gtwp.api.modules.TModule;
8+
import com.github.gtexpert.gtwp.api.util.Mods;
9+
import com.github.gtexpert.gtwp.integration.GTWPIntegrationSubmodule;
10+
import com.github.gtexpert.gtwp.integration.nub.recipes.NUBWoodRecipe;
11+
import com.github.gtexpert.gtwp.module.Modules;
12+
13+
@TModule(
14+
moduleID = Modules.MODULE_NUB,
15+
containerID = ModValues.MODID,
16+
modDependencies = Mods.Names.NETHER_UPDATE_BACKPORT,
17+
name = "GTWoodProcessing Nether Update Backport Integration",
18+
description = "Nether Update Backport Integration Module")
19+
public class NUBModule extends GTWPIntegrationSubmodule {
20+
21+
@Override
22+
public void registerRecipesLowest(RegistryEvent.Register<IRecipe> event) {
23+
NUBWoodRecipe.init();
24+
}
25+
}
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
package com.github.gtexpert.gtwp.integration.nub.recipes;
2+
3+
import java.util.Arrays;
4+
import java.util.List;
5+
6+
import gregtech.loaders.WoodTypeEntry;
7+
8+
import com.github.gtexpert.gtwp.api.util.Mods;
9+
import com.github.gtexpert.gtwp.loaders.GTWPWoodRecipeLoader;
10+
11+
public class NUBWoodRecipe {
12+
13+
private static List<WoodTypeEntry> DEFAULT_ENTRIES;
14+
15+
private static List<WoodTypeEntry> getDefaultEntries() {
16+
if (DEFAULT_ENTRIES == null) {
17+
final String mcModId = Mods.Names.NETHER_UPDATE_BACKPORT;
18+
return DEFAULT_ENTRIES = Arrays.asList(
19+
new WoodTypeEntry.Builder(mcModId, "crimson")
20+
.log(Mods.NetherUpdateBackport.getItem("crimsonstem", 1)).removeCharcoalRecipe()
21+
.planks(Mods.NetherUpdateBackport.getItem("crimsonplanks", 1), "crimsonplanksrecipe")
22+
.build(),
23+
new WoodTypeEntry.Builder(mcModId, "warped")
24+
.log(Mods.NetherUpdateBackport.getItem("warpedstem", 1)).removeCharcoalRecipe()
25+
.planks(Mods.NetherUpdateBackport.getItem("warpedplanks", 1), "warpedplanksrecipe")
26+
.build());
27+
}
28+
return DEFAULT_ENTRIES;
29+
}
30+
31+
public static void init() {
32+
for (WoodTypeEntry entry : getDefaultEntries()) {
33+
GTWPWoodRecipeLoader.removePlankRecipe(false, entry);
34+
35+
GTWPWoodRecipeLoader.registerWoodTypeRecipe(false, entry);
36+
GTWPWoodRecipeLoader.addCuttingRecipe(entry);
37+
GTWPWoodRecipeLoader.addSawmillRecipe(entry);
38+
}
39+
}
40+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.github.gtexpert.gtwp.integration.traverse;
2+
3+
import net.minecraftforge.common.config.Config;
4+
5+
import com.github.gtexpert.gtwp.api.ModValues;
6+
import com.github.gtexpert.gtwp.module.Modules;
7+
8+
@Config.LangKey(ModValues.MODID + ".config.integration.traverse")
9+
@Config(modid = ModValues.MODID,
10+
name = ModValues.MODID + "/integration/" + Modules.MODULE_TRAVERES,
11+
category = "Traverse")
12+
public class TraverseConfigHolder {}

0 commit comments

Comments
 (0)