Interface AdvancementRenderer.FrameRenderer
- Enclosing class:
AdvancementRenderer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Called after the frame of an advancement renders.
By default, the original frame does not render.
To have it render, override shouldRenderOriginalFrame() and return true.
The tooltip which shows the advancement's name, description, and progress when hovered will render by default.
To cancel its rendering, override shouldRenderTooltip() and return false.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefault booleandefault boolean
-
Method Details
-
renderAdvancementFrame
- Parameters:
context- the context of the frame rendering, which hasgui graphicsfor rendering, theadvancementinstance, and the frame's coordinates.
-
shouldRenderOriginalFrame
default boolean shouldRenderOriginalFrame()- Returns:
trueif the original advancement frame should render alongside this frame renderer.
-
shouldRenderTooltip
default boolean shouldRenderTooltip()- Returns:
trueif the tooltip of a hovered advancement widget should render.
-