Improved debug support for GlobalPosition objects
This commit is contained in:
parent
e0ff54c4de
commit
b796502b4a
1 changed files with 6 additions and 0 deletions
|
@ -154,4 +154,10 @@ public class GlobalPosition {
|
|||
public int hashCode() {
|
||||
return dimensionId << 24 + (x >> 10) << 12 + y << 10 + (z >> 10);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("GlobalPosition{DIM%d (%d %d %d)}",
|
||||
dimensionId, x, y, z );
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue