Class PictureInPictureRendererRegistry

java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.PictureInPictureRendererRegistry

public final class PictureInPictureRendererRegistry extends Object
Allows registering picture-in-picture renderers, used to render custom gui elements beyond the methods available in GuiGraphics.

To render a custom gui element, first implement and register a PictureInPictureRenderer. When you want to render, add an instance of the corresponding render state to GuiGraphics#guiRenderState using GuiRenderState.submitPicturesInPictureState(PictureInPictureRenderState) GuiRenderState#submitPicturesInPictureState(PictureInPictureRenderState)}.