Interface ClientGuiEvent.ScreenRenderPre
- Enclosing interface:
- ClientGuiEvent
@Environment(CLIENT)
public static interface ClientGuiEvent.ScreenRenderPre
-
Method Summary
Modifier and TypeMethodDescriptionrender(net.minecraft.client.gui.screens.Screen screen, com.mojang.blaze3d.vertex.PoseStack matrices, int mouseX, int mouseY, float delta) Invoked before any screen is rendered.
-
Method Details
-
render
EventResult render(net.minecraft.client.gui.screens.Screen screen, com.mojang.blaze3d.vertex.PoseStack matrices, int mouseX, int mouseY, float delta) Invoked before any screen is rendered. Equivalent to Forge'sGuiScreenEvent.DrawScreenEvent.Preevent.- Parameters:
screen- The screen.matrices- The pose stack.mouseX- The scaled x-coordinate of the mouse cursor.mouseY- The scaled y-coordinate of the mouse cursor.delta- The current tick delta.- Returns:
- A
EventResultdetermining the outcome of the event, the vanilla render may be cancelled by the result.
-