/** * 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); } }
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); } }
@Override public void registerRenderers() { renderers.put(TileEntityControlledSpawner.class, new TileEntityMobSpawnerRenderer()); for (TileEntitySpecialRenderer tesr : renderers.values()) { tesr.setTileEntityRenderer(TileEntityRenderer.instance); } TileEntityRenderer.instance.specialRendererMap.putAll(renderers); }
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); } }
@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(); }
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; }
@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); }
public TileEntityLanternRenderer(TileEntityRenderer render) { this.setTileEntityRenderer(render); model = new ModelLantern(); }
public TileEntityTailorRenderer(TileEntityRenderer render) { this(); this.setTileEntityRenderer(render); }
public TileEntityTanningRackRenderer(TileEntityRenderer render) { model = new ModelTanningRack(); this.setTileEntityRenderer(render); }
public TileEntityBellowsRenderer(TileEntityRenderer render) { model = new ModelBellows(); this.setTileEntityRenderer(render); }
public TileEntityFoodPrepRenderer(TileEntityRenderer render) { this.setTileEntityRenderer(render); }
public TileEntitySmelterRenderer(TileEntityRenderer render) { model = new ModelBloom(); hearth = new ModelCrucible(); this.setTileEntityRenderer(render); }
public TileEntityAnvilRenderer(int meta, TileEntityRenderer render) { model = new ModelAnvil(); this.setTileEntityRenderer(render); metadata = meta; }
public TileEntityFurnaceRendererMF(TileEntityRenderer render) { model = new ModelFurnaceMF(); this.setTileEntityRenderer(render); }
public TileEntityOvenRenderer(TileEntityRenderer render) { model = new ModelOven(); this.setTileEntityRenderer(render); }
public TileEntityTripHammerRenderer(TileEntityRenderer render) { model = new ModelTripHammer(); model2 = new ModelTripHammerBack(); this.setTileEntityRenderer(render); }
public TileEntityFirepitRenderer(TileEntityRenderer render) { this(); this.setTileEntityRenderer(render); }
public TileEntitySpinningWheelRenderer(TileEntityRenderer render) { this(); this.setTileEntityRenderer(render); }
public TileEntityDogbowlRenderer(int meta, TileEntityRenderer render) { model = new ModelDogbowl(); this.setTileEntityRenderer(render); metadata = meta; }
public TileEntityRoastRenderer(TileEntityRenderer render) { model = new ModelSpitRoast(); this.setTileEntityRenderer(render); }
public TileEntityForgeRenderer(TileEntityRenderer render) { model = new ModelForge(); this.setTileEntityRenderer(render); }
@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); } }
public TileEntityWeaponRackRenderer(TileEntityRenderer render) { model = new ModelWeaponRack(); this.setTileEntityRenderer(render); }
public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntityNileTable(), 0.0D, 0.0D, 0.0D, 0.0F); }
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntityRedEgg(), 0.0D, 0.0D, 0.0D, 0.0F); }
/** * 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); }
@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); }
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntitySpikesSide(), 0.0D, 0.0D, 0.0D, 0.0F); }
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntityTable(), 0.0D, 0.0D, 0.0D, 0.0F); }
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntitySpikes(), 0.0D, 0.0D, 0.0D, 0.0F); }
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntityLecternOpen(), 0.0D, -0.3D, 0.0D, 0.0F); }
@Override public void renderItem(ItemRenderType type, ItemStack item, Object... data) { TileEntityRenderer.instance.renderTileEntityAt(new TileEntityChair(), 0.0D, 0.0D, 0.0D, 0.0F); }
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); }
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(); } }
public void func_76893_a(TileEntityRenderer p_76893_1_) { this.field_76898_b = p_76893_1_; }
public void func_76893_a(TileEntityRenderer p_76893_1_) { super.func_76893_a(p_76893_1_); field_82397_a = this; }
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_); }
public static void bindTileEntitySpecialRenderer(Class <? extends TileEntity> tileEntityClass, TileEntitySpecialRenderer specialRenderer) { TileEntityRenderer.instance.specialRendererMap.put(tileEntityClass, specialRenderer); specialRenderer.setTileEntityRenderer(TileEntityRenderer.instance); }