Search in sources :

Example 1 with ModelClayMan

use of sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan in project ClaySoldiersMod by SanAndreasP.

the class UpgradeRenderHelper method onRightItemRender.

// ------------------------------- RIGHT HAND ITEMS ------------------------------- //
public static void onRightItemRender(RightHandUpgrade upg, RenderManager manager, IUpgradeEntity entity, float partTicks, ModelBase model) {
    if (entity instanceof EntityClayMan && model instanceof ModelClayMan) {
        EntityClayMan kootra = (EntityClayMan) entity;
        ModelClayMan corpse = (ModelClayMan) model;
        GL11.glPushMatrix();
        corpse.bipedRightArm.postRender(0.0625F);
        GL11.glTranslatef(-0.0625F, 0.4375F, 0.0625F);
        float scale = 0.175F;
        GL11.glTranslatef(0.05F, -0.15F, -0.08F);
        GL11.glScalef(scale + 0.2F, scale, scale);
        GL11.glRotatef(140F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(-90F, 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(0F, 0.0F, 0.0F, 1.0F);
        manager.itemRenderer.renderItem(kootra, upg.getHeldItem(entity), 0);
        GL11.glPopMatrix();
    }
}
Also used : ModelClayMan(sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan) EntityClayMan(sanandreasp.mods.ClaySoldiersMod.entity.EntityClayMan)

Example 2 with ModelClayMan

use of sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan in project ClaySoldiersMod by SanAndreasP.

the class UpgradeRenderHelper method onLeftItemRender.

// ------------------------------- LEFT HAND ITEMS ------------------------------- //
public static void onLeftItemRender(LeftHandUpgrade upg, RenderManager manager, IUpgradeEntity entity, float partTicks, ModelBase model) {
    if (entity instanceof EntityClayMan && model instanceof ModelClayMan) {
        EntityClayMan kootra = (EntityClayMan) entity;
        ModelClayMan corpse = (ModelClayMan) model;
        GL11.glPushMatrix();
        corpse.bipedLeftArm.postRender(0.0625F);
        GL11.glTranslatef(-0.0625F, 0.4375F, 0.0625F);
        float scale = 0.175F;
        GL11.glTranslatef(0.05F, -0.15F, -0.08F);
        GL11.glScalef(scale + 0.2F, scale, scale);
        GL11.glRotatef(140F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(-90F, 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(0F, 0.0F, 0.0F, 1.0F);
        manager.itemRenderer.renderItem(kootra, upg.getHeldItem(entity), 0);
        GL11.glPopMatrix();
    }
}
Also used : ModelClayMan(sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan) EntityClayMan(sanandreasp.mods.ClaySoldiersMod.entity.EntityClayMan)

Example 3 with ModelClayMan

use of sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan in project ClaySoldiersMod by SanAndreasP.

the class ClientProxy method registerRenderInformation.

@Override
public void registerRenderInformation() {
    RenderingRegistry.registerEntityRenderingHandler(EntityClayMan.class, new RenderClayMan(new ModelClayMan(0F, 13F), 0.125F));
    RenderingRegistry.registerEntityRenderingHandler(EntityGravelChunk.class, new RenderGravelChunk());
    RenderingRegistry.registerEntityRenderingHandler(EntitySnowball.class, new RenderSnowball(Item.snowball));
    RenderingRegistry.registerEntityRenderingHandler(EntityFireball.class, new RenderSnowball(Item.fireballCharge));
    RenderingRegistry.registerEntityRenderingHandler(EntityHorse.class, new RenderHorse(new ModelHorse(0F, 12.75F), 0.15F));
    RenderingRegistry.registerEntityRenderingHandler(EntityPegasus.class, new RenderPegasus(new ModelPegasus(0F, 12.75F), 0.15F));
    RenderingRegistry.registerEntityRenderingHandler(EntityBunny.class, new RenderBunny(new ModelBunny(), 0.15F));
    RenderingRegistry.registerEntityRenderingHandler(EntityTurtle.class, new RenderTurtle(new ModelTurtle(0F, 12.75F), 0.15F));
    RenderingRegistry.registerEntityRenderingHandler(EntityGecko.class, new RenderGecko(new ModelGecko(), 0.15F));
    RenderingRegistry.registerEntityRenderingHandler(EntityClayNexus.class, new RenderClayNexus(new ModelClayNexus(), 0.15F));
}
Also used : RenderPegasus(sanandreasp.mods.ClaySoldiersMod.client.render.RenderPegasus) RenderClayMan(sanandreasp.mods.ClaySoldiersMod.client.render.RenderClayMan) RenderHorse(sanandreasp.mods.ClaySoldiersMod.client.render.RenderHorse) RenderClayNexus(sanandreasp.mods.ClaySoldiersMod.client.render.RenderClayNexus) ModelBunny(sanandreasp.mods.ClaySoldiersMod.client.model.ModelBunny) ModelClayNexus(sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayNexus) ModelHorse(sanandreasp.mods.ClaySoldiersMod.client.model.ModelHorse) ModelGecko(sanandreasp.mods.ClaySoldiersMod.client.model.ModelGecko) ModelClayMan(sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan) RenderSnowball(sanandreasp.mods.ClaySoldiersMod.client.render.RenderSnowball) ModelPegasus(sanandreasp.mods.ClaySoldiersMod.client.model.ModelPegasus) RenderTurtle(sanandreasp.mods.ClaySoldiersMod.client.render.RenderTurtle) ModelTurtle(sanandreasp.mods.ClaySoldiersMod.client.model.ModelTurtle) RenderGravelChunk(sanandreasp.mods.ClaySoldiersMod.client.render.RenderGravelChunk) RenderBunny(sanandreasp.mods.ClaySoldiersMod.client.render.RenderBunny) RenderGecko(sanandreasp.mods.ClaySoldiersMod.client.render.RenderGecko)

Example 4 with ModelClayMan

use of sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan in project ClaySoldiersMod by SanAndreasP.

the class UpgradeRenderHelper method onShieldRender.

// ------------------------------- SHIELD ------------------------------- //
public static void onShieldRender(LeftHandUpgrade upg, RenderManager manager, IUpgradeEntity entity, float partTicks, ModelBase model) {
    if (entity instanceof EntityClayMan && model instanceof ModelClayMan) {
        EntityClayMan kootra = (EntityClayMan) entity;
        ModelClayMan corpse = (ModelClayMan) model;
        GL11.glPushMatrix();
        corpse.bipedLeftArm.postRender(0.0625F);
        GL11.glTranslatef(-0.0625F, 0.4375F, -0.0525F);
        float scale = 0.175F;
        GL11.glTranslatef(0.05F, -0.15F, -0.08F);
        GL11.glScalef(scale, scale, scale);
        GL11.glRotatef(100F, 0.0F, 0.0F, 1.0F);
        GL11.glRotatef(40F, 1.0F, 0.0F, 0.0F);
        GL11.glRotatef(80F, 0.0F, 0.0F, 1.0F);
        manager.itemRenderer.renderItem(kootra, upg.getHeldItem(entity), 0);
        GL11.glPopMatrix();
    }
}
Also used : ModelClayMan(sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan) EntityClayMan(sanandreasp.mods.ClaySoldiersMod.entity.EntityClayMan)

Aggregations

ModelClayMan (sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayMan)4 EntityClayMan (sanandreasp.mods.ClaySoldiersMod.entity.EntityClayMan)3 ModelBunny (sanandreasp.mods.ClaySoldiersMod.client.model.ModelBunny)1 ModelClayNexus (sanandreasp.mods.ClaySoldiersMod.client.model.ModelClayNexus)1 ModelGecko (sanandreasp.mods.ClaySoldiersMod.client.model.ModelGecko)1 ModelHorse (sanandreasp.mods.ClaySoldiersMod.client.model.ModelHorse)1 ModelPegasus (sanandreasp.mods.ClaySoldiersMod.client.model.ModelPegasus)1 ModelTurtle (sanandreasp.mods.ClaySoldiersMod.client.model.ModelTurtle)1 RenderBunny (sanandreasp.mods.ClaySoldiersMod.client.render.RenderBunny)1 RenderClayMan (sanandreasp.mods.ClaySoldiersMod.client.render.RenderClayMan)1 RenderClayNexus (sanandreasp.mods.ClaySoldiersMod.client.render.RenderClayNexus)1 RenderGecko (sanandreasp.mods.ClaySoldiersMod.client.render.RenderGecko)1 RenderGravelChunk (sanandreasp.mods.ClaySoldiersMod.client.render.RenderGravelChunk)1 RenderHorse (sanandreasp.mods.ClaySoldiersMod.client.render.RenderHorse)1 RenderPegasus (sanandreasp.mods.ClaySoldiersMod.client.render.RenderPegasus)1 RenderSnowball (sanandreasp.mods.ClaySoldiersMod.client.render.RenderSnowball)1 RenderTurtle (sanandreasp.mods.ClaySoldiersMod.client.render.RenderTurtle)1