Interface AdvancementRenderer.BackgroundRenderer

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.BackgroundRenderer
Called after the background of an advancement tab renders.

By default, the original background does not render. To have it render, override shouldRenderOriginalBackground() and return true.

  • Method Details

    • renderAdvancementBackground

      void renderAdvancementBackground(AdvancementRenderContext.Background context)
      Parameters:
      context - the context of the frame rendering, which has gui graphics for rendering, the advancement instance, and the background's bounds.
    • shouldRenderOriginalBackground

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