Interface IGuiInputElement<S extends ISubGuiBox,G extends net.minecraft.client.gui.screens.Screen,C extends net.minecraft.world.inventory.AbstractContainerMenu,GIC extends IGuiInputElementClient<S,G,C>>

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,GIC>, ILogicProgrammerElement<S,G,C,GIC>, IValueTypeLogicProgrammerElement<S,G,C,GIC>
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,GIC extends IGuiInputElementClient<S,G,C>>
An element inside the logic programmer.
  • Method Details

    • getClient

      GIC getClient()
    • getName

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

      void loadTooltip(Consumer<net.minecraft.network.chat.Component> tooltipAdder)
      Parameters:
      tooltipAdder - 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.