Package net.glowstone.io.structure
Class StructurePieceStorage
java.lang.Object
net.glowstone.io.structure.StructurePieceStorage
The class responsible for mapping structure piece types to their storage methods and reading and
writing structure piece data using those storage methods.
-
Method Summary
Modifier and TypeMethodDescriptionstatic GlowStructurePiece
loadStructurePiece
(CompoundTag compound) Load a structure piece from the given data tag.static void
saveStructurePiece
(GlowStructurePiece structurePiece, CompoundTag compound) Save a structure piece data to the given compound tag.
-
Method Details
-
loadStructurePiece
Load a structure piece from the given data tag.- Parameters:
compound
- The tag to load from.- Returns:
- The newly constructed structure piece.
- Throws:
IllegalArgumentException
- if there is an error in the data.
-
saveStructurePiece
Save a structure piece data to the given compound tag.- Parameters:
structurePiece
- The structure piece to save.compound
- The target tag.
-