Class ContainerScreenEvent.Render.Foreground

java.lang.Object
net.neoforged.bus.api.Event
Enclosing class:
ContainerScreenEvent.Render

public static class ContainerScreenEvent.Render.Foreground extends 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

invalid reference
cancellable
, and does not
invalid reference
have a result
.

This event is fired on the main Forge event bus, only on the logical client.