Class GuiElementValueTypeBooleanRenderPattern<S extends ISubGuiBox,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<GuiElementValueTypeBoolean<G,C>,G,C>
org.cyclops.integrateddynamics.core.evaluate.variable.gui.GuiElementValueTypeBooleanRenderPattern<S,G,C>
- All Implemented Interfaces:
ISubGui,ISubGuiBox,IRenderPatternValueTypeTooltip
public class GuiElementValueTypeBooleanRenderPattern<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>
extends RenderPattern<GuiElementValueTypeBoolean<G,C>,G,C>
implements IRenderPatternValueTypeTooltip
-
Nested Class Summary
Nested classes/interfaces inherited from class org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
SubGuiBox.Base, SubGuiBox.BoxNested classes/interfaces inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGui
ISubGui.SubGuiComparator -
Field Summary
FieldsFields inherited from class org.cyclops.integrateddynamics.core.logicprogrammer.RenderPattern
container, gui, textureFields inherited from class org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
buttonList, subGuiHolder, TEXTURE -
Constructor Summary
ConstructorsConstructorDescriptionGuiElementValueTypeBooleanRenderPattern(GuiElementValueTypeBoolean<G, C> element, int baseX, int baseY, int maxWidth, int maxHeight, G gui, C container) -
Method Summary
Modifier and TypeMethodDescriptionvoidinit(int guiLeft, int guiTop) booleanbooleanmouseClicked(double mouseX, double mouseY, int mouseButton) protected voidonChecked(boolean checked) voidrenderBg(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) voidvoidsetRenderTooltip(boolean renderTooltip) Methods inherited from class org.cyclops.integrateddynamics.core.logicprogrammer.RenderPattern
drawRenderPattern, drawSlot, getContainer, getHeight, getWidth, getX, getY, tickMethods inherited from class org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
actionPerformed, charTyped, drawGuiContainerForegroundLayer, drawScreen, isDrawBackground, keyPressedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.core.logicprogrammer.IRenderPatternValueTypeTooltip
drawTooltipForeground, getValueTypeTooltipMethods inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGui
charTyped, drawGuiContainerForegroundLayer, keyPressed
-
Field Details
-
element
protected final GuiElementValueTypeBoolean<G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu> element
-
-
Constructor Details
-
GuiElementValueTypeBooleanRenderPattern
public GuiElementValueTypeBooleanRenderPattern(GuiElementValueTypeBoolean<G, C> element, int baseX, int baseY, int maxWidth, int maxHeight, G gui, C container)
-
-
Method Details
-
init
public void init(int guiLeft, int guiTop) - Specified by:
initin interfaceISubGui- Overrides:
initin classRenderPattern<GuiElementValueTypeBoolean<G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>, G extends net.minecraft.client.gui.screens.Screen, C extends net.minecraft.world.inventory.AbstractContainerMenu>
-
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:
renderBgin interfaceISubGui- Overrides:
renderBgin classRenderPattern<GuiElementValueTypeBoolean<G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>, G extends net.minecraft.client.gui.screens.Screen, C extends net.minecraft.world.inventory.AbstractContainerMenu>
-
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) - Specified by:
mouseClickedin interfaceISubGui- Overrides:
mouseClickedin classSubGuiBox
-
isRenderTooltip
public boolean isRenderTooltip()- Specified by:
isRenderTooltipin interfaceIRenderPatternValueTypeTooltip
-
setRenderTooltip
public void setRenderTooltip(boolean renderTooltip) - Specified by:
setRenderTooltipin interfaceIRenderPatternValueTypeTooltip
-
onChecked
protected void onChecked(boolean checked) -
sendValueToServer
public void sendValueToServer()- Overrides:
sendValueToServerin classRenderPattern<GuiElementValueTypeBoolean<G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>, G extends net.minecraft.client.gui.screens.Screen, C extends net.minecraft.world.inventory.AbstractContainerMenu>
-