-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from FTBTeam/dev
Dev
- Loading branch information
Showing
10 changed files
with
77 additions
and
75 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
65 changes: 32 additions & 33 deletions
65
common/src/main/java/dev/ftb/mods/ftbfiltersystem/integration/jei/JEIIntegration.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 |
---|---|---|
@@ -1,33 +1,32 @@ | ||
//package dev.ftb.mods.ftbfiltersystem.integration.jei; | ||
// | ||
//import dev.ftb.mods.ftbfiltersystem.api.FTBFilterSystemAPI; | ||
//import dev.ftb.mods.ftbfiltersystem.client.gui.ComponentConfigScreen; | ||
//import dev.ftb.mods.ftbfiltersystem.client.gui.ItemConfigScreen; | ||
//import dev.ftb.mods.ftbfiltersystem.client.gui.ModConfigScreen; | ||
//import mezz.jei.api.IModPlugin; | ||
//import mezz.jei.api.JeiPlugin; | ||
//import mezz.jei.api.registration.IGuiHandlerRegistration; | ||
//import net.minecraft.resources.ResourceLocation; | ||
// | ||
//@JeiPlugin | ||
//public class JEIIntegration implements IModPlugin { | ||
// private final ResourceLocation ID = FTBFilterSystemAPI.rl("default"); | ||
// | ||
// @Override | ||
// public ResourceLocation getPluginUid() { | ||
// return ID; | ||
// } | ||
// | ||
// @Override | ||
// public void registerGuiHandlers(IGuiHandlerRegistration registration) { | ||
// registration.addGuiScreenHandler(ItemConfigScreen.class, new FFSScreenHandler<>()); | ||
// registration.addGhostIngredientHandler(ItemConfigScreen.class, new FFSGhostHandler<>()); | ||
// | ||
// registration.addGuiScreenHandler(ComponentConfigScreen.class, new FFSScreenHandler<>()); | ||
//// registration.addGhostIngredientHandler(NBTConfigScreen.class, new FFSGhostHandler<>(ItemStack::hasTag)); | ||
// registration.addGhostIngredientHandler(ComponentConfigScreen.class, new FFSGhostHandler<>(s -> false)); | ||
// | ||
// registration.addGuiScreenHandler(ModConfigScreen.class, new FFSScreenHandler<>()); | ||
// registration.addGhostIngredientHandler(ModConfigScreen.class, new FFSGhostHandler<>()); | ||
// } | ||
//} | ||
package dev.ftb.mods.ftbfiltersystem.integration.jei; | ||
|
||
import dev.ftb.mods.ftbfiltersystem.api.FTBFilterSystemAPI; | ||
import dev.ftb.mods.ftbfiltersystem.client.gui.ComponentConfigScreen; | ||
import dev.ftb.mods.ftbfiltersystem.client.gui.ItemConfigScreen; | ||
import dev.ftb.mods.ftbfiltersystem.client.gui.ModConfigScreen; | ||
import mezz.jei.api.IModPlugin; | ||
import mezz.jei.api.JeiPlugin; | ||
import mezz.jei.api.registration.IGuiHandlerRegistration; | ||
import net.minecraft.resources.ResourceLocation; | ||
|
||
@JeiPlugin | ||
public class JEIIntegration implements IModPlugin { | ||
private final ResourceLocation ID = FTBFilterSystemAPI.rl("default"); | ||
|
||
@Override | ||
public ResourceLocation getPluginUid() { | ||
return ID; | ||
} | ||
|
||
@Override | ||
public void registerGuiHandlers(IGuiHandlerRegistration registration) { | ||
registration.addGuiScreenHandler(ItemConfigScreen.class, new FFSScreenHandler<>()); | ||
registration.addGhostIngredientHandler(ItemConfigScreen.class, new FFSGhostHandler<>()); | ||
|
||
registration.addGuiScreenHandler(ComponentConfigScreen.class, new FFSScreenHandler<>()); | ||
registration.addGhostIngredientHandler(ComponentConfigScreen.class, new FFSGhostHandler<>(s -> false)); | ||
|
||
registration.addGuiScreenHandler(ModConfigScreen.class, new FFSScreenHandler<>()); | ||
registration.addGhostIngredientHandler(ModConfigScreen.class, new FFSGhostHandler<>()); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -25,5 +25,8 @@ | |
"fabric": "*", | ||
"minecraft": ">=1.20.1", | ||
"architectury": ">=9.1.12" | ||
}, | ||
"breaks": { | ||
"jei": "<19.5.0.40" | ||
} | ||
} |
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,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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