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

Java TileEntityRenderer类代码示例

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

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



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

示例1: renderChest

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
/**
 * Renders a chest at 0,0,0 - used for item rendering
 */
public void renderChest(Block par1Block, int par2, float par3)
{
    if (par1Block.blockID == Block.enderChest.blockID)
    {
        TileEntityRenderer.instance.renderTileEntityAt(this.theEnderChest, 0.0D, 0.0D, 0.0D, 0.0F);
    }
    else if (par1Block.blockID == Block.chestTrapped.blockID)
    {
        TileEntityRenderer.instance.renderTileEntityAt(this.field_142033_c, 0.0D, 0.0D, 0.0D, 0.0F);
    }
    else
    {
        TileEntityRenderer.instance.renderTileEntityAt(this.theChest, 0.0D, 0.0D, 0.0D, 0.0F);
    }
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:19,代码来源:ChestItemRenderHelper.java


示例2: func_78542_a

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public void func_78542_a(Block p_78542_1_, int p_78542_2_, float p_78542_3_) {
   if(p_78542_1_.field_71990_ca == Block.field_72066_bS.field_71990_ca) {
      TileEntityRenderer.field_76963_a.func_76949_a(this.field_78544_c, 0.0D, 0.0D, 0.0D, 0.0F);
   } else if(p_78542_1_.field_71990_ca == Block.field_94347_ck.field_71990_ca) {
      TileEntityRenderer.field_76963_a.func_76949_a(this.field_142033_c, 0.0D, 0.0D, 0.0D, 0.0F);
   } else {
      TileEntityRenderer.field_76963_a.func_76949_a(this.field_78543_b, 0.0D, 0.0D, 0.0D, 0.0F);
   }

}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:11,代码来源:ChestItemRenderHelper.java


示例3: registerRenderers

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
@Override
public void registerRenderers() {
    renderers.put(TileEntityControlledSpawner.class, new TileEntityMobSpawnerRenderer());
    
    for (TileEntitySpecialRenderer tesr : renderers.values()) {
        tesr.setTileEntityRenderer(TileEntityRenderer.instance);
    }
    TileEntityRenderer.instance.specialRendererMap.putAll(renderers);
}
 
开发者ID:Solonarv,项目名称:CTMGen,代码行数:10,代码来源:ClientProxy.java


示例4: renderChest

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public void renderChest(Block par1Block, int par2, float par3)
{
	if (par1Block.blockID == VenusBlocks.T3Chest.blockID)
	{
		TileEntityRenderer.instance.renderTileEntityAt(this.chest, 0.0D, 0.0D, 0.0D, 0.0F);
	}
}
 
开发者ID:4Space,项目名称:4-Space-Legacy,代码行数:8,代码来源:SCVenusBlockRendererTreasureChest.java


示例5: renderItem

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
    GL11.glPushMatrix();
    GL11.glScalef(1.0F, 1.0F, 1.0F);        
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntityAltar(), 0.0D, 0.0D, 0.0D, 0.0F);
    GL11.glPopMatrix();
}
 
开发者ID:TAMmodding,项目名称:Mythical-Gods-Mod,代码行数:8,代码来源:ItemAltarRenderer.java


示例6: RenderEricssonEngine

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public RenderEricssonEngine()
{
    setTileEntityRenderer(TileEntityRenderer.instance);

    box = new ModelRenderer(model, 0, 1);
    box.addBox(-8.0f, -8.0f, -8.0f, 16, 4, 16);
    box.rotationPointX = 8.0f;
    box.rotationPointY = 8.0f;
    box.rotationPointZ = 8.0f;

    trunk = new ModelRenderer(model, 1, 1);
    trunk.addBox(-4.0f, -4.0f, -4.0f, 8, 12, 8);
    trunk.rotationPointX = 8.0f;
    trunk.rotationPointY = 8.0f;
    trunk.rotationPointZ = 8.0f;

    movingBox = new ModelRenderer(model, 0, 1);
    movingBox.addBox(-8.0f, -4.0f, -8.0f, 16, 4, 16);
    movingBox.rotationPointX = 8.0f;
    movingBox.rotationPointY = 8.0f;
    movingBox.rotationPointZ = 8.0f;

    chamber = new ModelRenderer(model, 1, 1);
    chamber.addBox(-5.0f, -4.0f, -5.0f, 10, 2, 10);
    chamber.rotationPointX = 8.0f;
    chamber.rotationPointY = 8.0f;
    chamber.rotationPointZ = 8.0f;
}
 
开发者ID:kiljacken,项目名称:AestusCraft,代码行数:29,代码来源:RenderEricssonEngine.java


示例7: renderInventoryBlock

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
@Override
public void renderInventoryBlock(Block block, int metadata, int modelID,
		RenderBlocks renderer) {
	TETravelingChest te = new TETravelingChest();
	GL11.glRotatef(90.0f, 0.0F, 1.0F, 0.0F);
	GL11.glTranslatef(-0.5F, -0.5F, -0.5F);
	TileEntityRenderer.instance.renderTileEntityAt(te, 0.0D, 0.0D, 0.0D,
			0.0F);
	GL11.glTranslatef(0.5F, 0.5F, 0.5F);
}
 
开发者ID:jheard,项目名称:TravelingChest,代码行数:11,代码来源:TETravelingChestRenderer.java


示例8: TileEntityLanternRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityLanternRenderer(TileEntityRenderer render) {
	this.setTileEntityRenderer(render);
	model = new ModelLantern();
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:5,代码来源:TileEntityLanternRenderer.java


示例9: TileEntityTailorRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityTailorRenderer(TileEntityRenderer render) 
{
	this();
	this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntityTailorRenderer.java


示例10: TileEntityTanningRackRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityTanningRackRenderer(TileEntityRenderer render) {
    model = new ModelTanningRack();
    this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:5,代码来源:TileEntityTanningRackRenderer.java


示例11: TileEntityBellowsRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityBellowsRenderer(TileEntityRenderer render) {
    model = new ModelBellows();
    this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:5,代码来源:TileEntityBellowsRenderer.java


示例12: TileEntityFoodPrepRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityFoodPrepRenderer(TileEntityRenderer render) {
    this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:4,代码来源:TileEntityFoodPrepRenderer.java


示例13: TileEntitySmelterRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntitySmelterRenderer(TileEntityRenderer render) {
	model = new ModelBloom();
	hearth = new ModelCrucible();
	this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntitySmelterRenderer.java


示例14: TileEntityAnvilRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityAnvilRenderer(int meta, TileEntityRenderer render) {
    model = new ModelAnvil();
    this.setTileEntityRenderer(render);
    metadata = meta;
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntityAnvilRenderer.java


示例15: TileEntityFurnaceRendererMF

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityFurnaceRendererMF(TileEntityRenderer render) {
model = new ModelFurnaceMF();
this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:5,代码来源:TileEntityFurnaceRendererMF.java


示例16: TileEntityOvenRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityOvenRenderer(TileEntityRenderer render) 
{
	model = new ModelOven();
	this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntityOvenRenderer.java


示例17: TileEntityTripHammerRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityTripHammerRenderer(TileEntityRenderer render) {
    model = new ModelTripHammer();
    model2 = new ModelTripHammerBack();
    this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntityTripHammerRenderer.java


示例18: TileEntityFirepitRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityFirepitRenderer(TileEntityRenderer render) 
{
	this();
	this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntityFirepitRenderer.java


示例19: TileEntitySpinningWheelRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntitySpinningWheelRenderer(TileEntityRenderer render) 
{
	this();
	this.setTileEntityRenderer(render);
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntitySpinningWheelRenderer.java


示例20: TileEntityDogbowlRenderer

import net.minecraft.client.renderer.tileentity.TileEntityRenderer; //导入依赖的package包/类
public TileEntityDogbowlRenderer(int meta, TileEntityRenderer render) {
    model = new ModelDogbowl();
    this.setTileEntityRenderer(render);
    metadata = meta;
}
 
开发者ID:TheAwesomeGem,项目名称:MineFantasy,代码行数:6,代码来源:TileEntityDogbowlRenderer.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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