Class SubGuiBox
java.lang.Object
org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
- All Implemented Interfaces:
ISubGui
,ISubGuiBox
- Direct Known Subclasses:
RenderPattern
,SubGuiBox.Base
A sub gui that simply renders a box.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGui
ISubGui.SubGuiComparator
-
Field Summary
Modifier and TypeFieldDescriptionprotected List<net.minecraft.client.gui.components.Button>
protected final SubGuiHolder
protected static final net.minecraft.resources.ResourceLocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
actionPerformed
(net.minecraft.client.gui.components.Button guibutton) boolean
charTyped
(char typedChar, int keyCode) Char type eventvoid
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 eventboolean
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.ISubGuiBox
getHeight, getWidth, getX, getY
-
Field Details
-
TEXTURE
protected static final net.minecraft.resources.ResourceLocation TEXTURE -
buttonList
-
subGuiHolder
-
-
Constructor Details
-
SubGuiBox
-
-
Method Details
-
init
public void init(int guiLeft, int guiTop) -
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) -
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 interfaceISubGui
-
charTyped
public boolean charTyped(char typedChar, int keyCode) Description copied from interface:ISubGui
Char type event -
keyPressed
public boolean keyPressed(int typedChar, int keyCode, int modifiers) Description copied from interface:ISubGui
Key press event- Specified by:
keyPressed
in interfaceISubGui
- Parameters:
typedChar
- The character typedkeyCode
- The keycode of the character typedmodifiers
- 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 interfaceISubGui
-
actionPerformed
protected void actionPerformed(net.minecraft.client.gui.components.Button guibutton)
-