Make block positions copy on click for //size

6925d3715a6c6992d01ab1d4b5564bb9535b6711

Co-Authored-By: Lewis B <17665267+lewisjb@users.noreply.github.com>
This commit is contained in:
N0tMyFaultOG
2020-11-13 21:54:46 +01:00
parent 679b9d203d
commit 0d2c4c0825
7 changed files with 51 additions and 4 deletions

View File

@ -610,4 +610,12 @@ public class BlockVector2 {
public String toString() {
return "(" + x + ", " + z + ")";
}
/**
* Returns a string representation that is supported by the parser.
* @return string
*/
public String toParserString() {
return x + "," + z;
}
}

View File

@ -787,6 +787,14 @@ public abstract class BlockVector3 {
return "(" + getX() + ", " + getY() + ", " + getZ() + ")";
}
/**
* Returns a string representation that is supported by the parser.
* @return string
*/
public String toParserString() {
return getX() + "," + getY() + "," + getZ();
}
//Used by VS fork
public BlockVector3 plus(BlockVector3 other) {
return add(other);

View File

@ -478,4 +478,12 @@ public final class Vector2 {
return "(" + x + ", " + z + ")";
}
/**
* Returns a string representation that is supported by the parser.
* @return string
*/
public String toParserString() {
return x + "," + z;
}
}

View File

@ -639,4 +639,12 @@ public abstract class Vector3 {
return "(" + x + ", " + y + ", " + z + ")";
}
/**
* Returns a string representation that is supported by the parser.
* @return string
*/
public String toParserString() {
return getX() + "," + getY() + "," + getZ();
}
}