Interface IValueTypeLogicProgrammerElement<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>
- Type Parameters:
S
- The sub gui box type.G
- The type of gui.C
- The type of container.
- 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
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, loadElement, matchesInput, matchesOutput, onInputSlotUpdated, setFocused, setValueInContainer, setValueInGui, slotClick, writeElement
-
Method Details
-
getValueType
IValueType<?> getValueType()- Returns:
- The value type of this element.
-
getValue
IValue getValue()- Returns:
- The current value.
-
setValue
- Parameters:
value
- The new value.
-
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.
-