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()); How to Install Fabric Screen Layers (Mod)
Fabric Screen Layers by mysticdrew is verified for Fabric, Quilt across Minecraft versions 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.2, 1.20.4 (latest release: 1.0.2+1.20.4, file size: 14 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.2, 1.20.4) and platform (Fabric, Quilt).
- Make sure you have the compatible loader or environment installed for Fabric, Quilt.
- Move the downloaded Fabric Screen Layers file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version<p><strong>Requirements:</strong></p>
<ul>
<li>Java 17</li>
<li>Minecraft 1.20.4</li>
<li>Fabric 0.91.2+1.20.4</li>
</ul>
<p><strong>CHANGELOG (2023-12-14-22:35:53):</strong></p>
<p>New in 1.0.2</p>
<ul>
<li>Fixed: breaking of fabric's screen closed event.</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li>Java 17</li>
<li>Minecraft 1.20.2</li>
<li>Fabric 0.89.0+1.20.2</li>
</ul>
<p><strong>CHANGELOG (2023-11-11-19:52:50):</strong></p>
<p>New in 1.0.2</p>
<ul>
<li>Fixed: breaking of fabric's screen closed event.</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li>Java 17</li>
<li>Minecraft 1.19.2</li>
<li>Fabric 0.75.1+1.19.2</li>
</ul>
<p><strong>CHANGELOG (2023-08-06-15:55:30):</strong></p>
<p>New in 1.0.1</p>
<ul>
<li>Fixed: If adding a layer and the current screen is null, mouse would not release.</li>
<li>Fixed: Compat issue with vulcanmod</li>
<li>Added: Example mod in source for devs.</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li>Java 17</li>
<li>Minecraft 1.20-pre1</li>
<li>Fabric 0.80.3+1.20</li>
</ul>
<p><strong>CHANGELOG (2023-06-11-10:58:29):</strong></p>
<p>New in 1.0.1</p>
<ul>
<li>Fixed: If adding a layer and the current screen is null, mouse would not release.</li>
<li>Fixed: Compat issue with vulcanmod</li>
<li>Added: Example mod in source for devs.</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li>Java 17</li>
<li>Minecraft 1.19.4</li>
<li>Fabric 0.75.3+1.19.4</li>
</ul>
<p><strong>CHANGELOG (2023-03-14-12:28:50):</strong></p>
<p>New in 1.0.1</p>
<ul>
<li>Fixed: If adding a layer and the current screen is null, mouse would not release.</li>
<li>Fixed: Compat issue with vulcanmod</li>
<li>Added: Example mod in source for devs.</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li>Java 17</li>
<li>Minecraft 1.19.3</li>
<li>Fabric 0.68.1+1.19.3</li>
</ul>
<p><strong>CHANGELOG (2023-01-09-11:59:03):</strong></p>
<p>New in 1.0.1</p>
<ul>
<li>Fixed: If adding a layer and the current screen is null, mouse would not release.</li>
<li>Fixed: Compat issue with vulcanmod</li>
<li>Added: Example mod in source for devs.</li>
</ul>
<p><strong>Requirements:</strong></p>
<ul>
<li>Java 17</li>
<li>Minecraft 1.19.3</li>
<li>Fabric 0.68.1+1.19.3</li>
</ul>
<p><strong>CHANGELOG (2022-12-26-13:08:30):</strong></p>
<p>New in 1.0.0</p>
<ul>
<li>Initial commit for minecraft 1.19.3.</li>
</ul>