protected virtual void ScaleMagmaCube(EntityMagmaCube par1EntityMagmaCube, float par2) { int i = par1EntityMagmaCube.GetSlimeSize(); float f = (par1EntityMagmaCube.Field_767_b + (par1EntityMagmaCube.Field_768_a - par1EntityMagmaCube.Field_767_b) * par2) / ((float)i * 0.5F + 1.0F); float f1 = 1.0F / (f + 1.0F); float f2 = i; //GL.Scale(f1 * f2, (1.0F / f1) * f2, f1 * f2); }
public virtual void DoRenderMagmaCube(EntityMagmaCube par1EntityMagmaCube, double par2, double par4, double par6, float par8, float par9) { int i = ((ModelMagmaCube)MainModel).Func_40343_a(); if (i != Field_40276_c) { Field_40276_c = i; MainModel = new ModelMagmaCube(); Console.WriteLine("new lava slime model"); } base.DoRenderLiving(par1EntityMagmaCube, par2, par4, par6, par8, par9); }