Beispiel #1
0
        public static string viewNBT(string str, MainWindow window)
        {
            NbtViewer viewer = new NbtViewer(str);

            viewer.Owner = window;
            viewer.ShowDialog();
            return(PrintNbt.NbtToCommand(viewer.text));
        }
Beispiel #2
0
 public NbtViewer(string str)
 {
     InitializeComponent();
     editor.Text = PrintNbt.FormatNbt(str);
 }