Mysteryem

debug output from listener

May 6th, 2014
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. giantSpawnerNBT.toString();:
  2.  
  3. TAG_Compound: 10 entries
  4. {
  5. TAG_String("id"): MobSpawner
  6. TAG_Short("MinSpawnDelay"): 200
  7. TAG_Short("RequiredPlayerRange"): 16
  8. TAG_Short("Delay"): -1
  9. TAG_Short("MaxSpawnDelay"): 800
  10. TAG_Short("MaxNearbyEntities"): 6
  11. TAG_Short("SpawnCount"): 4
  12. TAG_Short("SpawnRange"): 4
  13. TAG_Compound("SpawnData"): 3 entries
  14. {
  15. TAG_List("ActiveEffects"): 1 entries of type TAG_Compound
  16. {
  17. TAG_Compound: 3 entries
  18. {
  19. TAG_Int("Duration"): 100
  20. TAG_Byte("Id"): 14
  21. TAG_Byte("ShowParticles"): 0
  22. }
  23. }
  24. TAG_Compound("Riding"): 1 entries
  25. {
  26. TAG_String("id"): Giant
  27. }
  28. TAG_Float("HealF"): 0.0
  29. }
  30. TAG_String("EntityId"): Zombie
  31. }
  32.  
  33. ###############################################################
  34. ###############################################################
  35.  
  36. MobSpawnerBlock weSpawnerBlock = new MobSpawnerBlock();
  37. weSpawnerBlock.setNbtData(giantSpawnerNBT);
  38. weSpawnerBlock.getNbtData().toString();:
  39.  
  40. TAG_Compound("MobSpawner"): 9 entries
  41. {
  42. TAG_Short("MinSpawnDelay"): 200
  43. TAG_Short("RequiredPlayerRange"): 16
  44. TAG_Short("Delay"): -1
  45. TAG_Short("MaxNearbyEntities"): 6
  46. TAG_Short("MaxSpawnDelay"): 800
  47. TAG_Short("SpawnRange"): 4
  48. TAG_Short("SpawnCount"): 4
  49. TAG_Compound("SpawnData"): 3 entries
  50. {
  51. TAG_List("ActiveEffects"): 1 entries of type TAG_Compound
  52. {
  53. TAG_Compound: 3 entries
  54. {
  55. TAG_Int("Duration"): 100
  56. TAG_Byte("Id"): 14
  57. TAG_Byte("ShowParticles"): 0
  58. }
  59. }
  60. TAG_Compound("Riding"): 1 entries
  61. {
  62. TAG_String("id"): Giant
  63. }
  64. TAG_Float("HealF"): 0.0
  65. }
  66. TAG_String("EntityId"): Zombie
  67. }
  68.  
  69. ###############################################################
  70. ###############################################################
  71.  
  72. (After placing the block in the world)
  73. BaseBlock weBlock = bWorld.getBlock(blockLocation);
  74. if (weBlock.hasNbtData()) {
  75. CompoundTag nbtData = weBlock.getNbtData();
  76. }
  77. nbtData.toString();:
  78.  
  79. TAG_Compound("TAG_Compound"): 12 entries
  80. {
  81. TAG_String("id"): MobSpawner
  82. TAG_Short("MinSpawnDelay"): 200
  83. TAG_Short("RequiredPlayerRange"): 16
  84. TAG_Short("Delay"): 0
  85. TAG_Short("MaxSpawnDelay"): 800
  86. TAG_Short("MaxNearbyEntities"): 6
  87. TAG_Short("SpawnCount"): 4
  88. TAG_Short("SpawnRange"): 4
  89. TAG_Int("z"): 246
  90. TAG_Int("y"): 69
  91. TAG_String("EntityId"): Zombie
  92. TAG_Int("x"): -167
  93. }
  94.  
  95. ###############################################################
  96. ###############################################################
  97.  
  98. (Using the variable which stores the above)
  99. MobSpawnerBlock weSpawnerBlock = new MobSpawnerBlock();
  100. weSpawnerBlock.setNbtData(nbtData);
  101. weSpawnerBlock.getNbtData().toString();:
  102.  
  103. TAG_Compound("MobSpawner"): 8 entries
  104. {
  105. TAG_Short("MinSpawnDelay"): 200
  106. TAG_Short("RequiredPlayerRange"): 16
  107. TAG_Short("Delay"): 0
  108. TAG_Short("MaxNearbyEntities"): 6
  109. TAG_Short("MaxSpawnDelay"): 800
  110. TAG_Short("SpawnRange"): 4
  111. TAG_Short("SpawnCount"): 4
  112. TAG_String("EntityId"): Zombie
  113. }
Advertisement
Add Comment
Please, Sign In to add comment