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 Details

    • getValueType

      IValueType<?> getValueType()
      Returns:
      The value type of this element.
    • getValue

      IValue getValue()
      Returns:
      The current value.
    • setValueInGui

      void setValueInGui(S subGui)
      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,C2> createInnerGuiElement()
      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.