Class ScreenEvent.Render.Pre
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.Render
net.neoforged.neoforge.client.event.ScreenEvent.Render.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ScreenEvent.Render
public static class ScreenEvent.Render.Pre
extends ScreenEvent.Render
implements net.neoforged.bus.api.ICancellableEvent
Fired before the screen is drawn.
This event is cancellable, and does not
.
If the event is cancelled, the screen will not be drawn.invalid reference
have a result
This event is fired on the main Forge event bus, only on the logical client.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent.Render
ScreenEvent.Render.Post, ScreenEvent.Render.Pre
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ScreenEvent
ScreenEvent.BackgroundRendered, ScreenEvent.CharacterTyped, ScreenEvent.Closing, ScreenEvent.Init, ScreenEvent.KeyPressed, ScreenEvent.KeyReleased, ScreenEvent.MouseButtonPressed, ScreenEvent.MouseButtonReleased, ScreenEvent.MouseDragged, ScreenEvent.MouseScrolled, ScreenEvent.Opening, ScreenEvent.Render, ScreenEvent.RenderInventoryMobEffects
-
Constructor Summary
ConstructorDescriptionPre
(Screen screen, GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) -
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent.Render
getGuiGraphics, getMouseX, getMouseY, getPartialTick
Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent
getScreen
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
@Internal public Pre(Screen screen, GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
-