InsideJobAppDelegate.m 755 B

12345678910111213141516171819202122232425262728
  1. //
  2. // InsideJobAppDelegate.m
  3. // InsideJob
  4. //
  5. // Created by Adam Preble on 10/6/10.
  6. // Copyright 2010 Adam Preble. All rights reserved.
  7. //
  8. #import "InsideJobAppDelegate.h"
  9. #import "NBTContainer.h"
  10. #import "IJMinecraftLevel.h"
  11. @implementation InsideJobAppDelegate
  12. @synthesize window;
  13. - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
  14. // Insert code here to initialize your application
  15. // NSData *fileData = [NSData dataWithContentsOfURL:[NSURL fileURLWithPath:@"../../world5-level.dat"]];
  16. // IJMinecraftLevel *level = [IJMinecraftLevel nbtContainerWithData:fileData];
  17. // [level inventory];
  18. // NSData *newData = [level writeData];
  19. // [newData writeToURL:[NSURL fileURLWithPath:@"../../output.nbt"] atomically:NO];
  20. }
  21. @end