Class RenderPattern<E extends IGuiInputElement,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>

java.lang.Object
org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
org.cyclops.integrateddynamics.core.logicprogrammer.RenderPattern<E,G,C>
All Implemented Interfaces:
ISubGui, ISubGuiBox
Direct Known Subclasses:
GuiElementValueTypeBooleanRenderPattern, GuiElementValueTypeDropdownListRenderPattern, GuiElementValueTypeStringRenderPattern, ValueTypeIngredientsLPElement.ListElementSubGui, ValueTypeIngredientsLPElement.MasterSubGuiRenderPattern, ValueTypeIngredientsLPElement.SelectionSubGui, ValueTypeItemStackLPElement.SubGuiRenderPattern, ValueTypeListLPElement.ListElementSubGui, ValueTypeListLPElement.MasterSubGuiRenderPattern, ValueTypeListLPElement.SelectionSubGui

public class RenderPattern<E extends IGuiInputElement,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu> extends SubGuiBox implements ISubGuiBox
Sub gui for rendering logic programmer elements.
  • Field Details

    • element

      protected final E extends IGuiInputElement element
    • gui

      protected final G extends net.minecraft.client.gui.screens.Screen gui
    • container

      protected final C extends net.minecraft.world.inventory.AbstractContainerMenu container
    • texture

      protected net.minecraft.resources.ResourceLocation texture
  • Constructor Details

    • RenderPattern

      public RenderPattern(E element, int baseX, int baseY, int maxWidth, int maxHeight, G gui, C container)
  • Method Details

    • calculateX

      public static int calculateX(int baseX, int maxWidth, IConfigRenderPattern configRenderPattern)
    • calculateY

      public static int calculateY(int baseY, int maxHeight, IConfigRenderPattern configRenderPattern)
    • drawSlot

      protected void drawSlot(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y)
    • init

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

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

      protected boolean drawRenderPattern()
    • 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
      Overrides:
      renderBg in class SubGuiBox
    • getX

      public int getX()
      Specified by:
      getX in interface ISubGuiBox
    • getY

      public int getY()
      Specified by:
      getY in interface ISubGuiBox
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface ISubGuiBox
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface ISubGuiBox