Class RenderGuiLayerEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderGuiLayerEvent
- Direct Known Subclasses:
RenderGuiLayerEvent.Post
,RenderGuiLayerEvent.Pre
public abstract class RenderGuiLayerEvent
extends net.neoforged.bus.api.Event
Fired when a GUI layer is rendered to the screen.
See the two subclasses for listening to the two possible phases.
A layer that is not normally active (for example because the player pressed F1) cannot be forced to render. In such cases, this event will however still fire.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after a GUI layer is rendered to the screen, if the correspondingRenderGuiLayerEvent.Pre
is not cancelled.static class
Fired before a GUI layer is rendered to the screen. -
Field Summary
Modifier and TypeFieldDescriptionprivate final GuiGraphics
private final LayeredDraw.Layer
private final ResourceLocation
private final DeltaTracker
-
Constructor Summary
ModifierConstructorDescriptionprotected
RenderGuiLayerEvent
(GuiGraphics guiGraphics, DeltaTracker partialTick, ResourceLocation name, LayeredDraw.Layer layer) -
Method Summary
-
Field Details
-
guiGraphics
-
partialTick
-
name
-
layer
-
-
Constructor Details
-
RenderGuiLayerEvent
@Internal protected RenderGuiLayerEvent(GuiGraphics guiGraphics, DeltaTracker partialTick, ResourceLocation name, LayeredDraw.Layer layer)
-
-
Method Details
-
getGuiGraphics
-
getPartialTick
-
getName
-
getLayer
-