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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
SubGuiBox.Base, SubGuiBox.Box
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGui
ISubGui.SubGuiComparator
-
Field Summary
Modifier and TypeFieldDescriptionprotected final C
protected final E
protected final G
protected net.minecraft.resources.ResourceLocation
Fields inherited from class org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
buttonList, subGuiHolder, TEXTURE
-
Constructor Summary
ConstructorDescriptionRenderPattern
(E element, int baseX, int baseY, int maxWidth, int maxHeight, G gui, C container) -
Method Summary
Modifier and TypeMethodDescriptionstatic int
calculateX
(int baseX, int maxWidth, IConfigRenderPattern configRenderPattern) static int
calculateY
(int baseY, int maxHeight, IConfigRenderPattern configRenderPattern) protected boolean
protected void
drawSlot
(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y) int
int
getWidth()
int
getX()
int
getY()
void
init
(int guiLeft, int guiTop) 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
tick()
Methods inherited from class org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
actionPerformed, charTyped, drawGuiContainerForegroundLayer, drawScreen, isDrawBackground, keyPressed, mouseClicked
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
charTyped, drawGuiContainerForegroundLayer, keyPressed, mouseClicked
-
Field Details
-
element
-
gui
-
container
-
texture
protected net.minecraft.resources.ResourceLocation texture
-
-
Constructor Details
-
RenderPattern
-
-
Method Details
-
calculateX
-
calculateY
-
drawSlot
protected void drawSlot(net.minecraft.client.gui.GuiGraphics guiGraphics, int x, int y) -
init
public void init(int guiLeft, int guiTop) -
tick
public void tick() -
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) -
getX
public int getX()- Specified by:
getX
in interfaceISubGuiBox
-
getY
public int getY()- Specified by:
getY
in interfaceISubGuiBox
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceISubGuiBox
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceISubGuiBox
-