Search results

From Forge Community Wiki
  • <code>SavedData</code> is an alternative to capabilities that stores data per dimension or globally depending on how the context is passed. - <code>save</code>: Write the data to nbt.
    2 KB (269 words) - 05:51, 6 December 2021
  • * [[Getting Started/1.17|Getting Started]] * [[Proper Mod Structuring/1.17|Proper Mod Structuring]]
    4 KB (501 words) - 13:58, 7 December 2021
  • ...plement <code>ICapabilityProvider</code>, if the capability needs to store data persistently it is possible to implement <code><nowiki>ICapabilitySerializa ...to implement <code>ICapabilityProvider</code>, refer to the [[Capabilities/1.17|a Capability]] section.
    5 KB (665 words) - 05:49, 6 December 2021
  • ...nce the provider ceases to exist for any number of reasons, all capability data gets deleted. ...t requires all capabilities to serialize data to disk, in order to persist data even across game restarts. They implement the <code>INBTSerializable</code>
    26 KB (3,707 words) - 05:49, 6 December 2021