java.lang.Object
at.syntaxerror.syntaxnbt.internal.RegionUtil
A utility class for reading and writing region files
- Author:
- SyntaxError404
-
Method Summary
Modifier and TypeMethodDescriptionstatic Regiondeserialize(RandomAccessFile input) Reads a region from a stream (NBT format)static voidserialize(Region region, RandomAccessFile output) Writes a region to a stream
-
Method Details
-
serialize
Writes a region to a stream- Parameters:
region- region to be serializedoutput- stream to write to- Throws:
IOException- if an I/O error occured
-
deserialize
Reads a region from a stream (NBT format)- Parameters:
input- stream to read to- Returns:
- the deserialized region
- Throws:
IOException- if an I/O error occured
-