mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-20 07:24:21 +00:00
add Vector3#toInt
This commit is contained in:
1 parent
719260e3da
commit
f921e22b5c
1 file changed
+4
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user