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 Details

    • setValidator

      void setValidator(Predicate<IValue> validator)
    • getValue

      IValue getValue()
    • setValue

      void setValue(IValue value)
    • setValueInGui

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