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 SpecialGuiElementRenderer.
When you want to render, add an instance of the corresponding render state to DrawContext#state using GuiRenderState#addSpecialElement(SpecialGuiElementRenderState).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceA factory to create a newSpecialGuiElementRendererinstance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidRegisters a newSpecialGuiElementRegistry.Factoryused to create a newSpecialGuiElementRendererinstance.
-
Constructor Details
-
SpecialGuiElementRegistry
public SpecialGuiElementRegistry()
-
-
Method Details
-
register
Registers a newSpecialGuiElementRegistry.Factoryused to create a newSpecialGuiElementRendererinstance.
-