/** * Called when game window resizes. * * @param minecraft Minecraft instance. * @param width New window width. * @param height New window height. */ @Override public void onResize(Minecraft minecraft, int width, int height) { this.setWorldAndResolution(minecraft, width, height); for (ScreenLayer layer : this.guiLayers) { layer.notifyGUIUpdate(); } }
/** Called to update the GUI screen. This will also notify all components. */ @Override public void updateScreen() { for (ScreenLayer layer : this.guiLayers) { layer.notifyGUIUpdate(); } }
public void gameGUIChanged(GuiScreen newScreen) { for (ScreenLayer layer : guiLayers) { layer.notifyGUIUpdate(); } }