-
Recently Browsing
- No registered users viewing this page.
-
Posts
-
By diesieben07 · Posted
GuiComponent also has static methods of blit. -
If it helps, I did something similar recently. This is the overlay class, implementing IIngameOverlay: https://github.com/Syrikal/alchemine/blob/main/src/main/java/syric/alchemine/client/VitaSlimeOverlay.java Here's my overlay registry class, which triggers at the same time I register blocks and items and whatnot: https://github.com/Syrikal/alchemine/blob/aae585ab7d23fd4be688a60642f200ab09a4fe38/src/main/java/syric/alchemine/setup/AlchemineOverlays.java And here's where I turn the overlays on and off (it's triggered by RenderFogEvent because it happens concurrently with some fog stuff, but this is a little hacky.) https://github.com/Syrikal/alchemine/blob/47d9d08a092d3e26441bace8fb5014db0c78c332/src/main/java/syric/alchemine/client/FogEffects.java
-
Done, tnxs Ya, i know that it needs to be static, but i cant call "blit" method if it's static
-
Overwriting vanilla blocks can break other mods that have used mixins to do more refined changes to them. Using mixins is another way to get the behaviour asked for on this thread. But it means it will only work for the blocks that have been modified in advance while the original poster wants to define them dynamically using tags.
-
-
Topics
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.