-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add redstone support, config for power usage for harvester
- Loading branch information
1 parent
4345d6b
commit f61c74b
Showing
22 changed files
with
376 additions
and
20 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
30 changes: 30 additions & 0 deletions
30
src/main/java/net/permutated/pylons/compat/jei/JEIPlugin.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,30 @@ | ||
package net.permutated.pylons.compat.jei; | ||
|
||
import mezz.jei.api.IModPlugin; | ||
import mezz.jei.api.JeiPlugin; | ||
import mezz.jei.api.constants.VanillaTypes; | ||
import mezz.jei.api.registration.IRecipeRegistration; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.ItemStack; | ||
import net.permutated.pylons.ModRegistry; | ||
import net.permutated.pylons.util.Constants; | ||
import net.permutated.pylons.util.ResourceUtil; | ||
|
||
import static net.permutated.pylons.util.TranslationKey.translateJei; | ||
|
||
@JeiPlugin | ||
public class JEIPlugin implements IModPlugin { | ||
|
||
@Override | ||
public ResourceLocation getPluginUid() { | ||
return ResourceUtil.prefix("jei_plugin"); | ||
} | ||
|
||
@Override | ||
public void registerRecipes(IRecipeRegistration registration) { | ||
registration.addIngredientInfo(new ItemStack(ModRegistry.EXPULSION_PYLON.get()), VanillaTypes.ITEM_STACK, translateJei(Constants.EXPULSION_PYLON)); | ||
registration.addIngredientInfo(new ItemStack(ModRegistry.HARVESTER_PYLON.get()), VanillaTypes.ITEM_STACK, translateJei(Constants.HARVESTER_PYLON)); | ||
registration.addIngredientInfo(new ItemStack(ModRegistry.INFUSION_PYLON.get()), VanillaTypes.ITEM_STACK, translateJei(Constants.INFUSION_PYLON)); | ||
registration.addIngredientInfo(new ItemStack(ModRegistry.INTERDICTION_PYLON.get()), VanillaTypes.ITEM_STACK, translateJei(Constants.INTERDICTION_PYLON)); | ||
} | ||
} |
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
Oops, something went wrong.