Interface ILogicProgrammerElementClient<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>

All Superinterfaces:
IGuiInputElementClient<S,G,C>
All Known Implementing Classes:
OperatorLPElementClient, ValueTypeBooleanLPElementClient, ValueTypeIngredientsLPElementClient, ValueTypeItemStackLPElementClient, ValueTypeListLPElementClient, ValueTypeLPElementBaseClient, ValueTypeOperatorLPElementClient, ValueTypeRecipeLPElementClient, ValueTypeStringLPElementClient

public interface ILogicProgrammerElementClient<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu> extends IGuiInputElementClient<S,G,C>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    isFocused(S subGui)
     
    void
    setFocused(S subGui, boolean focused)
    Set the focus of this element.
    void
    setValueInGui(S subGui)
    Set the currently stored value in the given sub gui.

    Methods inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.IGuiInputElementClient

    createSubGui
  • Method Details

    • isFocused

      boolean isFocused(S subGui)
      Parameters:
      subGui - The corresponding sub gui of this element.
      Returns:
      If this element has the active focus. For typing and things like that.
    • setFocused

      void setFocused(S subGui, boolean focused)
      Set the focus of this element.
      Parameters:
      subGui - The corresponding sub gui of this element.
      focused - If it must be focused.
    • setValueInGui

      void setValueInGui(S subGui)
      Set the currently stored value in the given sub gui. This is useful when the gui is reused for multiple elements where the actual value is stored in this element.
      Parameters:
      subGui - The sub gui to put the currently stored value in.