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.
  • Field Details

    • element

      protected final GuiElementValueTypeDropdownList<T,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu> element
  • Constructor Details

    • GuiElementValueTypeDropdownListRenderPattern

      public GuiElementValueTypeDropdownListRenderPattern(GuiElementValueTypeDropdownList<T,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:
      init in interface ISubGui
      Overrides:
      init in class RenderPattern<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

      protected Set<IDropdownEntry<T>> 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:
      renderBg in interface ISubGui
      Overrides:
      renderBg in class RenderPattern<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: ISubGui
      Char type event
      Specified by:
      charTyped in interface ISubGui
      Overrides:
      charTyped in class SubGuiBox
      Parameters:
      typedChar - The character typed
      keyCode - The keycode of the character typed
      Returns:
      True if all next actions should be skipped
    • keyPressed

      public boolean keyPressed(int typedChar, int keyCode, int modifiers)
      Description copied from interface: ISubGui
      Key press event
      Specified by:
      keyPressed in interface ISubGui
      Overrides:
      keyPressed in class SubGuiBox
      Parameters:
      typedChar - The character typed
      keyCode - The keycode of the character typed
      modifiers - 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:
      mouseClicked in interface ISubGui
      Overrides:
      mouseClicked in class SubGuiBox
    • onSetDropdownPossiblity

      public void onSetDropdownPossiblity(IDropdownEntry dropdownEntry)
      Description copied from interface: IDropdownEntryListener
      Will be called when a dropdown entry is selected or completely matches.
      Specified by:
      onSetDropdownPossiblity in interface IDropdownEntryListener<T>
      Parameters:
      dropdownEntry - The selected entry.