<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=World_Saved_Data%2F1.16</id>
	<title>World Saved Data/1.16 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://forge.gemwire.uk/index.php?action=history&amp;feed=atom&amp;title=World_Saved_Data%2F1.16"/>
	<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=World_Saved_Data/1.16&amp;action=history"/>
	<updated>2026-05-23T00:32:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=World_Saved_Data/1.16&amp;diff=2794&amp;oldid=prev</id>
		<title>ShrimpBot: Copy World Saved Data to MC1.16 archive</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=World_Saved_Data/1.16&amp;diff=2794&amp;oldid=prev"/>
		<updated>2021-07-27T04:15:25Z</updated>

		<summary type="html">&lt;p&gt;Copy &lt;a href=&quot;/wiki/World_Saved_Data&quot; class=&quot;mw-redirect&quot; title=&quot;World Saved Data&quot;&gt;Saved Data&lt;/a&gt; to MC1.16 archive&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 04:15, 27 July 2021&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot; &gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Data Storage/1.16]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Data Storage/1.16&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|Category:Data Storage&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>ShrimpBot</name></author>
	</entry>
	<entry>
		<id>https://forge.gemwire.uk/index.php?title=World_Saved_Data/1.16&amp;diff=2744&amp;oldid=prev</id>
		<title>ShrimpBot: Copy World Saved Data to MC1.16 archive</title>
		<link rel="alternate" type="text/html" href="https://forge.gemwire.uk/index.php?title=World_Saved_Data/1.16&amp;diff=2744&amp;oldid=prev"/>
		<updated>2021-07-27T03:59:34Z</updated>

		<summary type="html">&lt;p&gt;Copy &lt;a href=&quot;/wiki/World_Saved_Data&quot; class=&quot;mw-redirect&quot; title=&quot;World Saved Data&quot;&gt;Saved Data&lt;/a&gt; to MC1.16 archive&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;World Saved Data is an alternative to capabilities that stores data per dimension or globally depending on how the context is passed.&lt;br /&gt;
&lt;br /&gt;
==Class Structure==&lt;br /&gt;
&lt;br /&gt;
The class can be broken down into three important methods:&lt;br /&gt;
 - &amp;lt;code&amp;gt;read&amp;lt;/code&amp;gt;: Read the stored nbt data.&lt;br /&gt;
 - &amp;lt;code&amp;gt;write&amp;lt;/code&amp;gt;: Write the object to nbt.&lt;br /&gt;
 - &amp;lt;code&amp;gt;markDirty&amp;lt;/code&amp;gt;: Tell the object to save the data to file.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;read&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;write&amp;lt;/code&amp;gt; methods need to be implemented while &amp;lt;code&amp;gt;markDirty&amp;lt;/code&amp;gt; should be called whenever the data is going to be manipulated. As the class is abstract, it should be subclassed with these three methods implemented.&lt;br /&gt;
&lt;br /&gt;
The super call requires a &amp;lt;code&amp;gt;String&amp;lt;/code&amp;gt; argument. This is used to denote the name of the data file within the dimension itself. For example, if the argument was &amp;quot;pipes&amp;quot;, then a file would be created within each dimension folder called &amp;lt;code&amp;gt;data/pipes.dat&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
==Attaching to a Dimension==&lt;br /&gt;
&lt;br /&gt;
To attach a World Saved Data to a particular dimension, you must have access to an instance of &amp;lt;code&amp;gt;ServerWorld&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;ServerChunkProvider&amp;lt;/code&amp;gt;. From there, you can call the method &amp;lt;code&amp;gt;#getSavedData&amp;lt;/code&amp;gt; which will give you an instance of the &amp;lt;code&amp;gt;DimensionSavedDataManager&amp;lt;/code&amp;gt;: the class that stores all saved data for that particular dimension. You can attach an instance or get the current instance of the data using &amp;lt;code&amp;gt;DimensionSavedDataManager#getOrCreate&amp;lt;/code&amp;gt;. This should be used in most cases to get an instance of the specified data or create a new one if not available. From there, you can operate on your saved data as if it was a capability.&lt;br /&gt;
&lt;br /&gt;
Global attachments are the same by either synchronizing the data between the three worlds or using the same object reference stored in each world.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Data Storage/1.16]]&lt;/div&gt;</summary>
		<author><name>ShrimpBot</name></author>
	</entry>
</feed>