예제 #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));
        }
예제 #2
0
 public NbtViewer(string str)
 {
     InitializeComponent();
     editor.Text = PrintNbt.FormatNbt(str);
 }