Class RenderGuiEvent
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.RenderGuiEvent
- Direct Known Subclasses:
RenderGuiEvent.Post,RenderGuiEvent.Pre
public abstract class RenderGuiEvent
extends net.neoforged.bus.api.Event
Fired when the HUD is rendered to the screen.
See the two subclasses for listening to the two possible phases.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFired after the HUD is rendered to the screen, if the correspondingRenderGuiEvent.Preis not cancelled.static classFired before the HUD is rendered to the screen.Nested classes/interfaces inherited from class net.neoforged.bus.api.Event
net.neoforged.bus.api.Event.HasResult, net.neoforged.bus.api.Event.Result -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GuiGraphicsprivate final floatprivate final Window -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRenderGuiEvent(Window window, GuiGraphics guiGraphics, float partialTick) -
Method Summary
Modifier and TypeMethodDescriptionfloatMethods inherited from class net.neoforged.bus.api.Event
getResult, hasResult, setResult
-
Field Details
-
window
-
guiGraphics
-
partialTick
private final float partialTick
-
-
Constructor Details
-
RenderGuiEvent
-
-
Method Details
-
getWindow
-
getGuiGraphics
-
getPartialTick
public float getPartialTick()
-