import com.irtimaled.bbor.common.MathHelper;
import com.irtimaled.bbor.common.TypeHelper;
-import net.minecraft.util.math.BlockPos;
+import net.minecraft.util.math.Vec3d;
+import net.minecraft.util.math.Vec3i;
public class Coords {
private final int x;
this.z = MathHelper.floor(z);
}
- public Coords(BlockPos blockPos) {
- this(blockPos.getX(), blockPos.getY(), blockPos.getZ());
+ public Coords(Vec3i pos) {
+ this(pos.getX(), pos.getY(), pos.getZ());
}
+ public Coords(Vec3d pos) { this(pos.x, pos.y, pos.z); }
+
public int getX() {
return x;
}