Interface IGuiInputElementValueType<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>
- Type Parameters:
G- The type of gui.C- The type of container.S- The sub gui box type.
- All Superinterfaces:
IGuiInputElement<S,G, C>
- All Known Implementing Classes:
GuiElementValueTypeBoolean,GuiElementValueTypeDropdownList,GuiElementValueTypeString
public interface IGuiInputElementValueType<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>
extends IGuiInputElement<S,G,C>
A value type element inside the logic programmer.
-
Method Summary
Modifier and TypeMethodDescriptiongetValue()voidsetValidator(Predicate<IValue> validator) voidvoidsetValueInGui(S subGui, boolean sendToServer) Set the currently stored value in the given sub gui.Methods inherited from interface org.cyclops.integrateddynamics.api.client.gui.subgui.IGuiInputElement
activate, createSubGui, deactivate, getColor, getName, getRenderPattern, getSymbol, loadTooltip, validate
-
Method Details
-
setValidator
-
getValue
IValue getValue() -
setValue
-
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.sendToServer- If the value must be sent to the server.
-