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 Summary
Modifier and TypeMethodDescriptionvoid
activate()
Called when this element is activated.createSubGui
(int baseX, int baseY, int maxWidth, int maxHeight, G gui, C container) void
Called when this element is deactivated.int
getColor()
net.minecraft.network.chat.Component
getName()
void
loadTooltip
(List<net.minecraft.network.chat.Component> lines) net.minecraft.network.chat.Component
validate()
Validates the current state of the element.
-
Method Details
-
getName
net.minecraft.network.chat.Component getName()- Returns:
- Name used for rendering.
-
loadTooltip
- 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
- Parameters:
baseX
- Base xbaseY
- Base ymaxWidth
- Max widthmaxHeight
- Max heightgui
- The parent guicontainer
- The parent container- Returns:
- A subgui that is shown when activated.
-