Esempio n. 1
0
 /**
  * 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();
   }
 }
Esempio n. 2
0
 /** Called to update the GUI screen. This will also notify all components. */
 @Override
 public void updateScreen() {
   for (ScreenLayer layer : this.guiLayers) {
     layer.notifyGUIUpdate();
   }
 }
Esempio n. 3
0
 public void gameGUIChanged(GuiScreen newScreen) {
   for (ScreenLayer layer : guiLayers) {
     layer.notifyGUIUpdate();
   }
 }