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,ProgressBarComponent,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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA component that will grow in size relative to overall tooltip width. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the height of the component.intgetWidth()Returns the width of the component.voidrender(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.
-