2014-09-19 13:58:12 +02:00
|
|
|
package tconstruct.plugins.nei;
|
|
|
|
|
|
|
|
|
|
import codechicken.nei.api.API;
|
|
|
|
|
import codechicken.nei.api.IConfigureNEI;
|
2023-05-15 15:07:18 +09:00
|
|
|
import tconstruct.tools.gui.CraftingStationGui;
|
2014-09-19 13:58:12 +02:00
|
|
|
|
2022-09-22 19:51:23 +01:00
|
|
|
public class NEITConstructConfig implements IConfigureNEI {
|
2014-09-19 13:58:12 +02:00
|
|
|
|
|
|
|
|
@Override
|
2022-09-22 19:51:23 +01:00
|
|
|
public void loadConfig() {
|
2014-10-05 22:05:48 +02:00
|
|
|
API.registerGuiOverlay(CraftingStationGui.class, "crafting", new CraftingStationStackPositioner());
|
|
|
|
|
API.registerGuiOverlayHandler(CraftingStationGui.class, new CraftingStationOverlayHandler(), "crafting");
|
2014-09-19 13:58:12 +02:00
|
|
|
|
2014-09-24 17:05:33 +02:00
|
|
|
registerHandler(new RecipeHandlerDryingRack());
|
|
|
|
|
registerHandler(new RecipeHandlerToolMaterials());
|
|
|
|
|
registerHandler(new RecipeHandlerMelting());
|
|
|
|
|
registerHandler(new RecipeHandlerAlloying());
|
|
|
|
|
registerHandler(new RecipeHandlerCastingTable());
|
|
|
|
|
registerHandler(new RecipeHandlerCastingBasin());
|
2020-09-04 00:53:40 +02:00
|
|
|
|
|
|
|
|
BeltToggleFromGuiInputHandler.init();
|
2014-09-19 13:58:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2022-09-22 19:51:23 +01:00
|
|
|
public String getName() {
|
2014-09-19 13:58:12 +02:00
|
|
|
return "TConstruct";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2022-09-22 19:51:23 +01:00
|
|
|
public String getVersion() {
|
2014-09-19 13:58:12 +02:00
|
|
|
return "${version}";
|
|
|
|
|
}
|
|
|
|
|
|
2022-09-22 19:51:23 +01:00
|
|
|
private static void registerHandler(RecipeHandlerBase handler) {
|
2014-09-24 17:05:33 +02:00
|
|
|
API.registerRecipeHandler(handler);
|
|
|
|
|
API.registerUsageHandler(handler);
|
|
|
|
|
}
|
2014-09-19 13:58:12 +02:00
|
|
|
}
|