public static string viewNBT(string str, MainWindow window) { NbtViewer viewer = new NbtViewer(str); viewer.Owner = window; viewer.ShowDialog(); return(PrintNbt.NbtToCommand(viewer.text)); }
public NbtViewer(string str) { InitializeComponent(); editor.Text = PrintNbt.FormatNbt(str); }