Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.39 KB | None | 0 0
  1. VoxelmonObject voxelmonObject = new VoxelmonObject();
  2. VoxelmonInfo info = new VoxelmonInfo();
  3. VoxelmonBreeding breeding = new VoxelmonBreeding();
  4. VoxelmonBaseStats stats = new VoxelmonBaseStats();
  5. VoxelmonEvYield yield = new VoxelmonEvYield();
  6. VoxelmonMoves moves = new VoxelmonMoves();
  7. VoxelmonPokedex pokedex = new VoxelmonPokedex();
  8.  
  9. voxelmonObject.setRegion("kanto");
  10.  
  11. info.setMaleChance(50);
  12. info.setLevelRate("medium_fast");
  13. info.setCatchRate(190);
  14. info.addType("electric");
  15. info.addType("dragon");
  16.  
  17. breeding.setHatchTimeMax(2826);
  18. breeding.setHatchTimeMin(2570);
  19. breeding.addGroup("fairy");
  20. breeding.addGroup("field");
  21.  
  22. stats.setStats(0,0,0,0,0,2,70);
  23. yield.setStats(0,0,0,0,0,2);
  24.  
  25. moves.addLearnableMove("headbutt");
  26. moves.addLevelMove(5, "tackle");
  27. moves.addLevelMove(5, "ember");
  28. moves.addEggMove("scratch");
  29. moves.addEvolutionMove("tail_whip");
  30.  
  31. pokedex.setRegionalId(1);
  32. pokedex.setNationalId(1);
  33. pokedex.setBodyType("quadraped");
  34. pokedex.setHeight(0.7);
  35. pokedex.setWeight(6.9);
  36.  
  37. voxelmonObject.setInfo(info);
  38. voxelmonObject.setBreeding(breeding);
  39. voxelmonObject.setStats(new VoxelmonStats(stats, yield));
  40. voxelmonObject.setMoves(moves);
  41. voxelmonObject.setPokedex(pokedex);
  42.  
  43. Gson gson = new GsonBuilder().disableHtmlEscaping().setFieldNamingPolicy(FieldNamingPolicy.LOWER_CASE_WITH_UNDERSCORES).setPrettyPrinting().create();
  44. System.out.println(gson.toJson(voxelmonObject));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement