Class GuiLayerManager
java.lang.Object
net.neoforged.neoforge.client.gui.GuiLayerManager
Adaptation of
LayeredDraw
that is used for Gui
rendering specifically,
to give layers a name and fire appropriate events.
Overlays can be registered using the RegisterGuiLayersEvent
event.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private final List
<GuiLayerManager.NamedLayer> static final float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadd
(ResourceLocation name, LayeredDraw.Layer layer) add
(GuiLayerManager child, BooleanSupplier shouldRender) void
void
render
(GuiGraphics guiGraphics, float partialTick) private void
renderInner
(GuiGraphics guiGraphics, float partialTick)
-
Field Details
-
Z_SEPARATION
public static final float Z_SEPARATION- See Also:
-
layers
-
initialized
private boolean initialized
-
-
Constructor Details
-
GuiLayerManager
public GuiLayerManager()
-
-
Method Details
-
add
-
add
-
render
-
renderInner
-
initModdedLayers
public void initModdedLayers()
-