generated from GTModpackTeam/Buildscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
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
10 changed files
with
99 additions
and
8 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
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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/github/gtexpert/gtwp/integration/wizardry/WizardryConfigHolder.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,12 @@ | ||
package com.github.gtexpert.gtwp.integration.wizardry; | ||
|
||
import net.minecraftforge.common.config.Config; | ||
|
||
import com.github.gtexpert.gtwp.api.ModValues; | ||
import com.github.gtexpert.gtwp.module.Modules; | ||
|
||
@Config.LangKey(ModValues.MODID + ".config.integration.wizardry") | ||
@Config(modid = ModValues.MODID, | ||
name = ModValues.MODID + "/integration/" + Modules.MODULE_WIZARDRY, | ||
category = "Wizardry") | ||
public class WizardryConfigHolder {} |
25 changes: 25 additions & 0 deletions
25
src/main/java/com/github/gtexpert/gtwp/integration/wizardry/WizardryModule.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,25 @@ | ||
package com.github.gtexpert.gtwp.integration.wizardry; | ||
|
||
import net.minecraft.item.crafting.IRecipe; | ||
import net.minecraftforge.event.RegistryEvent; | ||
|
||
import com.github.gtexpert.gtwp.api.ModValues; | ||
import com.github.gtexpert.gtwp.api.modules.TModule; | ||
import com.github.gtexpert.gtwp.api.util.Mods; | ||
import com.github.gtexpert.gtwp.integration.GTWPIntegrationSubmodule; | ||
import com.github.gtexpert.gtwp.integration.wizardry.recipes.WizardryWoodRecipe; | ||
import com.github.gtexpert.gtwp.module.Modules; | ||
|
||
@TModule( | ||
moduleID = Modules.MODULE_WIZARDRY, | ||
containerID = ModValues.MODID, | ||
modDependencies = Mods.Names.WIZARDRY, | ||
name = "GTWoodProcessing Wizardry Integration", | ||
description = "Wizardry Integration Module") | ||
public class WizardryModule extends GTWPIntegrationSubmodule { | ||
|
||
@Override | ||
public void registerRecipesLowest(RegistryEvent.Register<IRecipe> event) { | ||
WizardryWoodRecipe.init(); | ||
} | ||
} |
42 changes: 42 additions & 0 deletions
42
src/main/java/com/github/gtexpert/gtwp/integration/wizardry/recipes/WizardryWoodRecipe.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,42 @@ | ||
package com.github.gtexpert.gtwp.integration.wizardry.recipes; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import gregtech.loaders.WoodTypeEntry; | ||
|
||
import com.github.gtexpert.gtwp.api.util.Mods; | ||
import com.github.gtexpert.gtwp.loaders.GTWPWoodRecipeLoader; | ||
|
||
public class WizardryWoodRecipe { | ||
|
||
private static List<WoodTypeEntry> DEFAULT_ENTRIES; | ||
|
||
private static List<WoodTypeEntry> getDefaultEntries() { | ||
if (DEFAULT_ENTRIES == null) { | ||
final String mcModId = Mods.Names.WIZARDRY; | ||
return DEFAULT_ENTRIES = Arrays.asList( | ||
new WoodTypeEntry.Builder(mcModId, "wisdom") | ||
.log(Mods.Wizardry.getItem("wisdom_wood_log", 1)).removeCharcoalRecipe() | ||
.planks(Mods.Wizardry.getItem("wisdom_wood_planks", 1), "wisdom_wood/planks") | ||
.slab(Mods.Wizardry.getItem("wisdom_wood_slab", 1), "wisdom_wood/slab") | ||
.fence(Mods.Wizardry.getItem("wisdom_wood_fence", 1), "wisdom_wood/fence") | ||
.fenceGate(Mods.Wizardry.getItem("wisdom_wood_fence_gate", 1), "wisdom_wood/fence_gate") | ||
.stairs(Mods.Wizardry.getItem("wisdom_wood_stairs", 1), "wisdom_wood/stairs") | ||
.door(Mods.Wizardry.getItem("wisdom_wood_door", 1), "wisdom_wood/door") | ||
.registerAllUnificationInfo() | ||
.build()); | ||
} | ||
return DEFAULT_ENTRIES; | ||
} | ||
|
||
public static void init() { | ||
for (WoodTypeEntry entry : getDefaultEntries()) { | ||
GTWPWoodRecipeLoader.removePlankRecipe(false, entry); | ||
|
||
GTWPWoodRecipeLoader.registerWoodTypeRecipe(false, entry); | ||
GTWPWoodRecipeLoader.addCuttingRecipe(entry); | ||
GTWPWoodRecipeLoader.addSawmillRecipe(entry); | ||
} | ||
} | ||
} |
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