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 Summary
Modifier and TypeMethodDescriptionvoidactivate()Called when this element is activated.voidCalled when this element is deactivated.intgetColor()net.minecraft.network.chat.ComponentgetName()voidloadTooltip(Consumer<net.minecraft.network.chat.Component> tooltipAdder) net.minecraft.network.chat.Componentvalidate()Validates the current state of the element.
-
Method Details
-
getClient
GIC getClient() -
getName
net.minecraft.network.chat.Component getName()- Returns:
- Name used for rendering.
-
loadTooltip
- 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.
-