Mineuniverse
Mods
Fabric Screen Layers

Fabric Screen Layers

MOD
Fabric implementation of Forge's screen layering
by Mysticdrew
Download Claim this project
1,505 downloads
0 likes
Updated Oct 14, 2026
0 hypes
API and Library Utility & QoL
Advertisement Remove ads with Premium →

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());

fabric-screen-layers-1.0.2+1.20.4
MC Fabric, 1.20.4, Quilt
Release 2023-12-14 Get
fabric-screen-layers-1.0.2+1.20.2
MC 1.20.2, Fabric, Quilt
Release 2023-11-11 Get
fabric-screen-layers-1.0.1+23w40a
MC Fabric, 1.20.3-Snapshot, Quilt
Release 2023-10-05 Get
fabric-screen-layers-1.0.1+1.20.2
MC 1.20.2, Fabric, Quilt
Release 2023-09-21 Get
fabric-screen-layers-1.0.1+1.19.2
MC Fabric, 1.19.2, Quilt
Release 2023-08-06 Get
fabric-screen-layers-1.0.1+1.20
MC Fabric, 1.20, Quilt
Release 2023-06-11 Get
fabric-screen-layers-1.0.1+1.19.4
MC 1.19.4, Fabric, Quilt
Release 2023-03-14 Get
fabric-screen-layers-1.0.1+1.19.3
MC 1.19.3, Fabric, Quilt
Release 2023-01-09 Get
fabric-screen-layers-1.0.0+1.19.3
MC 1.19.3, Fabric, Quilt
Release 2022-12-26 Get

More from Mysticdrew

Advertisement Remove ads with Premium →

You Might Also Like