Class ScreenEvent.BackgroundRendered
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ScreenEvent
net.neoforged.neoforge.client.event.ScreenEvent.BackgroundRendered
- Enclosing class:
ScreenEvent
@Deprecated(forRemoval=true,
since="21.0")
public static class ScreenEvent.BackgroundRendered
extends ScreenEvent
Deprecated, for removal: This API element is subject to removal in a future version.
Planned on being removed in 1.21.1 due to extreme maintenance burden to make this event fire consistently for most screens.
Fired directly after the background of the screen is drawn. (Only when the screen calls
Screen.renderBackground(net.minecraft.client.gui.GuiGraphics, int, int, float)
)
Can be used for drawing above the background but below the tooltips.
This event is not cancellable, and does not
.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
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final GuiGraphics
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorsConstructorDescriptionBackgroundRendered
(Screen screen, GuiGraphics guiGraphics) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Returns the gui graphics used for rendering.Methods inherited from class net.neoforged.neoforge.client.event.ScreenEvent
getScreen
-
Field Details
-
guiGraphics
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Constructor Details
-
BackgroundRendered
Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getGuiGraphics
Deprecated, for removal: This API element is subject to removal in a future version.Returns the gui graphics used for rendering.- Returns:
- the gui graphics used for rendering
-