Java 类net.minecraft.client.renderer.tileentity.TileEntityRenderer 实例源码

项目:RuneCraftery    文件:ChestItemRenderHelper.java   
/**
 * 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);
    }
}
项目:BetterNutritionMod    文件:ChestItemRenderHelper.java   
/**
 * 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);
    }
}
项目:RuneCraftery    文件:ChestItemRenderHelper.java   
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);
   }

}
项目:CTMGen    文件:ClientProxy.java   
@Override
public void registerRenderers() {
    renderers.put(TileEntityControlledSpawner.class, new TileEntityMobSpawnerRenderer());

    for (TileEntitySpecialRenderer tesr : renderers.values()) {
        tesr.setTileEntityRenderer(TileEntityRenderer.instance);
    }
    TileEntityRenderer.instance.specialRendererMap.putAll(renderers);
}
项目:4-Space-Legacy    文件:SCVenusBlockRendererTreasureChest.java   
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);
    }
}
项目:Mythical-Gods-Mod    文件:ItemAltarRenderer.java   
@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();
}
项目:AestusCraft    文件:RenderEricssonEngine.java   
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;
}
项目:TravelingChest    文件:TETravelingChestRenderer.java   
@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);
}
项目:MineFantasy    文件:TileEntityLanternRenderer.java   
public TileEntityLanternRenderer(TileEntityRenderer render) {
    this.setTileEntityRenderer(render);
    model = new ModelLantern();
}
项目:MineFantasy    文件:TileEntityTailorRenderer.java   
public TileEntityTailorRenderer(TileEntityRenderer render) 
{
    this();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityTanningRackRenderer.java   
public TileEntityTanningRackRenderer(TileEntityRenderer render) {
    model = new ModelTanningRack();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityBellowsRenderer.java   
public TileEntityBellowsRenderer(TileEntityRenderer render) {
    model = new ModelBellows();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityFoodPrepRenderer.java   
public TileEntityFoodPrepRenderer(TileEntityRenderer render) {
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntitySmelterRenderer.java   
public TileEntitySmelterRenderer(TileEntityRenderer render) {
    model = new ModelBloom();
    hearth = new ModelCrucible();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityAnvilRenderer.java   
public TileEntityAnvilRenderer(int meta, TileEntityRenderer render) {
    model = new ModelAnvil();
    this.setTileEntityRenderer(render);
    metadata = meta;
}
项目:MineFantasy    文件:TileEntityFurnaceRendererMF.java   
public TileEntityFurnaceRendererMF(TileEntityRenderer render) {
model = new ModelFurnaceMF();
this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityOvenRenderer.java   
public TileEntityOvenRenderer(TileEntityRenderer render) 
{
    model = new ModelOven();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityTripHammerRenderer.java   
public TileEntityTripHammerRenderer(TileEntityRenderer render) {
    model = new ModelTripHammer();
    model2 = new ModelTripHammerBack();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityFirepitRenderer.java   
public TileEntityFirepitRenderer(TileEntityRenderer render) 
{
    this();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntitySpinningWheelRenderer.java   
public TileEntitySpinningWheelRenderer(TileEntityRenderer render) 
{
    this();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityDogbowlRenderer.java   
public TileEntityDogbowlRenderer(int meta, TileEntityRenderer render) {
    model = new ModelDogbowl();
    this.setTileEntityRenderer(render);
    metadata = meta;
}
项目:MineFantasy    文件:TileEntityRoastRenderer.java   
public TileEntityRoastRenderer(TileEntityRenderer render) {
    model = new ModelSpitRoast();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:TileEntityForgeRenderer.java   
public TileEntityForgeRenderer(TileEntityRenderer render) {
    model = new ModelForge();
    this.setTileEntityRenderer(render);
}
项目:MineFantasy    文件:BlockRendererMF.java   
@Override
public void renderInventoryBlock(Block block, int metadata, int modelID,
        RenderBlocks renderer) {
    TileEntityRenderer rend = TileEntityRenderer.instance;
    if(TileEntityRenderer.instance == null)
        return;
    if(TileEntityRenderer.instance.renderEngine == null)
        return;
    if (block == BlockListMF.lantern) {
           new TileEntityLanternRenderer(rend).renderTileEntityAt(new TileEntityLantern(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.anvil) {
           new TileEntityAnvilRenderer(metadata, rend).renderTileEntityAt(new TileEntityAnvil(metadata), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.forge) {
           new TileEntityForgeRenderer(rend).renderTileEntityAt(new TileEntityForge(metadata), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.smelter) {
           new TileEntitySmelterRenderer(rend).renderTileEntityAt(new TileEntitySmelter(metadata), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.tanner) {
           new TileEntityTanningRackRenderer(rend).renderTileEntityAt(new TileEntityTanningRack(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.weaponRack) {
           new TileEntityWeaponRackRenderer(rend).renderTileEntityAt(new TileEntityWeaponRack(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.roast) {
           new TileEntityRoastRenderer(rend).renderTileEntityAt(new TileEntityRoast(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.bellows) {
           new TileEntityBellowsRenderer(rend).renderTileEntityAt(new TileEntityBellows(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.tripHammer) {
           new TileEntityTripHammerRenderer(rend).renderTileEntityAt(new TileEntityTripHammer(metadata), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.furnace) {
           new TileEntityFurnaceRendererMF(rend).renderTileEntityAt(new TileEntityFurnaceMF(metadata), 0.0D, 0.0D, 0.0D, 0.0F);
       }

    if (block == BlockListMF.foodPrep) {
           new TileEntityFoodPrepRenderer(rend).renderTileEntityAt(new TileEntityPrepBlock(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.dogbowl) {
           new TileEntityDogbowlRenderer(metadata, rend).renderTileEntityAt(new TileEntityDogBowl(metadata), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.tailor) {
           new TileEntityTailorRenderer(rend).renderTileEntityAt(new TileEntityTailor(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.spinningWheel) {
           new TileEntitySpinningWheelRenderer(rend).renderTileEntityAt(new TileEntitySpinningWheel(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.firepit) {
           new TileEntityFirepitRenderer(rend).renderTileEntityAt(new TileEntityFirepit(), 0.0D, 0.0D, 0.0D, 0.0F);
       }
    if (block == BlockListMF.oven) {
           new TileEntityOvenRenderer(rend).renderTileEntityAt(new TileEntityOven(metadata), 0.0D, 0.0D, 0.0D, 0.0F);
       }
}
项目:MineFantasy    文件:TileEntityWeaponRackRenderer.java   
public TileEntityWeaponRackRenderer(TileEntityRenderer render)
{
    model = new ModelWeaponRack();
    this.setTileEntityRenderer(render);
}
项目:ZeroQuest    文件:ItemRendererNileTable.java   
public void renderItem(ItemRenderType type, ItemStack item, Object... data) {
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntityNileTable(), 0.0D, 0.0D, 0.0D, 0.0F);
}
项目:Rediscovered-Mod-1.6.4    文件:RenderItemRedEgg.java   
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) 
{
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntityRedEgg(), 0.0D, 0.0D, 0.0D, 0.0F);
}
项目:Rediscovered-Mod-1.6.4    文件:ChairItemRenderHelper.java   
/**
 * Renders a chest at 0,0,0 - used for item rendering
 */
public void renderChair(Block par1Block)
{
        TileEntityRenderer.instance.renderTileEntityAt(this.theChest, 0.0D, 0.0D, 0.0D, 0.0F);

}
项目:Rediscovered-Mod-1.6.4    文件:RenderItemLectern.java   
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) 
{
    //                                      (new TileEntityLectern(),  horizontal, vertical, diagonal (?),  ?) 
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntityLectern(), 0.0D, -0.3D, 0.0D, 0.0F);
}
项目:Rediscovered-Mod-1.6.4    文件:RenderItemSpikesSide.java   
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) 
{
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntitySpikesSide(), 0.0D, 0.0D, 0.0D, 0.0F);
}
项目:Rediscovered-Mod-1.6.4    文件:RenderItemTable.java   
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) 
{
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntityTable(), 0.0D, 0.0D, 0.0D, 0.0F);
}
项目:Rediscovered-Mod-1.6.4    文件:RenderItemSpikes.java   
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) 
{
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntitySpikes(), 0.0D, 0.0D, 0.0D, 0.0F);
}
项目:Rediscovered-Mod-1.6.4    文件:RenderItemLecternOpen.java   
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) 
{
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntityLecternOpen(), 0.0D, -0.3D, 0.0D, 0.0F);
}
项目:Rediscovered-Mod-1.6.4    文件:RenderItemChair.java   
@Override
public void renderItem(ItemRenderType type, ItemStack item, Object... data) 
{
    TileEntityRenderer.instance.renderTileEntityAt(new TileEntityChair(), 0.0D, 0.0D, 0.0D, 0.0F);
}
项目:RuneCraftery    文件:ClientRegistry.java   
public static void bindTileEntitySpecialRenderer(Class <? extends TileEntity> tileEntityClass, TileEntitySpecialRenderer specialRenderer)
{
    TileEntityRenderer.field_76963_a.field_76966_m.put(tileEntityClass, specialRenderer);
    specialRenderer.func_76893_a(TileEntityRenderer.field_76963_a);
}
项目:RuneCraftery    文件:RenderGlobal.java   
public void func_72713_a(Vec3 p_72713_1_, ICamera p_72713_2_, float p_72713_3_) {
   if(this.field_72740_G > 0) {
      --this.field_72740_G;
   } else {
      this.field_72769_h.field_72984_F.func_76320_a("prepare");
      TileEntityRenderer.field_76963_a.func_76953_a(this.field_72769_h, this.field_72777_q.func_110434_K(), this.field_72777_q.field_71466_p, this.field_72777_q.field_71451_h, p_72713_3_);
      RenderManager.field_78727_a.func_78718_a(this.field_72769_h, this.field_72777_q.func_110434_K(), this.field_72777_q.field_71466_p, this.field_72777_q.field_71451_h, this.field_72777_q.field_96291_i, this.field_72777_q.field_71474_y, p_72713_3_);
      this.field_72748_H = 0;
      this.field_72749_I = 0;
      this.field_72750_J = 0;
      EntityLivingBase var4 = this.field_72777_q.field_71451_h;
      RenderManager.field_78725_b = var4.field_70142_S + (var4.field_70165_t - var4.field_70142_S) * (double)p_72713_3_;
      RenderManager.field_78726_c = var4.field_70137_T + (var4.field_70163_u - var4.field_70137_T) * (double)p_72713_3_;
      RenderManager.field_78723_d = var4.field_70136_U + (var4.field_70161_v - var4.field_70136_U) * (double)p_72713_3_;
      TileEntityRenderer.field_76961_b = var4.field_70142_S + (var4.field_70165_t - var4.field_70142_S) * (double)p_72713_3_;
      TileEntityRenderer.field_76962_c = var4.field_70137_T + (var4.field_70163_u - var4.field_70137_T) * (double)p_72713_3_;
      TileEntityRenderer.field_76959_d = var4.field_70136_U + (var4.field_70161_v - var4.field_70136_U) * (double)p_72713_3_;
      this.field_72777_q.field_71460_t.func_78463_b((double)p_72713_3_);
      this.field_72769_h.field_72984_F.func_76318_c("global");
      List var5 = this.field_72769_h.func_72910_y();
      this.field_72748_H = var5.size();

      int var6;
      Entity var7;
      for(var6 = 0; var6 < this.field_72769_h.field_73007_j.size(); ++var6) {
         var7 = (Entity)this.field_72769_h.field_73007_j.get(var6);
         ++this.field_72749_I;
         if(var7.func_70102_a(p_72713_1_)) {
            RenderManager.field_78727_a.func_78720_a(var7, p_72713_3_);
         }
      }

      this.field_72769_h.field_72984_F.func_76318_c("entities");

      for(var6 = 0; var6 < var5.size(); ++var6) {
         var7 = (Entity)var5.get(var6);
         boolean var8 = var7.func_70102_a(p_72713_1_) && (var7.field_70158_ak || p_72713_2_.func_78546_a(var7.field_70121_D) || var7.field_70153_n == this.field_72777_q.field_71439_g);
         if(!var8 && var7 instanceof EntityLiving) {
            EntityLiving var9 = (EntityLiving)var7;
            if(var9.func_110167_bD() && var9.func_110166_bE() != null) {
               Entity var10 = var9.func_110166_bE();
               var8 = p_72713_2_.func_78546_a(var10.field_70121_D);
            }
         }

         if(var8 && (var7 != this.field_72777_q.field_71451_h || this.field_72777_q.field_71474_y.field_74320_O != 0 || this.field_72777_q.field_71451_h.func_70608_bn()) && this.field_72769_h.func_72899_e(MathHelper.func_76128_c(var7.field_70165_t), 0, MathHelper.func_76128_c(var7.field_70161_v))) {
            ++this.field_72749_I;
            RenderManager.field_78727_a.func_78720_a(var7, p_72713_3_);
         }
      }

      this.field_72769_h.field_72984_F.func_76318_c("tileentities");
      RenderHelper.func_74519_b();

      for(var6 = 0; var6 < this.field_72762_a.size(); ++var6) {
         TileEntityRenderer.field_76963_a.func_76950_a((TileEntity)this.field_72762_a.get(var6), p_72713_3_);
      }

      this.field_72777_q.field_71460_t.func_78483_a((double)p_72713_3_);
      this.field_72769_h.field_72984_F.func_76319_b();
   }
}
项目:RuneCraftery    文件:TileEntitySpecialRenderer.java   
public void func_76893_a(TileEntityRenderer p_76893_1_) {
   this.field_76898_b = p_76893_1_;
}
项目:RuneCraftery    文件:TileEntitySkullRenderer.java   
public void func_76893_a(TileEntityRenderer p_76893_1_) {
   super.func_76893_a(p_76893_1_);
   field_82397_a = this;
}
项目:RuneCraftery    文件:GuiEditSign.java   
public void func_73863_a(int p_73863_1_, int p_73863_2_, float p_73863_3_) {
   this.func_73873_v_();
   this.func_73732_a(this.field_73886_k, this.field_73983_a, this.field_73880_f / 2, 40, 16777215);
   GL11.glPushMatrix();
   GL11.glTranslatef((float)(this.field_73880_f / 2), 0.0F, 50.0F);
   float var4 = 93.75F;
   GL11.glScalef(-var4, -var4, -var4);
   GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);
   Block var5 = this.field_73982_c.func_70311_o();
   if(var5 == Block.field_72053_aD) {
      float var6 = (float)(this.field_73982_c.func_70322_n() * 360) / 16.0F;
      GL11.glRotatef(var6, 0.0F, 1.0F, 0.0F);
      GL11.glTranslatef(0.0F, -1.0625F, 0.0F);
   } else {
      int var8 = this.field_73982_c.func_70322_n();
      float var7 = 0.0F;
      if(var8 == 2) {
         var7 = 180.0F;
      }

      if(var8 == 4) {
         var7 = 90.0F;
      }

      if(var8 == 5) {
         var7 = -90.0F;
      }

      GL11.glRotatef(var7, 0.0F, 1.0F, 0.0F);
      GL11.glTranslatef(0.0F, -1.0625F, 0.0F);
   }

   if(this.field_73980_d / 6 % 2 == 0) {
      this.field_73982_c.field_70410_b = this.field_73984_m;
   }

   TileEntityRenderer.field_76963_a.func_76949_a(this.field_73982_c, -0.5D, -0.75D, -0.5D, 0.0F);
   this.field_73982_c.field_70410_b = -1;
   GL11.glPopMatrix();
   super.func_73863_a(p_73863_1_, p_73863_2_, p_73863_3_);
}
项目:RuneCraftery    文件:ClientRegistry.java   
public static void bindTileEntitySpecialRenderer(Class <? extends TileEntity> tileEntityClass, TileEntitySpecialRenderer specialRenderer)
{
    TileEntityRenderer.instance.specialRendererMap.put(tileEntityClass, specialRenderer);
    specialRenderer.setTileEntityRenderer(TileEntityRenderer.instance);
}