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

Pregen & create

This commit is contained in:
CocoTheOwner
2021-08-16 21:37:53 +02:00
parent a3d6776c02
commit 15721f1279
3 changed files with 110 additions and 0 deletions

View File

@@ -19,6 +19,7 @@
package com.volmit.iris.util.math;
import com.volmit.iris.engine.object.basic.IrisPosition;
import org.bukkit.util.Vector;
public class Position2 {
private int x;
@@ -29,6 +30,11 @@ public class Position2 {
this.z = z;
}
public Position2(Vector center) {
this.x = center.getBlockX();
this.z = center.getBlockZ();
}
public int getX() {
return x;
}