Ladysnake / Cardinal-Components-API

Component API to add external data to objects.
https://www.curseforge.com/minecraft/mc-mods/cardinal-components
MIT License
167 stars 37 forks source link

Synchronization how #146

Closed Ayutac closed 1 year ago

Ayutac commented 1 year ago

Hi there,

I think https://github.com/OnyxStudios/Cardinal-Components-API/wiki/Making-custom-component-providers is mostly outdated. I added AutoSyncedComponent to my Component, do I need to implement anything else? (Because it feels like the sync is only done once upon entering the world)

Pyrofab commented 1 year ago

I do not think it is outdated, but it's specifically about making new component providers (so like, Chunk and Entity are component providers, you could make a new category of objects that can have components attached). The sync is indeed done only once by default, more information is available on the Synchronizing components page

Ayutac commented 1 year ago

Alright, I didn't see the synchronization link, my bad