public virtual ModelRenderer AddBox(string par1Str, float par2, float par3, float par4, int par5, int par6, int par7) { par1Str = (new StringBuilder()).Append(BoxName).Append(".").Append(par1Str).ToString(); TextureOffset textureoffset = BaseModel.GetTextureOffset(par1Str); SetTextureOffset(textureoffset.Field_40734_a, textureoffset.Field_40733_b); CubeList.Add((new ModelBox(this, TextureOffsetX, TextureOffsetY, par2, par3, par4, par5, par6, par7, 0.0F)).Func_40671_a(par1Str)); return(this); }
protected virtual void SetTextureOffset(string par1Str, int par2, int par3) { ModelTextureMap[par1Str] = new TextureOffset(par2, par3); }