Class PictureInPictureRendererRegistry
java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.PictureInPictureRendererRegistry
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)}.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceA factory to create a newPictureInPictureRendererinstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRegisters a newPictureInPictureRendererRegistry.Factoryused to create a newPictureInPictureRendererinstance.
-
Constructor Details
-
PictureInPictureRendererRegistry
public PictureInPictureRendererRegistry()
-
-
Method Details
-
register
Registers a newPictureInPictureRendererRegistry.Factoryused to create a newPictureInPictureRendererinstance.
-