Class ClothScreenProvider
java.lang.Object
com.oliveryasuna.mc.coal.cloth.neoforge.ClothScreenProvider
- All Implemented Interfaces:
com.oliveryasuna.mc.coal.api.gui.ScreenProvider
public final class ClothScreenProvider
extends Object
implements com.oliveryasuna.mc.coal.api.gui.ScreenProvider
Cloth Config-backed
ScreenProvider. Priority 40 — sits
below the YACL adapter's 50 so YACL wins when both are installed;
users who want Cloth-primary uninstall YACL.
Cloth's startSubCategory recurses cleanly, so we preserve the full
SchemaCategory hierarchy — unlike the YACL adapter which flattens
deep-nested categories per branch.
Staged edits: each entry's setSaveConsumer writes into a per-screen
staged map; Cloth's saving runnable flushes them via
ConfigManager.set(java.lang.String, java.lang.Object) + ConfigManager.save().
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ClothScreenProvider
public ClothScreenProvider()
-
-
Method Details
-
id
- Specified by:
idin interfacecom.oliveryasuna.mc.coal.api.gui.ScreenProvider
-
priority
public int priority()- Specified by:
priorityin interfacecom.oliveryasuna.mc.coal.api.gui.ScreenProvider
-
create
public net.minecraft.client.gui.screens.Screen create(net.minecraft.client.Minecraft client, net.minecraft.client.gui.screens.Screen parent, com.oliveryasuna.mc.coal.api.config.ConfigManager<?> manager) - Specified by:
createin interfacecom.oliveryasuna.mc.coal.api.gui.ScreenProvider
-