java.lang.Object
org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiHolder
All Implemented Interfaces:
ISubGui

public class SubGuiHolder extends Object implements ISubGui
A subgui that itself can contain multiple ISubGui and delegates to them.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGui

    ISubGui.SubGuiComparator
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
    charTyped(char typedChar, int keyCode)
    Char type event
    void
     
    void
    drawGuiContainerForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int guiLeft, int guiTop, net.minecraft.client.renderer.texture.TextureManager textureManager, net.minecraft.client.gui.Font fontRenderer, int mouseX, int mouseY)
     
    protected Set<ISubGui>
     
    void
    init(int guiLeft, int guiTop)
     
    boolean
    keyPressed(int typedChar, int keyCode, int modifiers)
    Key press event
    boolean
    mouseClicked(double mouseX, double mouseY, int mouseButton)
     
    boolean
     
    void
    renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, int guiLeft, int guiTop, net.minecraft.client.renderer.texture.TextureManager textureManager, net.minecraft.client.gui.Font fontRenderer, float partialTicks, int mouseX, int mouseY)
     
    void
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SubGuiHolder

      public SubGuiHolder()
  • Method Details

    • addSubGui

      public void addSubGui(ISubGui subGui)
    • removeSubGui

      public boolean removeSubGui(ISubGui subGui)
    • clear

      public void clear()
    • getSubGuis

      protected Set<ISubGui> getSubGuis()
    • init

      public void init(int guiLeft, int guiTop)
      Specified by:
      init in interface ISubGui
    • tick

      public void tick()
      Specified by:
      tick in interface ISubGui
    • renderBg

      public void renderBg(net.minecraft.client.gui.GuiGraphics guiGraphics, int guiLeft, int guiTop, net.minecraft.client.renderer.texture.TextureManager textureManager, net.minecraft.client.gui.Font fontRenderer, float partialTicks, int mouseX, int mouseY)
      Specified by:
      renderBg in interface ISubGui
    • drawGuiContainerForegroundLayer

      public void drawGuiContainerForegroundLayer(net.minecraft.client.gui.GuiGraphics guiGraphics, int guiLeft, int guiTop, net.minecraft.client.renderer.texture.TextureManager textureManager, net.minecraft.client.gui.Font fontRenderer, int mouseX, int mouseY)
      Specified by:
      drawGuiContainerForegroundLayer in interface ISubGui
    • charTyped

      public boolean charTyped(char typedChar, int keyCode)
      Description copied from interface: ISubGui
      Char type event
      Specified by:
      charTyped in interface ISubGui
      Parameters:
      typedChar - The character typed
      keyCode - The keycode of the character typed
      Returns:
      True if all next actions should be skipped
    • keyPressed

      public boolean keyPressed(int typedChar, int keyCode, int modifiers)
      Description copied from interface: ISubGui
      Key press event
      Specified by:
      keyPressed in interface ISubGui
      Parameters:
      typedChar - The character typed
      keyCode - The keycode of the character typed
      modifiers - Key modifiers
      Returns:
      True if all next actions should be skipped
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int mouseButton)
      Specified by:
      mouseClicked in interface ISubGui