Java Code Examples for codechicken.nei.api.API#setGuiOffset()

The following examples show how to use codechicken.nei.api.API#setGuiOffset() . 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: RecipeHandlerPresserOld.java    From NEI-Integration with MIT License 5 votes vote down vote up
@Override
public void prepare() {
    API.setGuiOffset(GuiPamPresser.class, 7, -18);
    
    try {
        Method smelting = PresserRecipes.class.getMethod("smelting");
        getSmeltingList = PresserRecipes.class.getMethod("getSmeltingList");
        presserRecipesInstance = (PresserRecipes) smelting.invoke(null);
    } catch (Exception e) {
    }
}
 
Example 2
Source File: NEIChiselConfig.java    From Chisel-2 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public void loadConfig() {
	API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "limestone_slab_top")));
	API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_slab_top")));
	API.hideItem(new ItemStack(GameRegistry.findBlock("chisel", "marble_pillar_slab_top")));

	RecipeHandlerChisel handler = new RecipeHandlerChisel();
	API.registerRecipeHandler(handler);
	API.registerUsageHandler(handler);
	API.setGuiOffset(GuiChisel.class, -50, 40);
}
 
Example 3
Source File: RecipeHandlerOven.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    API.setGuiOffset(GuiOven.class, 11, 13);
}
 
Example 4
Source File: RecipeHandlerChurn.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    API.setGuiOffset(GuiChurn.class, 11, 13);
}
 
Example 5
Source File: RecipeHandlerPresser.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    API.setGuiOffset(GuiPamPresser.class, 7, -18);
}
 
Example 6
Source File: RecipeHandlerQuern.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    API.setGuiOffset(GuiQuern.class, 11, 13);
}
 
Example 7
Source File: RecipeHandlerCyaniteReprocessor.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    solidToReactant = ReflectionHelper.getPrivateValue(Reactants.class, null, "_solidToReactant");
    API.setGuiOffset(GuiCyaniteReprocessor.class, 8, 17);
}
 
Example 8
Source File: RecipeHandlerCokeOven.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    guiClass = Utils.getClass("mods.railcraft.client.gui.GuiCokeOven");
    API.setGuiOffset(guiClass, -6, 11);
}
 
Example 9
Source File: RecipeHandlerRockCrusher.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    guiClass = Utils.getClass("mods.railcraft.client.gui.GuiRockCrusher");
    API.setGuiOffset(guiClass, -3, 11);
}
 
Example 10
Source File: RecipeHandlerFermenter.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    guiClass = Utils.getClass("forestry.factory.gui.GuiFermenter");
    API.setGuiOffset(guiClass, 5, 15);
}
 
Example 11
Source File: RecipeHandlerCarpenter.java    From NEI-Integration with MIT License 4 votes vote down vote up
@Override
public void prepare() {
    guiClass = Utils.getClass("forestry.factory.gui.GuiCarpenter");
    API.setGuiOffset(guiClass, 5, 14);
}