mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-21 07:46:55 +00:00
Actually gen
This commit is contained in:
1 parent
1155789a75
commit
6f08c1f758
3 files changed
+12
-4
No files matched your search
@@ -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