Interface IValueTypeLogicProgrammerElement<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> ILogicProgrammerElement<S,
G, C>
- All Known Implementing Classes:
ValueTypeBooleanLPElement
,ValueTypeIngredientsLPElement
,ValueTypeItemStackLPElement
,ValueTypeListLPElement
,ValueTypeLPElementBase
,ValueTypeOperatorLPElement
,ValueTypeRecipeLPElement
,ValueTypeStringLPElement
public interface IValueTypeLogicProgrammerElement<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>
extends ILogicProgrammerElement<S,G,C>
An element instantiation of a value type inside the logic programmer.
-
Method Summary
Modifier and TypeMethodDescription<G2 extends net.minecraft.client.gui.screens.Screen,
C2 extends net.minecraft.world.inventory.AbstractContainerMenu>
IGuiInputElementValueType<?,G2, C2> getValue()
IValueType<?>
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.IGuiInputElement
activate, createSubGui, deactivate, getColor, getName, getRenderPattern, getSymbol, loadTooltip, validate
Methods inherited from interface org.cyclops.integrateddynamics.api.logicprogrammer.ILogicProgrammerElement
canCurrentlyReadFromOtherItem, canWriteElementPre, createSlot, getItemStackSizeLimit, getMatchString, getType, isFocused, isFor, isItemValidForSlot, matchesInput, matchesOutput, onInputSlotUpdated, setFocused, slotClick, writeElement
-
Method Details
-
getValueType
IValueType<?> getValueType()- Returns:
- The value type of this element.
-
getValue
IValue getValue()- Returns:
- The current value.
-
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.
-
createInnerGuiElement
@Nullable <G2 extends net.minecraft.client.gui.screens.Screen,C2 extends net.minecraft.world.inventory.AbstractContainerMenu> IGuiInputElementValueType<?,G2, createInnerGuiElement()C2> - Type Parameters:
G2
- The type of gui.C2
- The type of container.- Returns:
- Create an inner gui element for modifying the value, may be null if it doesn't apply.
-