Interface IGuiInputElement<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 Known Subinterfaces:
IGuiInputElementValueType<S,G,C>, ILogicProgrammerElement<S,G,C>, IValueTypeLogicProgrammerElement<S,G,C>
All Known Implementing Classes:
GuiElementValueTypeBoolean, GuiElementValueTypeDropdownList, GuiElementValueTypeString, OperatorLPElement, ValueTypeBooleanLPElement, ValueTypeIngredientsLPElement, ValueTypeItemStackLPElement, ValueTypeListLPElement, ValueTypeLPElementBase, ValueTypeOperatorLPElement, ValueTypeRecipeLPElement, ValueTypeStringLPElement

public interface IGuiInputElement<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu>
An element inside the logic programmer.
  • Method Details

    • getName

      net.minecraft.network.chat.Component getName()
      Returns:
      Name used for rendering.
    • loadTooltip

      void loadTooltip(List<net.minecraft.network.chat.Component> lines)
      Parameters:
      lines - The list to add tooltip lines to.
    • getRenderPattern

      IConfigRenderPattern getRenderPattern()
      Returns:
      The render pattern.
    • activate

      void activate()
      Called when this element is activated.
    • deactivate

      void deactivate()
      Called when this element is deactivated.
    • validate

      net.minecraft.network.chat.Component validate()
      Validates the current state of the element.
      Returns:
      An error or null.
    • getColor

      int getColor()
      Returns:
      The color used to identify this element.
    • getSymbol

      String getSymbol()
      Returns:
      The symbol used to identify this element.
    • createSubGui

      S createSubGui(int baseX, int baseY, int maxWidth, int maxHeight, G gui, C container)
      Parameters:
      baseX - Base x
      baseY - Base y
      maxWidth - Max width
      maxHeight - Max height
      gui - The parent gui
      container - The parent container
      Returns:
      A subgui that is shown when activated.