I'm trying to add on to existing GUI's via the GuiContainerEvent.DrawForeground event. Previously, I was doing the following:
mc.getTextureManager().bindTexture(searchBar);
Gui.drawTexturedModalRect(79, 4, 0, 0, 90, 12);
However, with 1.14, it seems the correct syntax would be:
GlStateManager.color4f(1.0F, 1.0F, 1.0F, 1.0F);
mc.getTextureManager().bindTexture(searchBar);
event.getGuiContainer().blit(79, 4, 0, 0, 90, 12);
The issue I'm encountering is that this new function does not seem to correctly render my texture. Linked is an imgur album with comparisons of what the texture is and what will be rendered. The texture is 90x12 pixels in all examples. I am confident the ResourceLocation is correct given that the texture clearly changes when the image is changed, but is still displayed incorrectly. Is it possible the parameter order has switched and I didn't realize it? Any advice is appreciated.