java.lang.Object
org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
All Implemented Interfaces:
ISubGui, ISubGuiBox
Direct Known Subclasses:
RenderPattern, SubGuiBox.Base

public abstract class SubGuiBox extends Object implements ISubGuiBox
A sub gui that simply renders a box.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static enum 
     

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

    ISubGui.SubGuiComparator
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected List<net.minecraft.client.gui.components.Button>
     
    protected final SubGuiHolder
     
    protected static final net.minecraft.resources.ResourceLocation
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    actionPerformed(net.minecraft.client.gui.components.Button guibutton)
     
    boolean
    charTyped(char typedChar, int keyCode)
    Char type event
    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)
     
    void
    drawScreen(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks)
     
    void
    init(int guiLeft, int guiTop)
     
    protected boolean
     
    boolean
    keyPressed(int typedChar, int keyCode, int modifiers)
    Key press event
    boolean
    mouseClicked(double mouseX, double mouseY, int mouseButton)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGui

    tick

    Methods inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGuiBox

    getHeight, getWidth, getX, getY
  • Field Details

    • TEXTURE

      protected static final net.minecraft.resources.ResourceLocation TEXTURE
    • buttonList

      protected List<net.minecraft.client.gui.components.Button> buttonList
    • subGuiHolder

      protected final SubGuiHolder subGuiHolder
  • Constructor Details

  • Method Details

    • init

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

      public void drawScreen(net.minecraft.client.gui.GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTicks)
    • isDrawBackground

      protected boolean isDrawBackground()
    • 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
    • actionPerformed

      protected void actionPerformed(net.minecraft.client.gui.components.Button guibutton)