Class ContainerScreenEvent.Render.Foreground
java.lang.Object
net.neoforged.bus.api.Event
net.neoforged.neoforge.client.event.ContainerScreenEvent
net.neoforged.neoforge.client.event.ContainerScreenEvent.Render
net.neoforged.neoforge.client.event.ContainerScreenEvent.Render.Foreground
- Enclosing class:
ContainerScreenEvent.Render
Fired after the container screen's foreground layer and elements are drawn, but
before rendering the tooltips and the item stack being dragged by the player.
This can be used for rendering elements that must be above other screen elements, but below tooltips and the dragged stack, such as slot or item stack specific overlays.
This event is not
, and does not
invalid reference
cancellable
.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.ContainerScreenEvent.Render
ContainerScreenEvent.Render.Background, ContainerScreenEvent.Render.Foreground
Nested classes/interfaces inherited from class net.neoforged.neoforge.client.event.ContainerScreenEvent
ContainerScreenEvent.Render
-
Constructor Summary
ConstructorDescriptionForeground
(AbstractContainerScreen<?> guiContainer, GuiGraphics guiGraphics, int mouseX, int mouseY) -
Method Summary
Methods inherited from class net.neoforged.neoforge.client.event.ContainerScreenEvent.Render
getGuiGraphics, getMouseX, getMouseY
Methods inherited from class net.neoforged.neoforge.client.event.ContainerScreenEvent
getContainerScreen
-
Constructor Details
-
Foreground
@Internal public Foreground(AbstractContainerScreen<?> guiContainer, GuiGraphics guiGraphics, int mouseX, int mouseY)
-