use of net.minecraft.client.model.ModelBiped in project ClaySoldiersMod by SanAndreasP.
the class SoldierModelRenderHandler method renderLilyPants.
private void renderLilyPants(RenderClayMan clayManRender, float partTicks) {
ModelBiped model = clayManRender.modelBipedMain;
this.lilypantsBody.rotateAngleX = model.bipedBody.rotateAngleX;
this.lilypantsBody.rotateAngleY = model.bipedBody.rotateAngleY;
this.lilypantsBody.rotateAngleZ = model.bipedBody.rotateAngleZ;
this.lilypantsLeftLeg.rotateAngleX = model.bipedLeftLeg.rotateAngleX;
this.lilypantsLeftLeg.rotateAngleY = model.bipedLeftLeg.rotateAngleY;
this.lilypantsLeftLeg.rotateAngleZ = model.bipedLeftLeg.rotateAngleZ;
this.lilypantsRightLeg.rotateAngleX = model.bipedRightLeg.rotateAngleX;
this.lilypantsRightLeg.rotateAngleY = model.bipedRightLeg.rotateAngleY;
this.lilypantsRightLeg.rotateAngleZ = model.bipedRightLeg.rotateAngleZ;
clayManRender.bindTexture(Textures.CLAYMAN_LILYPANTS);
this.lilypantsBody.render(partTicks);
this.lilypantsLeftLeg.render(partTicks);
this.lilypantsRightLeg.render(partTicks);
}
use of net.minecraft.client.model.ModelBiped in project ClaySoldiersMod by SanAndreasP.
the class SoldierModelRenderHandler method renderCrown.
private void renderCrown(RenderClayMan clayManRender, float partTicks, boolean isSuper) {
ModelBiped model = clayManRender.modelBipedMain;
this.crown.rotateAngleX = model.bipedHead.rotateAngleX;
this.crown.rotateAngleY = model.bipedHead.rotateAngleY;
this.crown.rotateAngleZ = model.bipedHead.rotateAngleZ;
clayManRender.bindTexture(Textures.CLAYMAN_CROWN);
if (isSuper) {
GL11.glColor3f(0.39F, 0.82F, 0.742F);
} else {
GL11.glColor3f(1.0F, 0.9F, 0.0F);
}
this.crown.render(partTicks);
GL11.glColor3f(1.0F, 1.0F, 1.0F);
}
use of net.minecraft.client.model.ModelBiped in project BloodMagic by WayofTime.
the class RenderSentientSpecter method setModelVisibilities.
private void setModelVisibilities(EntitySentientSpecter clientPlayer) {
ModelBiped modelplayer = this.getMainModel();
ItemStack itemstack = clientPlayer.getHeldItemMainhand();
ItemStack itemstack1 = clientPlayer.getHeldItemOffhand();
modelplayer.setVisible(false);
modelplayer.isSneak = clientPlayer.isSneaking();
ModelBiped.ArmPose modelbiped$armpose = ModelBiped.ArmPose.EMPTY;
ModelBiped.ArmPose modelbiped$armpose1 = ModelBiped.ArmPose.EMPTY;
if (!itemstack.isEmpty()) {
modelbiped$armpose = ModelBiped.ArmPose.ITEM;
if (clientPlayer.getItemInUseCount() > 0) {
EnumAction enumaction = itemstack.getItemUseAction();
if (enumaction == EnumAction.BLOCK) {
modelbiped$armpose = ModelBiped.ArmPose.BLOCK;
} else if (enumaction == EnumAction.BOW) {
modelbiped$armpose = ModelBiped.ArmPose.BOW_AND_ARROW;
}
}
}
if (!itemstack1.isEmpty()) {
modelbiped$armpose1 = ModelBiped.ArmPose.ITEM;
if (clientPlayer.getItemInUseCount() > 0) {
EnumAction enumaction1 = itemstack1.getItemUseAction();
if (enumaction1 == EnumAction.BLOCK) {
modelbiped$armpose1 = ModelBiped.ArmPose.BLOCK;
}
}
}
if (clientPlayer.getPrimaryHand() == EnumHandSide.RIGHT) {
modelplayer.rightArmPose = modelbiped$armpose;
modelplayer.leftArmPose = modelbiped$armpose1;
} else {
modelplayer.rightArmPose = modelbiped$armpose1;
modelplayer.leftArmPose = modelbiped$armpose;
}
}
use of net.minecraft.client.model.ModelBiped in project GregTech by GregTechCE.
the class ArmorLogicRebreather method getArmorModel.
@SideOnly(Side.CLIENT)
private ModelBiped getArmorModel() {
if (armorModel == null) {
this.armorModel = new ModelBiped(1.0f, 0.0f, 32, 32);
this.armorModel.bipedHeadwear.isHidden = true;
ModelRenderer bipedHead = this.armorModel.bipedHead;
bipedHead.cubeList.add(new ModelBox(bipedHead, 0, 16, -2.0F, -6.0F, 4.0f, 4, 4, 4, 0.0f));
}
return armorModel;
}
use of net.minecraft.client.model.ModelBiped in project pnc-repressurized by TeamPneumatic.
the class ClientEventHandler method setRenderHead.
private void setRenderHead(EntityLivingBase entity, boolean setRender) {
if (entity.getItemStackFromSlot(EntityEquipmentSlot.HEAD).getItem() == Itemss.PNEUMATIC_HELMET && (ConfigHandler.client.useHelmetModel || DateEventHandler.isIronManEvent())) {
Render renderer = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(entity);
if (renderer instanceof RenderBiped) {
ModelBiped modelBiped = (ModelBiped) ((RenderBiped) renderer).getMainModel();
modelBiped.bipedHead.showModel = setRender;
}
}
}
Aggregations