예제 #1
0
 protected void func_82420_a(EntityLiving par1EntityLiving, ItemStack par2ItemStack) {
   this.field_82423_g.heldItemRight =
       this.field_82425_h.heldItemRight =
           this.modelBipedMain.heldItemRight = par2ItemStack != null ? 1 : 0;
   this.field_82423_g.isSneak =
       this.field_82425_h.isSneak = this.modelBipedMain.isSneak = par1EntityLiving.isSneaking();
 }
예제 #2
0
  public void doRenderLiving(
      EntityLiving par1EntityLiving,
      double par2,
      double par4,
      double par6,
      float par8,
      float par9) {
    float f2 = 1.0F;
    GL11.glColor3f(f2, f2, f2);
    ItemStack itemstack = par1EntityLiving.getHeldItem();
    this.func_82420_a(par1EntityLiving, itemstack);
    double d3 = par4 - (double) par1EntityLiving.yOffset;

    if (par1EntityLiving.isSneaking() && !(par1EntityLiving instanceof EntityPlayerSP)) {
      d3 -= 0.125D;
    }

    super.doRenderLiving(par1EntityLiving, par2, d3, par6, par8, par9);
    this.field_82423_g.aimedBow =
        this.field_82425_h.aimedBow = this.modelBipedMain.aimedBow = false;
    this.field_82423_g.isSneak = this.field_82425_h.isSneak = this.modelBipedMain.isSneak = false;
    this.field_82423_g.heldItemRight =
        this.field_82425_h.heldItemRight = this.modelBipedMain.heldItemRight = 0;
  }