-
Notifications
You must be signed in to change notification settings - Fork 12
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
9 changed files
with
452 additions
and
315 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
35 changes: 35 additions & 0 deletions
35
src/main/java/com/zuxelus/energycontrol/crossmod/CraftTweakerIntegration.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,35 @@ | ||
package com.zuxelus.energycontrol.crossmod; | ||
|
||
import com.zuxelus.energycontrol.recipes.KitAssemblerRecipe; | ||
|
||
import minetweaker.MineTweakerAPI; | ||
import minetweaker.api.item.IItemStack; | ||
import minetweaker.api.minecraft.MineTweakerMC; | ||
import net.minecraft.item.ItemStack; | ||
import stanhebben.zenscript.annotations.ZenClass; | ||
import stanhebben.zenscript.annotations.ZenMethod; | ||
|
||
public class CraftTweakerIntegration { | ||
|
||
public static void init() { | ||
MineTweakerAPI.registerClass(KitAssemblerHandler.class); | ||
} | ||
|
||
@ZenClass("mods.energycontrol.KitAssembler") | ||
public static class KitAssemblerHandler { | ||
|
||
@ZenMethod | ||
public static void addRecipe(IItemStack input1, IItemStack input2, IItemStack input3, IItemStack output, int time) { | ||
KitAssemblerRecipe.addRecipe(new KitAssemblerRecipe(getStack(input1), getStack(input2), getStack(input3), getStack(output), time)); | ||
} | ||
|
||
@ZenMethod | ||
public static void removeRecipe(IItemStack input1, IItemStack input2, IItemStack input3) { | ||
KitAssemblerRecipe.removeRecipe(getStack(input1), getStack(input2), getStack(input3), null); | ||
} | ||
|
||
private static ItemStack getStack(IItemStack stack) { | ||
return MineTweakerMC.getItemStack(stack); | ||
} | ||
} | ||
} |
668 changes: 368 additions & 300 deletions
668
src/main/java/com/zuxelus/energycontrol/crossmod/CrossHBM.java
Large diffs are not rendered by default.
Oops, something went wrong.
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