mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-12-28 11:39:07 +00:00
Actually gen
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user