Class GuiElementValueTypeDropdownListRenderPattern<T,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<GuiElementValueTypeDropdownList<T,G,C>,G,C>
org.cyclops.integrateddynamics.core.evaluate.variable.gui.GuiElementValueTypeDropdownListRenderPattern<T,S,G,C>
- All Implemented Interfaces:
ISubGui,ISubGuiBox,IDropdownEntryListener<T>
- Direct Known Subclasses:
ValueTypeOperatorLPElementRenderPattern
public class GuiElementValueTypeDropdownListRenderPattern<T,S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>
extends RenderPattern<GuiElementValueTypeDropdownList<T,G,C>,G,C>
implements IDropdownEntryListener<T>
A render pattern for value types that can be read from and written to strings.
-
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
ConstructorsConstructorDescriptionGuiElementValueTypeDropdownListRenderPattern(GuiElementValueTypeDropdownList<T, G, C> element, int baseX, int baseY, int maxWidth, int maxHeight, G gui, C container) -
Method Summary
Modifier and TypeMethodDescriptionbooleancharTyped(char typedChar, int keyCode) Char type eventprotected Set<IDropdownEntry<T>>voidinit(int guiLeft, int guiTop) booleankeyPressed(int typedChar, int keyCode, int modifiers) Key press eventbooleanmouseClicked(double mouseX, double mouseY, int mouseButton) voidonSetDropdownPossiblity(IDropdownEntry dropdownEntry) Will be called when a dropdown entry is selected or completely matches.voidonTyped()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) Methods inherited from class org.cyclops.integrateddynamics.core.logicprogrammer.RenderPattern
drawRenderPattern, drawSlot, getContainer, getHeight, getWidth, getX, getY, sendValueToServer, tickMethods inherited from class org.cyclops.integrateddynamics.core.client.gui.subgui.SubGuiBox
actionPerformed, drawGuiContainerForegroundLayer, drawScreen, isDrawBackgroundMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.ISubGui
drawGuiContainerForegroundLayer
-
Field Details
-
element
protected final GuiElementValueTypeDropdownList<T,G extends net.minecraft.client.gui.screens.Screen, elementC extends net.minecraft.world.inventory.AbstractContainerMenu>
-
-
Constructor Details
-
GuiElementValueTypeDropdownListRenderPattern
-
-
Method Details
-
init
public void init(int guiLeft, int guiTop) - Specified by:
initin interfaceISubGui- Overrides:
initin classRenderPattern<GuiElementValueTypeDropdownList<T,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>
-
getDropdownPossibilities
-
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<GuiElementValueTypeDropdownList<T,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>
-
charTyped
public boolean charTyped(char typedChar, int keyCode) Description copied from interface:ISubGuiChar type event -
keyPressed
public boolean keyPressed(int typedChar, int keyCode, int modifiers) Description copied from interface:ISubGuiKey press event- Specified by:
keyPressedin interfaceISubGui- Overrides:
keyPressedin classSubGuiBox- Parameters:
typedChar- The character typedkeyCode- The keycode of the character typedmodifiers- Key modifiers- Returns:
- True if all next actions should be skipped
-
onTyped
public void onTyped() -
mouseClicked
public boolean mouseClicked(double mouseX, double mouseY, int mouseButton) - Specified by:
mouseClickedin interfaceISubGui- Overrides:
mouseClickedin classSubGuiBox
-
onSetDropdownPossiblity
Description copied from interface:IDropdownEntryListenerWill be called when a dropdown entry is selected or completely matches.- Specified by:
onSetDropdownPossiblityin interfaceIDropdownEntryListener<T>- Parameters:
dropdownEntry- The selected entry.
-