You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JBoss925 edited this page Jul 24, 2014
·
1 revision
Serialization Tutorial
This section is a sort-of tutorial section for serializing and unserializing Cuboid objects.
To store a cuboid object, do:
<<config>>.set("CuboidName", <<Cuboid>>);
then
saveConfig();
In order to restore the cuboid object, do:
Cuboid <<CuboidName>> = (Cuboid) <<config>>.get("CuboidName");
Replace <<config>> with an instance of your config.
Replace <<CuboidName>> with the string you want to store your cuboid under or retrieve it with.
Replace <<Cuboid>> with an instance of your cuboid.