Class OperatorLPElementClient<T extends OperatorLPElement>
java.lang.Object
org.cyclops.integrateddynamics.core.logicprogrammer.client.OperatorLPElementClient<T>
- All Implemented Interfaces:
IGuiInputElementClient<RenderPattern,
,ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> ILogicProgrammerElementClient<RenderPattern,
ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase>
public class OperatorLPElementClient<T extends OperatorLPElement>
extends Object
implements ILogicProgrammerElementClient<RenderPattern,ContainerScreenLogicProgrammerBase,ContainerLogicProgrammerBase>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateSubGui
(int baseX, int baseY, int maxWidth, int maxHeight, ContainerScreenLogicProgrammerBase gui, ContainerLogicProgrammerBase container) boolean
isFocused
(RenderPattern subGui) void
setFocused
(RenderPattern subGui, boolean focused) Set the focus of this element.void
setValueInGui
(RenderPattern subGui) Set the currently stored value in the given sub gui.
-
Constructor Details
-
OperatorLPElementClient
-
-
Method Details
-
getElement
-
setValueInGui
Description copied from interface:ILogicProgrammerElementClient
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.- Specified by:
setValueInGui
in interfaceILogicProgrammerElementClient<RenderPattern,
ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
subGui
- The sub gui to put the currently stored value in.
-
isFocused
- Specified by:
isFocused
in interfaceILogicProgrammerElementClient<RenderPattern,
ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
subGui
- The corresponding sub gui of this element.- Returns:
- If this element has the active focus. For typing and things like that.
-
setFocused
Description copied from interface:ILogicProgrammerElementClient
Set the focus of this element.- Specified by:
setFocused
in interfaceILogicProgrammerElementClient<RenderPattern,
ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
subGui
- The corresponding sub gui of this element.focused
- If it must be focused.
-
createSubGui
public RenderPattern createSubGui(int baseX, int baseY, int maxWidth, int maxHeight, ContainerScreenLogicProgrammerBase gui, ContainerLogicProgrammerBase container) - Specified by:
createSubGui
in interfaceIGuiInputElementClient<RenderPattern,
ContainerScreenLogicProgrammerBase, ContainerLogicProgrammerBase> - Parameters:
baseX
- Base xbaseY
- Base ymaxWidth
- Max widthmaxHeight
- Max heightgui
- The parent guicontainer
- The parent container- Returns:
- A subgui that is shown when activated.
-