public void bindTexture ( GuiTexture texture ) { //no change needed if ( texture == currentTexture ) return ; next ( ) ; Minecraft . getMinecraft ( ) . getTextureManager ( ) . bindTexture ( texture . getResourceLocation ( ) ) ; //System.out.println(currentComponent + " // Bound " + texture.getResourceLocation()); currentTexture = texture ; }
Bind a new texture for rendering .