Java 类net.minecraft.client.renderer.entity.RenderSkeleton 实例源码

项目:RidiculousWorld    文件:ClientProxy.java   
public void doTheRenderThing(){
    RenderingRegistry.registerEntityRenderingHandler(EntityFrankenstein.class, new RenderFrankenstein());
    RenderingRegistry.registerEntityRenderingHandler(EntityWarhorse.class, new RenderWarhorse());
    RenderingRegistry.registerEntityRenderingHandler(EntityPeep.class, new RenderPeep());
    RenderingRegistry.registerEntityRenderingHandler(EntityUnicorn.class, new RenderUnicorn());
    RenderingRegistry.registerEntityRenderingHandler(EntityCalavera.class, new RenderCalavera());
    RenderingRegistry.registerEntityRenderingHandler(EntityGingerbread.class, new RenderGingerbread());
    RenderingRegistry.registerEntityRenderingHandler(EntityShoggoth.class, new RenderShoggoth());
    RenderingRegistry.registerEntityRenderingHandler(EntityDaySkeleton.class, new RenderSkeleton());
    RenderingRegistry.registerEntityRenderingHandler(EntityDayZombie.class, new RenderZombie());
    RenderingRegistry.registerEntityRenderingHandler(EntityShadowSlime.class, new RenderShadowSlime());
    RenderingRegistry.registerEntityRenderingHandler(EntityCandySheep.class, new RenderCandySheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
    RenderingRegistry.registerEntityRenderingHandler(EntityOldEnderman.class, new RenderOldEnderman());

    if(Config.heads && !Loader.isModLoaded("foxlib")){
        TileEntityRendererDispatcher.instance.mapSpecialRenderers.remove(TileEntitySkull.class);
        BlockSkullRenderer blockSkullRenderer = new BlockSkullRenderer();
        ClientRegistry.bindTileEntitySpecialRenderer(TileEntitySkull.class, blockSkullRenderer);
    }

    ClientRegistry.bindTileEntitySpecialRenderer(TileEntityChestRidiculous.class, new RenderTileEntityChest());
    BlockChestRidiculous.render = RenderingRegistry.getNextAvailableRenderId();
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(RidiculousBlocks.chest), new RenderItemChest());

    ShaderHelper.initShaders();
}
项目:Backmemed    文件:ModelAdapterSkeleton.java   
public IEntityRenderer makeEntityRender(ModelBase modelBase, float shadowSize)
{
    RenderManager rendermanager = Minecraft.getMinecraft().getRenderManager();
    RenderSkeleton renderskeleton = new RenderSkeleton(rendermanager);
    renderskeleton.mainModel = modelBase;
    renderskeleton.shadowSize = shadowSize;
    return renderskeleton;
}
项目:WuppyMods    文件:ClientProxyIMP.java   
@Override
  public void registerRenderThings()
  {
RenderingRegistry.registerEntityRenderingHandler(EntityCaveSpiderCustom.class, new RenderSpider());
RenderingRegistry.registerEntityRenderingHandler(EntitySpiderCustom.class, new RenderSpider());
RenderingRegistry.registerEntityRenderingHandler(EntityWitherSkeleton.class, new RenderSkeleton());
  }
项目:Overlord    文件:CuringSkeletonRenderFactory.java   
@SuppressWarnings("unchecked")
@Override
public Render createRenderFor(RenderManager manager) {
    return new RenderSkeleton(manager);
}
项目:vsminecraft    文件:ClientProxy.java   
@Override
public void registerRenderInformation()
{
    RenderPartTransmitter.init();
    RenderGlowPanel.init();

    //Register entity rendering handlers
    RenderingRegistry.registerEntityRenderingHandler(EntityObsidianTNT.class, new RenderObsidianTNTPrimed());
    RenderingRegistry.registerEntityRenderingHandler(EntityRobit.class, new RenderRobit());
    RenderingRegistry.registerEntityRenderingHandler(EntityBalloon.class, new RenderBalloon());
    RenderingRegistry.registerEntityRenderingHandler(EntityBabySkeleton.class, new RenderSkeleton());
    RenderingRegistry.registerEntityRenderingHandler(EntityFlame.class, new RenderFlame());

    //Register item handler
    ItemRenderingHandler handler = new ItemRenderingHandler();

    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.EnergyCube), handler);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.MachineBlock), handler);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.MachineBlock2), handler);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.MachineBlock3), handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.Robit, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.WalkieTalkie, handler);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.GasTank), handler);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.ObsidianTNT), handler);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.BasicBlock), handler);
    MinecraftForgeClient.registerItemRenderer(Item.getItemFromBlock(MekanismBlocks.BasicBlock2), handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.Jetpack, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.ArmoredJetpack, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.PartTransmitter, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.GasMask, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.ScubaTank, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.Balloon, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.FreeRunners, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.AtomicDisassembler, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.GlowPanel, handler);
    MinecraftForgeClient.registerItemRenderer(MekanismItems.Flamethrower, handler);

    //Register block handlers
    RenderingRegistry.registerBlockHandler(new MachineRenderingHandler());
    RenderingRegistry.registerBlockHandler(new BasicRenderingHandler());
    RenderingRegistry.registerBlockHandler(new PlasticRenderingHandler());
    RenderingRegistry.registerBlockHandler(new CTMRenderingHandler());

    Mekanism.logger.info("Render registrations complete.");
}
项目:RuneCraftery    文件:RenderManager.java   
private RenderManager() {
   this.field_78729_o.put(EntityCaveSpider.class, new RenderCaveSpider());
   this.field_78729_o.put(EntitySpider.class, new RenderSpider());
   this.field_78729_o.put(EntityPig.class, new RenderPig(new ModelPig(), new ModelPig(0.5F), 0.7F));
   this.field_78729_o.put(EntitySheep.class, new RenderSheep(new ModelSheep2(), new ModelSheep1(), 0.7F));
   this.field_78729_o.put(EntityCow.class, new RenderCow(new ModelCow(), 0.7F));
   this.field_78729_o.put(EntityMooshroom.class, new RenderMooshroom(new ModelCow(), 0.7F));
   this.field_78729_o.put(EntityWolf.class, new RenderWolf(new ModelWolf(), new ModelWolf(), 0.5F));
   this.field_78729_o.put(EntityChicken.class, new RenderChicken(new ModelChicken(), 0.3F));
   this.field_78729_o.put(EntityOcelot.class, new RenderOcelot(new ModelOcelot(), 0.4F));
   this.field_78729_o.put(EntitySilverfish.class, new RenderSilverfish());
   this.field_78729_o.put(EntityCreeper.class, new RenderCreeper());
   this.field_78729_o.put(EntityEnderman.class, new RenderEnderman());
   this.field_78729_o.put(EntitySnowman.class, new RenderSnowMan());
   this.field_78729_o.put(EntitySkeleton.class, new RenderSkeleton());
   this.field_78729_o.put(EntityWitch.class, new RenderWitch());
   this.field_78729_o.put(EntityBlaze.class, new RenderBlaze());
   this.field_78729_o.put(EntityZombie.class, new RenderZombie());
   this.field_78729_o.put(EntitySlime.class, new RenderSlime(new ModelSlime(16), new ModelSlime(0), 0.25F));
   this.field_78729_o.put(EntityMagmaCube.class, new RenderMagmaCube());
   this.field_78729_o.put(EntityPlayer.class, new RenderPlayer());
   this.field_78729_o.put(EntityGiantZombie.class, new RenderGiantZombie(new ModelZombie(), 0.5F, 6.0F));
   this.field_78729_o.put(EntityGhast.class, new RenderGhast());
   this.field_78729_o.put(EntitySquid.class, new RenderSquid(new ModelSquid(), 0.7F));
   this.field_78729_o.put(EntityVillager.class, new RenderVillager());
   this.field_78729_o.put(EntityIronGolem.class, new RenderIronGolem());
   this.field_78729_o.put(EntityBat.class, new RenderBat());
   this.field_78729_o.put(EntityDragon.class, new RenderDragon());
   this.field_78729_o.put(EntityEnderCrystal.class, new RenderEnderCrystal());
   this.field_78729_o.put(EntityWither.class, new RenderWither());
   this.field_78729_o.put(Entity.class, new RenderEntity());
   this.field_78729_o.put(EntityPainting.class, new RenderPainting());
   this.field_78729_o.put(EntityItemFrame.class, new RenderItemFrame());
   this.field_78729_o.put(EntityLeashKnot.class, new RenderLeashKnot());
   this.field_78729_o.put(EntityArrow.class, new RenderArrow());
   this.field_78729_o.put(EntitySnowball.class, new RenderSnowball(Item.field_77768_aD));
   this.field_78729_o.put(EntityEnderPearl.class, new RenderSnowball(Item.field_77730_bn));
   this.field_78729_o.put(EntityEnderEye.class, new RenderSnowball(Item.field_77748_bA));
   this.field_78729_o.put(EntityEgg.class, new RenderSnowball(Item.field_77764_aP));
   this.field_78729_o.put(EntityPotion.class, new RenderSnowball(Item.field_77726_bs, 16384));
   this.field_78729_o.put(EntityExpBottle.class, new RenderSnowball(Item.field_77809_bD));
   this.field_78729_o.put(EntityFireworkRocket.class, new RenderSnowball(Item.field_92104_bU));
   this.field_78729_o.put(EntityLargeFireball.class, new RenderFireball(2.0F));
   this.field_78729_o.put(EntitySmallFireball.class, new RenderFireball(0.5F));
   this.field_78729_o.put(EntityWitherSkull.class, new RenderWitherSkull());
   this.field_78729_o.put(EntityItem.class, new RenderItem());
   this.field_78729_o.put(EntityXPOrb.class, new RenderXPOrb());
   this.field_78729_o.put(EntityTNTPrimed.class, new RenderTNTPrimed());
   this.field_78729_o.put(EntityFallingSand.class, new RenderFallingSand());
   this.field_78729_o.put(EntityMinecartTNT.class, new RenderTntMinecart());
   this.field_78729_o.put(EntityMinecartMobSpawner.class, new RenderMinecartMobSpawner());
   this.field_78729_o.put(EntityMinecart.class, new RenderMinecart());
   this.field_78729_o.put(EntityBoat.class, new RenderBoat());
   this.field_78729_o.put(EntityFishHook.class, new RenderFish());
   this.field_78729_o.put(EntityHorse.class, new RenderHorse(new ModelHorse(), 0.75F));
   this.field_78729_o.put(EntityLightningBolt.class, new RenderLightningBolt());
   Iterator var1 = this.field_78729_o.values().iterator();

   while(var1.hasNext()) {
      Render var2 = (Render)var1.next();
      var2.func_76976_a(this);
   }

}
项目:Battlegear2    文件:BattlegearClientEvents.java   
/**
    * Render quiver on skeletons if possible
    */
@SubscribeEvent
public void renderLiving(RenderLivingEvent.Post<AbstractSkeleton> event) {

    if (BattlegearConfig.enableSkeletonQuiver && event.getEntity() instanceof EntitySkeleton && event.getRenderer() instanceof RenderSkeleton) {

           GlStateManager.pushMatrix();
           GlStateManager.disableCull();

           GlStateManager.color(1, 1, 1);
        Minecraft.getMinecraft().getTextureManager().bindTexture(quiverDetails);

           GlStateManager.translate((float) event.getX(), (float) event.getY(), (float) event.getZ());

           GlStateManager.scale(1, -1, 1);

        float f2 = interpolateRotation(event.getEntity().prevRenderYawOffset, event.getEntity().renderYawOffset, BattlegearClientTickHandeler.getPartialTick());

           GlStateManager.rotate(180.0F - f2, 0.0F, 1.0F, 0.0F);

        if (event.getEntity().deathTime > 0) {
            float f3 = ((float) event.getEntity().deathTime
                    + BattlegearClientTickHandeler.getPartialTick() - 1.0F) / 20.0F * 1.6F;
            f3 = MathHelper.sqrt(f3);

            if (f3 > 1.0F) {
                f3 = 1.0F;
            }

               GlStateManager.rotate(-f3 * 90, 0.0F, 0.0F, 1.0F);
        }

           GlStateManager.translate(0, -1.5F, 0);

           GlStateManager.rotate(event.getEntity().rotationPitch, 0, 1, 0);

           if(event.getEntity().hasItemInSlot(EntityEquipmentSlot.CHEST)){
               GlStateManager.translate(0, 0, BattlegearRenderHelper.RENDER_UNIT);
           }
           ((ModelBiped)event.getRenderer().mainModel).bipedBody.postRender(BattlegearRenderHelper.RENDER_UNIT);
           GlStateManager.scale(1.05F, 1.05F, 1.05F);
        quiverModel.render(SKELETON_ARROW, BattlegearRenderHelper.RENDER_UNIT);

        Minecraft.getMinecraft().getTextureManager().bindTexture(quiverBase);
           GlStateManager.color(0.10F, 0.10F, 0.10F);
        quiverModel.render(0, BattlegearRenderHelper.RENDER_UNIT);
           GlStateManager.color(1, 1, 1);

           GlStateManager.enableCull();
           GlStateManager.popMatrix();
    }
}