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

@ClientOnly @OverrideOnly public interface ITooltipComponent
The base type of all Waila tooltip components.

See mcp.mobius.waila.api.component for default implementations.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A component that will grow in size relative to overall tooltip width.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the height of the component.
    int
    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, then getHeight().

    • getHeight

      int getHeight()
      Returns the height of the component.

      Contract: getWidth() will be called first, then getHeight().

    • render

      void render(GuiGraphics ctx, int x, int y, DeltaTracker delta)
      Renders the component.