9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 11:39:07 +00:00

Actually gen

This commit is contained in:
Daniel Mills
2021-08-04 02:13:08 -04:00
parent 1155789a75
commit 6f08c1f758
3 changed files with 12 additions and 4 deletions

View File

@@ -18,6 +18,8 @@
package com.volmit.iris.util.math;
import com.volmit.iris.engine.object.IrisPosition;
public class Position2 {
private int x;
private int z;
@@ -82,4 +84,8 @@ public class Position2 {
public Position2 blockToChunk() {
return new Position2(x >> 4, z >> 4);
}
public IrisPosition toIris() {
return new IrisPosition(x, 0, z);
}
}