MVWorld wants a toString()! :P

This commit is contained in:
main() 2011-12-31 17:39:25 +01:00
parent 408c09541a
commit 659301a808

View File

@ -976,4 +976,14 @@ public class MVWorld implements MultiverseWorld {
}
return result;
}
@Override
public String toString() {
StringBuilder toStringBuilder = new StringBuilder();
toStringBuilder.append(this.getClass().getSimpleName());
toStringBuilder.append('@');
toStringBuilder.append(this.hashCode());
toStringBuilder.append(" (Name: '").append(this.getName()).append("')");
return toStringBuilder.toString();
}
}