Package mcp.mobius.waila.api.component
Class WrappedComponent
java.lang.Object
mcp.mobius.waila.api.component.WrappedComponent
- All Implemented Interfaces:
ITooltipComponent
- Direct Known Subclasses:
PositionComponent
Component that renders a vanilla
Component.-
Nested Class Summary
Nested classes/interfaces inherited from interface mcp.mobius.waila.api.ITooltipComponent
ITooltipComponent.HorizontalGrowing -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns the height of the component.intgetWidth()Returns the width of the component.inthashCode()voidrender(GuiGraphics ctx, int x, int y, DeltaTracker delta) Renders the component.
-
Field Details
-
component
-
-
Constructor Details
-
WrappedComponent
-
WrappedComponent
-
-
Method Details
-
getWidth
public int getWidth()Description copied from interface:ITooltipComponentReturns the width of the component.Contract:
ITooltipComponent.getWidth()will be called first, thenITooltipComponent.getHeight().- Specified by:
getWidthin interfaceITooltipComponent
-
getHeight
public int getHeight()Description copied from interface:ITooltipComponentReturns the height of the component.Contract:
ITooltipComponent.getWidth()will be called first, thenITooltipComponent.getHeight().- Specified by:
getHeightin interfaceITooltipComponent
-
render
Description copied from interface:ITooltipComponentRenders the component.- Specified by:
renderin interfaceITooltipComponent
-
equals
-
hashCode
public int hashCode()
-