add Vector3#toInt

This commit is contained in:
dfsek
2021-12-28 21:45:57 -07:00
parent 719260e3da
commit f921e22b5c

View File

@@ -142,6 +142,10 @@ public class Vector3 {
return MathUtil.equals(x, other.getX()) && MathUtil.equals(y, other.getY()) && MathUtil.equals(z, other.getZ());
}
public Vector3Int toInt() {
return Vector3Int.of(getBlockX(), getBlockY(), getBlockZ());
}
public Mutable mutable() {
return new Mutable(x, y, z);
}