Mineuniverse
Log in Register
Mods

Fabric Screen Layers

Fabric implementation of Forge's screen layering
by Mysticdrew
Claim this project
1,329 downloads
0 likes
Updated Jun 30, 2026
0 hypes

FabricScreenLayers is modelled after Minecraft Forge's GuiScreenLayering logic using mixins. Provides utility to layer minecraft gui screens on top of one another.

Examples Usages:

To add a screen on top of another screen:

ScreenLayerManager.pushLayer(new CustomScreen());

To remove a screen:

ScreenLayerManager.popLayer();

To clear all screens:

ScreenLayerManager.clearLayers();

When translating a screen or item on the screen for sizing. It is important to use ScreenLayerManager.getFarPlane()so it does not break mods using layers.

RenderSystem.clear(GL_DEPTH_BUFFER_BIT, Minecraft.ON_OSX); Matrix4f matrix4f = new Matrix4f().setOrtho(0.0F, (float) width, (float) height, 0.0F, 100.0F, ScreenLayerManager.getFarPlane()); RenderSystem.setProjectionMatrix(matrix4f); PoseStack posestack = RenderSystem.getModelViewStack(); posestack.setIdentity(); posestack.translate(0.0D, 0.0D, 1000.0F - ScreenLayerManager.getFarPlane());

No files available for download.

More from Mysticdrew

AutoRun
7,085,170
JourneyMap Web Map
666,788
Nucleus Client Fix
655
Journeymap Additions
38,670
Common Network
19,606,338
JourneyMap Teams
1,865,776

You Might Also Like

Vivecraft
A Minecraft VR mod on a loader of your choice!
9,988,339
Athena
A crossplatform (Forge/Fabric) solution to connected block textures for 1.19.4+
99,799,527
Lodestone
A collection of code used throughout projects under the Lodestar team.
9,914,417
TheDragonLib
A library for most of sokratis12GR's Mods
9,910,232
Multi Mob Library
A library mod containing essential files for Daveyx0's mob mods
9,892,767
FTB Library (Forge) (Legacy)
FTB Library is a library mod that is used for some of our mods.
98,265,314