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 TypeMethodDescriptionboolean
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
- Parameters:
subGui
- The corresponding sub gui of this element.- Returns:
- If this element has the active focus. For typing and things like that.
-
setFocused
Set the focus of this element.- Parameters:
subGui
- The corresponding sub gui of this element.focused
- If it must be focused.
-
setValueInGui
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.
-