Class GuiLayerManager
java.lang.Object
net.neoforged.neoforge.client.gui.GuiLayerManager
Manages individual components rendered as part of the hud, allowing
modders to intercept rendering of these components and add their own in-between.
Overlays can be registered using the RegisterGuiLayersEvent
event.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(ResourceLocation name, Consumer<GuiGraphics> layer, BooleanSupplier shouldRender) add
(ResourceLocation name, GuiLayer layer) add
(ResourceLocation name, GuiLayer layer, BooleanSupplier shouldRender) add
(GuiLayerManager child, BooleanSupplier shouldRender) int
void
void
render
(GuiGraphics guiGraphics, DeltaTracker partialTick) private void
renderInner
(GuiGraphics guiGraphics, DeltaTracker partialTick)
-
Field Details
-
layers
-
initialized
private boolean initialized
-
-
Constructor Details
-
GuiLayerManager
public GuiLayerManager()
-
-
Method Details
-
add
-
add
public GuiLayerManager add(ResourceLocation name, Consumer<GuiGraphics> layer, BooleanSupplier shouldRender) -
add
-
add
-
render
-
renderInner
-
initModdedLayers
public void initModdedLayers() -
getLayerCount
public int getLayerCount()
-