codechicken.nei.recipe.TemplateRecipeHandler Java Examples

The following examples show how to use codechicken.nei.recipe.TemplateRecipeHandler. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BW_NEI_BioVatHandler.java    From bartworks with MIT License 5 votes vote down vote up
public BW_NEI_BioVatHandler(GT_Recipe.GT_Recipe_Map aRecipeMap) {
    super(aRecipeMap);
    this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(65, 13, 36, 18), this.getOverlayIdentifier()));
    if (!NEI_BW_Config.sIsAdded) {
        FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtech@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
        GuiCraftingRecipe.craftinghandlers.add(this);
        GuiUsageRecipe.usagehandlers.add(this);
    }
}
 
Example #2
Source File: BW_NEI_BioLabHandler.java    From bartworks with MIT License 5 votes vote down vote up
public BW_NEI_BioLabHandler(GT_Recipe.GT_Recipe_Map aRecipeMap) {
    super(aRecipeMap);
    this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(65, 13, 36, 18), this.getOverlayIdentifier()));
    if (!NEI_BW_Config.sIsAdded) {
        FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtech@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
        GuiCraftingRecipe.craftinghandlers.add(this);
        GuiUsageRecipe.usagehandlers.add(this);
    }
}
 
Example #3
Source File: BloomeryFurnaceRecipeHandler.java    From GardenCollection with MIT License 5 votes vote down vote up
@Override
public TemplateRecipeHandler newInstance () {
    if (afuels == null || afuels.isEmpty())
        findFuels();

    return super.newInstance();
}
 
Example #4
Source File: BW_NEI_BioVatHandler.java    From bartworks with MIT License 4 votes vote down vote up
public TemplateRecipeHandler newInstance() {
    return new BW_NEI_BioVatHandler(this.mRecipeMap);
}
 
Example #5
Source File: BW_NEI_BioLabHandler.java    From bartworks with MIT License 4 votes vote down vote up
public TemplateRecipeHandler newInstance() {
    return new BW_NEI_BioLabHandler(this.mRecipeMap);
}
 
Example #6
Source File: BW_NEI_OreHandler.java    From bartworks with MIT License 4 votes vote down vote up
@Override
public void loadTransferRects() {
    this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(0,40,40,120),"quickanddirtyneihandler"));
}
 
Example #7
Source File: CrusherRecipeHandler.java    From BaseMetals with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public TemplateRecipeHandler newInstance() {
	return super.newInstance();
}
 
Example #8
Source File: RecipeHandlerChisel.java    From Chisel-2 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public void loadTransferRects() {
	this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(75, 22, 15, 13), "chisel2.chisel", new Object[0]));
}
 
Example #9
Source File: NEIIntegration.java    From GardenCollection with MIT License 4 votes vote down vote up
@Override
public TemplateRecipeHandler newInstance () {
    return super.newInstance();
}
 
Example #10
Source File: NEIPluginInitConfig.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
public void registerHandler(TemplateRecipeHandler handler){
    API.registerRecipeHandler(handler);
    API.registerUsageHandler(handler);
}