Interface AdvancementRenderer.IconRenderer
- 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 icon (display item) of an advancement renders.
By default, the original icon does not render.
To have it render, override shouldRenderOriginalIcon() and return true.
-
Method Summary
Modifier and TypeMethodDescriptionvoiddefault boolean
-
Method Details
-
renderAdvancementIcon
- Parameters:
context- the context of the icon rendering, which hasgui graphicsfor rendering, theadvancementinstance, and the icon's coordinates.
-
shouldRenderOriginalIcon
default boolean shouldRenderOriginalIcon()- Returns:
trueif the original advancement icon should render alongside this icon renderer.
-