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
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final List<GuiLayerManager.NamedLayer> static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(ResourceLocation name, LayeredDraw.Layer layer) add(GuiLayerManager child, BooleanSupplier shouldRender) voidvoidrender(GuiGraphics guiGraphics, DeltaTracker partialTick) private voidrenderInner(GuiGraphics guiGraphics, DeltaTracker 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()
-