Converts this Region to a String which can be converted back with CuboidRegion#fromString(String) later @return The String representation of this Region
()
| 344 | * @return The String representation of this Region |
| 345 | */ |
| 346 | public String toString() { |
| 347 | return getWorld().getName() + " " + start.getX() + " " + start.getY() + " " + start.getZ() + " " |
| 348 | + end.getX() + " " + end.getY() + " " + end.getZ(); |
| 349 | } |
| 350 | |
| 351 | /** |
| 352 | * Converts a String generated by {@link CuboidRegion#toString()} back to a Region |