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 interface
static interface
A factory to create a newSpecialGuiElementRenderer
instance. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Registers a newSpecialGuiElementRegistry.Factory
used to create a newSpecialGuiElementRenderer
instance.
-
Constructor Details
-
SpecialGuiElementRegistry
public SpecialGuiElementRegistry()
-
-
Method Details
-
register
Registers a newSpecialGuiElementRegistry.Factory
used to create a newSpecialGuiElementRenderer
instance.
-