Package mcp.mobius.waila.api
Interface ITooltipComponent
- All Known Subinterfaces:
ITooltipComponent.HorizontalGrowing
- All Known Implementing Classes:
ArmorComponent
,BarComponent
,ColorComponent
,EmptyComponent
,GrowingComponent
,HealthComponent
,ItemComponent
,ItemListComponent
,NamedItemComponent
,NamedItemListComponent
,PairComponent
,PositionComponent
,ProgressArrowComponent
,SpacingComponent
,SpriteBarComponent
,SpriteComponent
,TextureComponent
,WrappedComponent
The base type of all Waila tooltip components.
See mcp.mobius.waila.api.component
for default implementations.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A component that will grow in size relative to overall tooltip width. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the height of the component.int
getWidth()
Returns the width of the component.void
render
(GuiGraphics ctx, int x, int y, DeltaTracker delta) Renders the component.
-
Method Details
-
getWidth
int getWidth()Returns the width of the component.Contract:
getWidth()
will be called first, thengetHeight()
. -
getHeight
int getHeight()Returns the height of the component.Contract:
getWidth()
will be called first, thengetHeight()
. -
render
Renders the component.
-