From 6f79df83987627b2007bc10da32a7796af5f99b7 Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Mon, 8 Aug 2011 14:39:16 +0200 Subject: [PATCH] Added to toString() method to CuboidRegion. --- .../java/com/sk89q/worldedit/regions/CuboidRegion.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java b/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java index f928a56b7..4fb5adb2b 100644 --- a/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java +++ b/src/main/java/com/sk89q/worldedit/regions/CuboidRegion.java @@ -342,4 +342,14 @@ public class CuboidRegion implements Region { } }; } + + /** + * Returns string representation "( (x, y, z) - (x, y, z) )". + * + * @return string + */ + @Override + public String toString() { + return "( "+getMinimumPoint()+" - "+getMaximumPoint()+" )"; + } }