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.

@FunctionalInterface public static interface AdvancementRenderer.IconRenderer
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 Details

    • renderAdvancementIcon

      void renderAdvancementIcon(AdvancementRenderContext.Icon context)
      Parameters:
      context - the context of the icon rendering, which has gui graphics for rendering, the advancement instance, and the icon's coordinates.
    • shouldRenderOriginalIcon

      default boolean shouldRenderOriginalIcon()
      Returns:
      true if the original advancement icon should render alongside this icon renderer.