Package net.minecraftforge.client.event
Class RenderGuiOverlayEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.client.event.RenderGuiOverlayEvent
- Direct Known Subclasses:
RenderGuiOverlayEvent.Post
,RenderGuiOverlayEvent.Pre
public abstract class RenderGuiOverlayEvent
extends net.minecraftforge.eventbus.api.Event
Fired when an overlay is rendered to the screen.
See the two subclasses for listening to the two possible phases.
An overlay that is not normally active cannot be forced to render. In such cases, this event will not fire.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Fired after an GUI overlay is rendered to the screen, if the correspondingRenderGuiOverlayEvent.Pre
is not cancelled.static class
Fired before a GUI overlay is rendered to the screen.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprivate final NamedGuiOverlay
private final float
private final PoseStack
private final Window
-
Constructor Summary
ModifierConstructorDescriptionprotected
RenderGuiOverlayEvent
(Window window, PoseStack poseStack, float partialTick, NamedGuiOverlay overlay) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
window
-
poseStack
-
partialTick
private final float partialTick -
overlay
-
-
Constructor Details
-
RenderGuiOverlayEvent
@Internal protected RenderGuiOverlayEvent(Window window, PoseStack poseStack, float partialTick, NamedGuiOverlay overlay)
-
-
Method Details
-
getWindow
-
getPoseStack
-
getPartialTick
public float getPartialTick() -
getOverlay
-