• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java Reference类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.bioxx.tfc.Reference的典型用法代码示例。如果您正苦于以下问题:Java Reference类的具体用法?Java Reference怎么用?Java Reference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



Reference类属于com.bioxx.tfc包,在下文中一共展示了Reference类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: renderMetal

import com.bioxx.tfc.Reference; //导入依赖的package包/类
private void renderMetal(TEInductionSmelter te) {
	Tessellator t = Tessellator.instance;
	if (te != null && te.currentAlloy != null && te.currentAlloy.outputAmount > 0) {
		float pos = te.currentAlloy.outputAmount / 3000F * 0.6875F + 0.125F;
		
		if (te.isMetalLiquid()) {
			RenderHelper.disableStandardItemLighting();
			OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, 240f, 240f);
			t.setBrightness(15728880);
			TFC_Core.bindTexture(MELTED_METAL);
			renderMetalAtPosition(t, pos, te.textureAnimationFrame);
			RenderHelper.enableStandardItemLighting();
		} else {
			TFC_Core.bindTexture(new ResourceLocation(Reference.MOD_ID, "textures/blocks/metal/" + te.currentAlloy.outputType.name + ".png"));
			renderMetalAtPosition(t, pos, (byte) -1);
		}
		
	}
}
 
开发者ID:Shurgent,项目名称:TFCTech,代码行数:20,代码来源:TESRInductionSmelter.java


示例2: registerBlockIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@Override
public void registerBlockIcons(IIconRegister iconRegisterer)
{
	blockIcon = iconRegisterer.registerIcon(ModInfo.ModID + ":Oven/ClayOvenIcon");
	
	ClayOven = new IIcon[5];
	ClayOvenChimney = new IIcon[5];
	
	for(int i = 0; i < 5; i++)
	{
		ClayOven[i] = iconRegisterer.registerIcon(ModInfo.ModID + ":Oven/ClayOvenWall_" + (i + 1));
		ClayOvenChimney[i] = iconRegisterer.registerIcon(ModInfo.ModID + ":Oven/ClayOven_Chimney_" + (i + 1));
	}
	
	OvenInterior = iconRegisterer.registerIcon(ModInfo.ModID + ":Oven/ClayOven_Interior");
	OvenFireOn = iconRegisterer.registerIcon(Reference.MOD_ID + ":devices/Forge On");
	OvenFireOff = iconRegisterer.registerIcon(Reference.MOD_ID + ":devices/Forge Off");
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:20,代码来源:BlockClayOven.java


示例3: addRecipe

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@ZenMethod
   public static void addRecipe(IItemStack output, IItemStack input, int overlay) 
{
	switch(overlay)
	{
		case 1: addRecipe(output, input, Reference.MOD_ID + ":" + "blocks/String"); break;
		case 2: addRecipe(output, input, Reference.MOD_ID + ":" + "blocks/Silk"); break;
		case 3: addRecipe(output, input, Reference.MOD_ID + ":" + "blocks/Rope"); break;
		default: addRecipe(output, input, Reference.MOD_ID + ":" + "blocks/String"); break;
	}
}
 
开发者ID:StrayWolfe,项目名称:TFC-Tweaker,代码行数:12,代码来源:Loom.java


示例4: registerBlockIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
public void registerBlockIcons(IIconRegister iconRegisterer)
{
    for(int i = 0; i < woodNames.length; i++)
    {
        iconsPost[i] = iconRegisterer.registerIcon(Reference.MOD_ID + ":" + "wood/" + woodNames[i] + " Plank");
        iconsPostTop[i] = iconRegisterer.registerIcon(Reference.MOD_ID + ":" + "wood/" + woodNames[i] + " Plank");
    }
}
 
开发者ID:Bunsan,项目名称:TerraFirmaStuff,代码行数:10,代码来源:BlockFence.java


示例5: registerBlockIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister registerer) {
    icons = new IIcon[6];
    icons[0] = registerer.registerIcon(ModDetails.ModID + ":" + "metal/BismuthLamp");
    icons[1] = registerer.registerIcon(ModDetails.ModID + ":" + "metal/CopperLamp");
    icons[2] = registerer.registerIcon(ModDetails.ModID + ":" + "metal/WroughtIronLamp");
    icons[3] = registerer.registerIcon(ModDetails.ModID + ":" + "metal/LeadLamp");
    icons[4] = registerer.registerIcon(ModDetails.ModID + ":" + "metal/NickelLamp");
    icons[5] = registerer.registerIcon(Reference.MOD_ID + ":" + "metal/BlueSteelLamp");

}
 
开发者ID:Bunsan,项目名称:TerraFirmaStuff,代码行数:13,代码来源:BlockOilLampMod2.java


示例6: registerIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
public void registerIcons(IIconRegister registerer)
{
	String name = getUnlocalizedName().replace(" Raw", "");

	itemIcon = registerer.registerIcon(Reference.MOD_ID + ":" + textureFolder + name.replace("item.", ""));
	
	if(hasCookedIcon)
	{			
		cookedIcon = registerer.registerIcon(Reference.MOD_ID + ":" + textureFolder + name.replace("item.", ""));
	}
	
	MinecraftForgeClient.registerItemRenderer(this, new FoodItemRenderer());
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:15,代码来源:ItemTFCMeatTransform.java


示例7: registerIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
public void registerIcons(IIconRegister registerer)
{		
	metaIcons = new IIcon[metaNames.length];
	for(int i = 0; i < metaNames.length; i++)
	{
		metaIcons[i] = registerer.registerIcon(Reference.MOD_ID + ":" + this.textureFolder + "Sandwich " + metaNames[i]);
	}
	
	this.itemIcon = metaIcons[0];
	MinecraftForgeClient.registerItemRenderer(this, new FoodItemRenderer());
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:13,代码来源:ItemTFCSandwichTransform.java


示例8: registerIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
public void registerIcons(IIconRegister registerer)
{	
	metaIcons = new IIcon[2];
	metaIcons[0] = registerer.registerIcon(Reference.MOD_ID + ":Salt");
	metaIcons[1] = registerer.registerIcon(ModInfo.ModID + ":Foods/SeaSalt");
	
	MinecraftForgeClient.registerItemRenderer(this, new FoodItemRenderer());
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:10,代码来源:ItemTFCSalt.java


示例9: registerIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
public void registerIcons(IIconRegister registerer)
{
	if(customIcon)
		itemIcon = registerer.registerIcon(ModInfo.ModID + ":Foods/" + iconFile);
	else
		itemIcon = registerer.registerIcon(Reference.MOD_ID + ":" + textureFolder + iconFile);
	
	MinecraftForgeClient.registerItemRenderer(this, new FoodItemRenderer());
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:11,代码来源:ItemTFCMealTransform.java


示例10: registerBlockIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@SideOnly(Side.CLIENT)
@Override
public void registerBlockIcons(IIconRegister registerer)
{
	blockIcon = registerer.registerIcon(Reference.MOD_ID + ":clay/Ceramic");
	
	Salad = new IIcon[3];
	
	Salad[0] = registerer.registerIcon(ModInfo.ModID + ":Meals/VeggySalad");
	Salad[1] = registerer.registerIcon(ModInfo.ModID + ":Meals/FruitSalad");
	Salad[2] = registerer.registerIcon(ModInfo.ModID + ":Meals/PotatoSalad");
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:13,代码来源:BlockBowl.java


示例11: registerBlockIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister registerer)
{
	icons[0] = registerer.registerIcon(Reference.MOD_ID + ":wood/fruit trees/Olive Wood");
	icons[1] = registerer.registerIcon(Reference.MOD_ID + ":wood/fruit trees/Banana Wood");
	
	for(int i = 0; i < saplingIcons.length; i++)
		saplingIcons[i] = registerer.registerIcon(ModInfo.ModID + ":Wood/Fruit Trees/" + Constants.NUTTREETYPES[i] + " Sapling");
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:11,代码来源:BlockNutTree.java


示例12: registerBlockIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister registerer)
{
	ceramicIcons = registerer.registerIcon(Reference.MOD_ID + ":" + "clay/Ceramic");
	clayIcons = registerer.registerIcon(Reference.MOD_ID + ":" + "clay/Clay");
	Textures.White_BG = registerer.registerIcon(ModInfo.ModID + ":" + "White_BG");
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:9,代码来源:BlockMixBowl.java


示例13: registerBlockIcons

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegisterer)
{
	blockIcon = iconRegisterer.registerIcon(Reference.MOD_ID + ":" + "clay/Ceramic");
}
 
开发者ID:StrayWolfe,项目名称:Cooking-with-TFC,代码行数:7,代码来源:BlockCookingPot.java


示例14: getGuiTexture

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
public String getGuiTexture()
{
    return Reference.MOD_ID + ":" + Reference.ASSET_PATH_GUI + "gui_knapping.png";
}
 
开发者ID:dries007,项目名称:TFCraft-NEIplugin,代码行数:6,代码来源:KnappingRecipeHandler.java


示例15: getGuiTexture

import com.bioxx.tfc.Reference; //导入依赖的package包/类
@Override
public String getGuiTexture()
{
    return Reference.MOD_ID + ":" + Reference.ASSET_PATH_GUI + "gui_quern.png";
}
 
开发者ID:dries007,项目名称:TFCraft-NEIplugin,代码行数:6,代码来源:QuernRecipeHandler.java



注:本文中的com.bioxx.tfc.Reference类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java WSEndpoint类代码示例发布时间:2022-05-23
下一篇:
Java LogicalTableScan类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap