OVERHAULED IGuiData FRAMEWORK SO ALL UPDATES WIRE THROUGH SyncController (deprecated legacy setGuiData)

This commit is contained in:
bigguy345 committed 2026-04-03 18:00:27 +02:00
1 parent 7f63b64a66
commit 1a77728bcd
3 files changed
+110 -15

No files matched your search

@@ -22,6 +22,7 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.server.MinecraftServer;
import noppes.npcs.LogWriter;
import noppes.npcs.client.ClientCacheHandler;
import noppes.npcs.client.gui.util.IGuiData;
import noppes.npcs.controllers.data.PlayerData;
import java.util.HashMap;
@@ -291,6 +292,9 @@ public class SyncController {
}
ClientCacheHandler.updateClientRevision(syncType, revision);
// New GUI data handling approach
IGuiData.notifyUpdate(compound, key, id);
}
@SideOnly(Side.CLIENT)
@@ -305,6 +309,9 @@ public class SyncController {
}
ClientCacheHandler.updateClientRevision(syncType, revision);
// New GUI data handling approach
IGuiData.notifyRemove(key, id);
}
// ═══════════════════════════════════════════════════════════════════════