Class SpecialGuiElementRegistry
java.lang.Object
net.fabricmc.fabric.api.client.rendering.v1.SpecialGuiElementRegistry
Allows registering special gui element renderers,
used to render custom gui elements beyond the methods available in
DrawContext.
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 DrawContext#state using GuiRenderState.submitPicturesInPictureState(net.minecraft.client.gui.render.state.pip.PictureInPictureRenderState) GuiRenderState#addSpecialElement(SpecialGuiElementRenderState)}.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceA factory to create a newPictureInPictureRendererinstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRegisters a newSpecialGuiElementRegistry.Factoryused to create a newPictureInPictureRendererinstance.
-
Constructor Details
-
SpecialGuiElementRegistry
public SpecialGuiElementRegistry()
-
-
Method Details
-
register
Registers a newSpecialGuiElementRegistry.Factoryused to create a newPictureInPictureRendererinstance.
-