本文整理汇总了Java中codechicken.nei.api.API.setGuiOffset方法的典型用法代码示例。如果您正苦于以下问题:Java API.setGuiOffset方法的具体用法?Java API.setGuiOffset怎么用?Java API.setGuiOffset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类codechicken.nei.api.API
的用法示例。
在下文中一共展示了API.setGuiOffset方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@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) {
}
}
示例2: loadConfig
import codechicken.nei.api.API; //导入方法依赖的package包/类
@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);
}
示例3: loadConfig
import codechicken.nei.api.API; //导入方法依赖的package包/类
public void loadConfig() {
API.registerRecipeHandler(new InfusionAltarHandler());
API.registerUsageHandler(new InfusionAltarHandler());
API.setGuiOffset(GuiInfusionAltar.class, 0, 0);
}
示例4: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
API.setGuiOffset(GuiOven.class, 11, 13);
}
示例5: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
API.setGuiOffset(GuiChurn.class, 11, 13);
}
示例6: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
API.setGuiOffset(GuiPamPresser.class, 7, -18);
}
示例7: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
API.setGuiOffset(GuiQuern.class, 11, 13);
}
示例8: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
solidToReactant = ReflectionHelper.getPrivateValue(Reactants.class, null, "_solidToReactant");
API.setGuiOffset(GuiCyaniteReprocessor.class, 8, 17);
}
示例9: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
guiClass = Utils.getClass("mods.railcraft.client.gui.GuiCokeOven");
API.setGuiOffset(guiClass, -6, 11);
}
示例10: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
guiClass = Utils.getClass("mods.railcraft.client.gui.GuiRockCrusher");
API.setGuiOffset(guiClass, -3, 11);
}
示例11: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
guiClass = Utils.getClass("forestry.factory.gui.GuiFermenter");
API.setGuiOffset(guiClass, 5, 15);
}
示例12: prepare
import codechicken.nei.api.API; //导入方法依赖的package包/类
@Override
public void prepare() {
guiClass = Utils.getClass("forestry.factory.gui.GuiCarpenter");
API.setGuiOffset(guiClass, 5, 14);
}
示例13: registerApiRecipes
import codechicken.nei.api.API; //导入方法依赖的package包/类
private void registerApiRecipes(TemplateRecipeHandler recipeHandler, Class<? extends GuiContainer> gui){
API.registerRecipeHandler(recipeHandler);
API.registerUsageHandler(recipeHandler);
API.setGuiOffset(gui, 0, 0);
}