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();
}
}
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();
}
}
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));
}
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();
}
}
Aggregations