Interface StructureReader
- All Superinterfaces:
AutoCloseable,Closeable
Represents an abstract Structure Reader.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisCompatible(String minVersion) Checks whether the current server version is compatible with the specified minimum version, formatted in a Strcuture File.read()Reads the structure.static List<StructurePoint>readPoints(String input) Reads a list of Structure Points from a Structure Line.static StructurePointreadRawPoint(String rawInput) Reads a singular point from its string form.static StringTrims a line from a Structure File.
-
Method Details
-
read
Structure read()Reads the structure.- Returns:
- Structure.
-
isCompatible
Checks whether the current server version is compatible with the specified minimum version, formatted in a Strcuture File.- Parameters:
minVersion- Minimum Structure Version- Returns:
- true if compatible, false otherwise
-
trimLine
Trims a line from a Structure File.- Parameters:
point- Line to trim- Returns:
- Trimmed line
-
readPoints
Reads a list of Structure Points from a Structure Line.- Parameters:
input- Structure File Line- Returns:
- List of Structure Points
-
readRawPoint
Reads a singular point from its string form.- Parameters:
rawInput- Raw Point- Returns:
- Structure Point
-