bc-minecraft-bedrock-command 1.21.1-1 → 1.21.2-0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (381) hide show
  1. package/lib/src/{Lib/Data/CommandContainer.d.ts → lib/data/command-container.d.ts} +1 -1
  2. package/lib/src/{Lib/Data/CommandContainer.js → lib/data/command-container.js} +1 -1
  3. package/lib/src/lib/data/command-container.js.map +1 -0
  4. package/lib/src/{Lib/Data/CommandData.d.ts → lib/data/command-data.d.ts} +1 -1
  5. package/lib/src/lib/data/command-data.js +160 -0
  6. package/lib/src/lib/data/command-data.js.map +1 -0
  7. package/lib/src/{Lib/Data/CommandInfo.d.ts → lib/data/command-info.d.ts} +1 -1
  8. package/lib/src/{Lib/Data/CommandInfo.js → lib/data/command-info.js} +1 -1
  9. package/lib/src/lib/data/command-info.js.map +1 -0
  10. package/lib/src/{Lib/Data/Edu → lib/data/edu}/ability.d.ts +1 -1
  11. package/lib/src/lib/data/edu/ability.js +51 -0
  12. package/lib/src/lib/data/edu/ability.js.map +1 -0
  13. package/lib/src/{Lib/Data/Edu → lib/data/edu}/classroommode.d.ts +1 -1
  14. package/lib/src/{Lib/Data/Edu → lib/data/edu}/classroommode.js +2 -2
  15. package/lib/src/lib/data/edu/classroommode.js.map +1 -0
  16. package/lib/src/{Lib/Data/Edu → lib/data/edu}/code.d.ts +1 -1
  17. package/lib/src/{Lib/Data/Edu → lib/data/edu}/code.js +2 -2
  18. package/lib/src/lib/data/edu/code.js.map +1 -0
  19. package/lib/src/{Lib/Data/Edu → lib/data/edu}/gamerule.d.ts +1 -1
  20. package/lib/src/{Lib/Data/Edu → lib/data/edu}/gamerule.js +10 -10
  21. package/lib/src/lib/data/edu/gamerule.js.map +1 -0
  22. package/lib/src/{Lib/Data/Edu → lib/data/edu}/immutableworld.d.ts +1 -1
  23. package/lib/src/{Lib/Data/Edu → lib/data/edu}/immutableworld.js +3 -3
  24. package/lib/src/lib/data/edu/immutableworld.js.map +1 -0
  25. package/lib/src/lib/data/index.d.ts +3 -0
  26. package/lib/src/{Lib/Data → lib/data}/index.js +3 -3
  27. package/lib/src/lib/data/index.js.map +1 -0
  28. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/alwaysday.d.ts +1 -1
  29. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/alwaysday.js +3 -3
  30. package/lib/src/lib/data/vanilla/alwaysday.js.map +1 -0
  31. package/lib/src/lib/data/vanilla/camera.d.ts +2 -0
  32. package/lib/src/lib/data/vanilla/camera.js +70 -0
  33. package/lib/src/lib/data/vanilla/camera.js.map +1 -0
  34. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/camerashake.d.ts +1 -1
  35. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/camerashake.js +10 -10
  36. package/lib/src/lib/data/vanilla/camerashake.js.map +1 -0
  37. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/clear.d.ts +1 -1
  38. package/lib/src/lib/data/vanilla/clear.js +24 -0
  39. package/lib/src/lib/data/vanilla/clear.js.map +1 -0
  40. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/clearspawnpoint.d.ts +1 -1
  41. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/clearspawnpoint.js +3 -3
  42. package/lib/src/lib/data/vanilla/clearspawnpoint.js.map +1 -0
  43. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/clone.d.ts +1 -1
  44. package/lib/src/lib/data/vanilla/clone.js +74 -0
  45. package/lib/src/lib/data/vanilla/clone.js.map +1 -0
  46. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/damage.d.ts +1 -1
  47. package/lib/src/lib/data/vanilla/damage.js +30 -0
  48. package/lib/src/lib/data/vanilla/damage.js.map +1 -0
  49. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/daylock.d.ts +1 -1
  50. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/daylock.js +3 -3
  51. package/lib/src/lib/data/vanilla/daylock.js.map +1 -0
  52. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/deop.d.ts +1 -1
  53. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/deop.js +3 -3
  54. package/lib/src/lib/data/vanilla/deop.js.map +1 -0
  55. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/dialogue.d.ts +1 -1
  56. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/dialogue.js +11 -11
  57. package/lib/src/lib/data/vanilla/dialogue.js.map +1 -0
  58. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/difficulty.d.ts +1 -1
  59. package/lib/src/lib/data/vanilla/difficulty.js +16 -0
  60. package/lib/src/lib/data/vanilla/difficulty.js.map +1 -0
  61. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/effect.d.ts +1 -1
  62. package/lib/src/lib/data/vanilla/effect.js +33 -0
  63. package/lib/src/lib/data/vanilla/effect.js.map +1 -0
  64. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/enchant.d.ts +1 -1
  65. package/lib/src/lib/data/vanilla/enchant.js +38 -0
  66. package/lib/src/lib/data/vanilla/enchant.js.map +1 -0
  67. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/event.d.ts +1 -1
  68. package/lib/src/lib/data/vanilla/event.js +18 -0
  69. package/lib/src/lib/data/vanilla/event.js.map +1 -0
  70. package/lib/src/lib/data/vanilla/execute/subcommands.d.ts +2 -0
  71. package/lib/src/lib/data/vanilla/execute/subcommands.js +362 -0
  72. package/lib/src/lib/data/vanilla/execute/subcommands.js.map +1 -0
  73. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/execute.d.ts +1 -1
  74. package/lib/src/lib/data/vanilla/execute.js +56 -0
  75. package/lib/src/lib/data/vanilla/execute.js.map +1 -0
  76. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/fill.d.ts +1 -1
  77. package/lib/src/lib/data/vanilla/fill.js +94 -0
  78. package/lib/src/lib/data/vanilla/fill.js.map +1 -0
  79. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/fog.d.ts +1 -1
  80. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/fog.js +14 -14
  81. package/lib/src/lib/data/vanilla/fog.js.map +1 -0
  82. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/function.d.ts +1 -1
  83. package/lib/src/lib/data/vanilla/function.js +16 -0
  84. package/lib/src/lib/data/vanilla/function.js.map +1 -0
  85. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/gamemode.d.ts +1 -1
  86. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/gamemode.js +4 -4
  87. package/lib/src/lib/data/vanilla/gamemode.js.map +1 -0
  88. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/gamerule.d.ts +1 -1
  89. package/lib/src/lib/data/vanilla/gamerule.js +330 -0
  90. package/lib/src/lib/data/vanilla/gamerule.js.map +1 -0
  91. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/give.d.ts +1 -1
  92. package/lib/src/lib/data/vanilla/give.js +25 -0
  93. package/lib/src/lib/data/vanilla/give.js.map +1 -0
  94. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/hud.d.ts +1 -1
  95. package/lib/src/lib/data/vanilla/hud.js +18 -0
  96. package/lib/src/lib/data/vanilla/hud.js.map +1 -0
  97. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/inputpermission.d.ts +1 -1
  98. package/lib/src/lib/data/vanilla/inputpermission.js +30 -0
  99. package/lib/src/lib/data/vanilla/inputpermission.js.map +1 -0
  100. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/kick.d.ts +1 -1
  101. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/kick.js +3 -3
  102. package/lib/src/lib/data/vanilla/kick.js.map +1 -0
  103. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/kill.d.ts +1 -1
  104. package/lib/src/lib/data/vanilla/kill.js +16 -0
  105. package/lib/src/lib/data/vanilla/kill.js.map +1 -0
  106. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/locate.d.ts +1 -1
  107. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/locate.js +3 -3
  108. package/lib/src/lib/data/vanilla/locate.js.map +1 -0
  109. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/loot.d.ts +1 -1
  110. package/lib/src/lib/data/vanilla/loot.js +437 -0
  111. package/lib/src/lib/data/vanilla/loot.js.map +1 -0
  112. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/me.d.ts +1 -1
  113. package/lib/src/lib/data/vanilla/me.js +16 -0
  114. package/lib/src/lib/data/vanilla/me.js.map +1 -0
  115. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/msg.d.ts +1 -1
  116. package/lib/src/lib/data/vanilla/msg.js +17 -0
  117. package/lib/src/lib/data/vanilla/msg.js.map +1 -0
  118. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/music.d.ts +1 -1
  119. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/music.js +19 -19
  120. package/lib/src/lib/data/vanilla/music.js.map +1 -0
  121. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/op.d.ts +1 -1
  122. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/op.js +3 -3
  123. package/lib/src/lib/data/vanilla/op.js.map +1 -0
  124. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/particle.d.ts +1 -1
  125. package/lib/src/lib/data/vanilla/particle.js +19 -0
  126. package/lib/src/lib/data/vanilla/particle.js.map +1 -0
  127. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/playanimation.d.ts +1 -1
  128. package/lib/src/lib/data/vanilla/playanimation.js +28 -0
  129. package/lib/src/lib/data/vanilla/playanimation.js.map +1 -0
  130. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/playsound.d.ts +1 -1
  131. package/lib/src/lib/data/vanilla/playsound.js +28 -0
  132. package/lib/src/lib/data/vanilla/playsound.js.map +1 -0
  133. package/lib/src/lib/data/vanilla/recipe.d.ts +3 -0
  134. package/lib/src/lib/data/vanilla/recipe.js +28 -0
  135. package/lib/src/lib/data/vanilla/recipe.js.map +1 -0
  136. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/replaceitem.d.ts +1 -1
  137. package/lib/src/lib/data/vanilla/replaceitem.js +86 -0
  138. package/lib/src/lib/data/vanilla/replaceitem.js.map +1 -0
  139. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/ride.d.ts +1 -1
  140. package/lib/src/lib/data/vanilla/ride.js +71 -0
  141. package/lib/src/lib/data/vanilla/ride.js.map +1 -0
  142. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/say.d.ts +1 -1
  143. package/lib/src/lib/data/vanilla/say.js +16 -0
  144. package/lib/src/lib/data/vanilla/say.js.map +1 -0
  145. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/schedule.d.ts +1 -1
  146. package/lib/src/lib/data/vanilla/schedule.js +55 -0
  147. package/lib/src/lib/data/vanilla/schedule.js.map +1 -0
  148. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/scoreboard.d.ts +1 -1
  149. package/lib/src/lib/data/vanilla/scoreboard.js +250 -0
  150. package/lib/src/lib/data/vanilla/scoreboard.js.map +1 -0
  151. package/lib/src/lib/data/vanilla/scriptevent.d.ts +3 -0
  152. package/lib/src/lib/data/vanilla/scriptevent.js +17 -0
  153. package/lib/src/lib/data/vanilla/scriptevent.js.map +1 -0
  154. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/setblock.d.ts +1 -1
  155. package/lib/src/lib/data/vanilla/setblock.js +29 -0
  156. package/lib/src/lib/data/vanilla/setblock.js.map +1 -0
  157. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/setmaxplayers.d.ts +1 -1
  158. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/setmaxplayers.js +3 -3
  159. package/lib/src/lib/data/vanilla/setmaxplayers.js.map +1 -0
  160. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/setworldspawn.d.ts +1 -1
  161. package/lib/src/lib/data/vanilla/setworldspawn.js +18 -0
  162. package/lib/src/lib/data/vanilla/setworldspawn.js.map +1 -0
  163. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/spawnpoint.d.ts +1 -1
  164. package/lib/src/lib/data/vanilla/spawnpoint.js +24 -0
  165. package/lib/src/lib/data/vanilla/spawnpoint.js.map +1 -0
  166. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/spreadplayers.d.ts +1 -1
  167. package/lib/src/lib/data/vanilla/spreadplayers.js +20 -0
  168. package/lib/src/lib/data/vanilla/spreadplayers.js.map +1 -0
  169. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/stopsound.d.ts +1 -1
  170. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/stopsound.js +4 -4
  171. package/lib/src/lib/data/vanilla/stopsound.js.map +1 -0
  172. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/structure.d.ts +1 -1
  173. package/lib/src/lib/data/vanilla/structure.js +131 -0
  174. package/lib/src/lib/data/vanilla/structure.js.map +1 -0
  175. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/summon.d.ts +1 -1
  176. package/lib/src/lib/data/vanilla/summon.js +69 -0
  177. package/lib/src/lib/data/vanilla/summon.js.map +1 -0
  178. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/tag.d.ts +1 -1
  179. package/lib/src/lib/data/vanilla/tag.js +42 -0
  180. package/lib/src/lib/data/vanilla/tag.js.map +1 -0
  181. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/teleport.d.ts +1 -1
  182. package/lib/src/lib/data/vanilla/teleport.js +369 -0
  183. package/lib/src/lib/data/vanilla/teleport.js.map +1 -0
  184. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/tell.d.ts +1 -1
  185. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/tell.js +4 -4
  186. package/lib/src/lib/data/vanilla/tell.js.map +1 -0
  187. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/tellraw.d.ts +1 -1
  188. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/tellraw.js +4 -4
  189. package/lib/src/lib/data/vanilla/tellraw.js.map +1 -0
  190. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/testfor.d.ts +1 -1
  191. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/testfor.js +3 -3
  192. package/lib/src/lib/data/vanilla/testfor.js.map +1 -0
  193. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/testforblock.d.ts +1 -1
  194. package/lib/src/lib/data/vanilla/testforblock.js +20 -0
  195. package/lib/src/lib/data/vanilla/testforblock.js.map +1 -0
  196. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/testforblocks.d.ts +1 -1
  197. package/lib/src/lib/data/vanilla/testforblocks.js +94 -0
  198. package/lib/src/lib/data/vanilla/testforblocks.js.map +1 -0
  199. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/tickingarea.d.ts +1 -1
  200. package/lib/src/lib/data/vanilla/tickingarea.js +78 -0
  201. package/lib/src/lib/data/vanilla/tickingarea.js.map +1 -0
  202. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/time.d.ts +1 -1
  203. package/lib/src/lib/data/vanilla/time.js +62 -0
  204. package/lib/src/lib/data/vanilla/time.js.map +1 -0
  205. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/title.d.ts +1 -1
  206. package/lib/src/lib/data/vanilla/title.js +98 -0
  207. package/lib/src/lib/data/vanilla/title.js.map +1 -0
  208. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/titleraw.d.ts +1 -1
  209. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/titleraw.js +25 -25
  210. package/lib/src/lib/data/vanilla/titleraw.js.map +1 -0
  211. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/toggledownfall.d.ts +1 -1
  212. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/toggledownfall.js +2 -2
  213. package/lib/src/lib/data/vanilla/toggledownfall.js.map +1 -0
  214. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/tp.d.ts +1 -1
  215. package/lib/src/lib/data/vanilla/tp.js +369 -0
  216. package/lib/src/lib/data/vanilla/tp.js.map +1 -0
  217. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/w.d.ts +1 -1
  218. package/lib/src/lib/data/vanilla/w.js +17 -0
  219. package/lib/src/lib/data/vanilla/w.js.map +1 -0
  220. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/weather.d.ts +1 -1
  221. package/lib/src/lib/data/vanilla/weather.js +35 -0
  222. package/lib/src/lib/data/vanilla/weather.js.map +1 -0
  223. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/xp.d.ts +1 -1
  224. package/lib/src/{Lib/Data/Vanilla → lib/data/vanilla}/xp.js +7 -7
  225. package/lib/src/lib/data/vanilla/xp.js.map +1 -0
  226. package/lib/src/lib/documentation/index.d.ts +1 -0
  227. package/lib/src/{Lib/Documentation → lib/documentation}/index.js +1 -1
  228. package/lib/src/lib/documentation/index.js.map +1 -0
  229. package/lib/src/{Lib/Documentation/ParameterType.d.ts → lib/documentation/parameter-type.d.ts} +1 -1
  230. package/lib/src/{Lib/Documentation/ParameterType.js → lib/documentation/parameter-type.js} +59 -56
  231. package/lib/src/lib/documentation/parameter-type.js.map +1 -0
  232. package/lib/src/{Lib/Types/Command/Command.d.ts → lib/types/command/command.d.ts} +3 -3
  233. package/lib/src/{Lib/Types/Command/Command.js → lib/types/command/command.js} +10 -10
  234. package/lib/src/{Lib/Types/Command/Command.js.map → lib/types/command/command.js.map} +1 -1
  235. package/lib/src/{Lib/Types/Command/Functions.d.ts → lib/types/command/functions.d.ts} +3 -3
  236. package/lib/src/lib/types/command/functions.js +199 -0
  237. package/lib/src/{Lib/Types/Command/Functions.js.map → lib/types/command/functions.js.map} +1 -1
  238. package/lib/src/lib/types/command/index.d.ts +4 -0
  239. package/lib/src/{Lib/Types/Command → lib/types/command}/index.js +4 -4
  240. package/lib/src/{Lib/Types/Command → lib/types/command}/index.js.map +1 -1
  241. package/lib/src/{Lib/Types/Command/Parameter.js → lib/types/command/parameter.js} +1 -1
  242. package/lib/src/{Lib/Types/Command/Parameter.js.map → lib/types/command/parameter.js.map} +1 -1
  243. package/lib/src/{Lib/Types/Command/Parse.d.ts → lib/types/command/parse.d.ts} +1 -1
  244. package/lib/src/{Lib/Types/Command/Parse.js → lib/types/command/parse.js} +1 -1
  245. package/lib/src/{Lib/Types/Command/Parse.js.map → lib/types/command/parse.js.map} +1 -1
  246. package/lib/src/lib/types/index.d.ts +5 -0
  247. package/lib/src/{Lib/Types → lib/types}/index.js +5 -5
  248. package/lib/src/{Lib/Types → lib/types}/index.js.map +1 -1
  249. package/lib/src/{Lib/Types/ParameterType.d.ts → lib/types/parameter-type.d.ts} +21 -19
  250. package/lib/src/{Lib/Types/ParameterType.js → lib/types/parameter-type.js} +22 -20
  251. package/lib/src/lib/types/parameter-type.js.map +1 -0
  252. package/lib/src/main.d.ts +3 -3
  253. package/lib/src/main.js +3 -3
  254. package/package.json +3 -3
  255. package/lib/src/Lib/Data/CommandContainer.js.map +0 -1
  256. package/lib/src/Lib/Data/CommandData.js +0 -154
  257. package/lib/src/Lib/Data/CommandData.js.map +0 -1
  258. package/lib/src/Lib/Data/CommandInfo.js.map +0 -1
  259. package/lib/src/Lib/Data/Edu/ability.js +0 -51
  260. package/lib/src/Lib/Data/Edu/ability.js.map +0 -1
  261. package/lib/src/Lib/Data/Edu/classroommode.js.map +0 -1
  262. package/lib/src/Lib/Data/Edu/code.js.map +0 -1
  263. package/lib/src/Lib/Data/Edu/gamerule.js.map +0 -1
  264. package/lib/src/Lib/Data/Edu/immutableworld.js.map +0 -1
  265. package/lib/src/Lib/Data/Vanilla/alwaysday.js.map +0 -1
  266. package/lib/src/Lib/Data/Vanilla/camerashake.js.map +0 -1
  267. package/lib/src/Lib/Data/Vanilla/clear.js +0 -24
  268. package/lib/src/Lib/Data/Vanilla/clear.js.map +0 -1
  269. package/lib/src/Lib/Data/Vanilla/clearspawnpoint.js.map +0 -1
  270. package/lib/src/Lib/Data/Vanilla/clone.js +0 -74
  271. package/lib/src/Lib/Data/Vanilla/clone.js.map +0 -1
  272. package/lib/src/Lib/Data/Vanilla/damage.js +0 -30
  273. package/lib/src/Lib/Data/Vanilla/damage.js.map +0 -1
  274. package/lib/src/Lib/Data/Vanilla/daylock.js.map +0 -1
  275. package/lib/src/Lib/Data/Vanilla/deop.js.map +0 -1
  276. package/lib/src/Lib/Data/Vanilla/dialogue.js.map +0 -1
  277. package/lib/src/Lib/Data/Vanilla/difficulty.js +0 -16
  278. package/lib/src/Lib/Data/Vanilla/difficulty.js.map +0 -1
  279. package/lib/src/Lib/Data/Vanilla/effect.js +0 -33
  280. package/lib/src/Lib/Data/Vanilla/effect.js.map +0 -1
  281. package/lib/src/Lib/Data/Vanilla/enchant.js +0 -38
  282. package/lib/src/Lib/Data/Vanilla/enchant.js.map +0 -1
  283. package/lib/src/Lib/Data/Vanilla/event.js +0 -18
  284. package/lib/src/Lib/Data/Vanilla/event.js.map +0 -1
  285. package/lib/src/Lib/Data/Vanilla/execute/subcommands.d.ts +0 -2
  286. package/lib/src/Lib/Data/Vanilla/execute/subcommands.js +0 -362
  287. package/lib/src/Lib/Data/Vanilla/execute/subcommands.js.map +0 -1
  288. package/lib/src/Lib/Data/Vanilla/execute.js +0 -56
  289. package/lib/src/Lib/Data/Vanilla/execute.js.map +0 -1
  290. package/lib/src/Lib/Data/Vanilla/fill.js +0 -94
  291. package/lib/src/Lib/Data/Vanilla/fill.js.map +0 -1
  292. package/lib/src/Lib/Data/Vanilla/fog.js.map +0 -1
  293. package/lib/src/Lib/Data/Vanilla/function.js +0 -16
  294. package/lib/src/Lib/Data/Vanilla/function.js.map +0 -1
  295. package/lib/src/Lib/Data/Vanilla/gamemode.js.map +0 -1
  296. package/lib/src/Lib/Data/Vanilla/gamerule.js +0 -330
  297. package/lib/src/Lib/Data/Vanilla/gamerule.js.map +0 -1
  298. package/lib/src/Lib/Data/Vanilla/give.js +0 -25
  299. package/lib/src/Lib/Data/Vanilla/give.js.map +0 -1
  300. package/lib/src/Lib/Data/Vanilla/hud.js +0 -18
  301. package/lib/src/Lib/Data/Vanilla/hud.js.map +0 -1
  302. package/lib/src/Lib/Data/Vanilla/inputpermission.js +0 -30
  303. package/lib/src/Lib/Data/Vanilla/inputpermission.js.map +0 -1
  304. package/lib/src/Lib/Data/Vanilla/kick.js.map +0 -1
  305. package/lib/src/Lib/Data/Vanilla/kill.js +0 -16
  306. package/lib/src/Lib/Data/Vanilla/kill.js.map +0 -1
  307. package/lib/src/Lib/Data/Vanilla/locate.js.map +0 -1
  308. package/lib/src/Lib/Data/Vanilla/loot.js +0 -437
  309. package/lib/src/Lib/Data/Vanilla/loot.js.map +0 -1
  310. package/lib/src/Lib/Data/Vanilla/me.js +0 -16
  311. package/lib/src/Lib/Data/Vanilla/me.js.map +0 -1
  312. package/lib/src/Lib/Data/Vanilla/msg.js +0 -17
  313. package/lib/src/Lib/Data/Vanilla/msg.js.map +0 -1
  314. package/lib/src/Lib/Data/Vanilla/music.js.map +0 -1
  315. package/lib/src/Lib/Data/Vanilla/op.js.map +0 -1
  316. package/lib/src/Lib/Data/Vanilla/particle.js +0 -19
  317. package/lib/src/Lib/Data/Vanilla/particle.js.map +0 -1
  318. package/lib/src/Lib/Data/Vanilla/playanimation.js +0 -28
  319. package/lib/src/Lib/Data/Vanilla/playanimation.js.map +0 -1
  320. package/lib/src/Lib/Data/Vanilla/playsound.js +0 -28
  321. package/lib/src/Lib/Data/Vanilla/playsound.js.map +0 -1
  322. package/lib/src/Lib/Data/Vanilla/replaceitem.js +0 -86
  323. package/lib/src/Lib/Data/Vanilla/replaceitem.js.map +0 -1
  324. package/lib/src/Lib/Data/Vanilla/ride.js +0 -71
  325. package/lib/src/Lib/Data/Vanilla/ride.js.map +0 -1
  326. package/lib/src/Lib/Data/Vanilla/say.js +0 -16
  327. package/lib/src/Lib/Data/Vanilla/say.js.map +0 -1
  328. package/lib/src/Lib/Data/Vanilla/schedule.js +0 -55
  329. package/lib/src/Lib/Data/Vanilla/schedule.js.map +0 -1
  330. package/lib/src/Lib/Data/Vanilla/scoreboard.js +0 -250
  331. package/lib/src/Lib/Data/Vanilla/scoreboard.js.map +0 -1
  332. package/lib/src/Lib/Data/Vanilla/setblock.js +0 -29
  333. package/lib/src/Lib/Data/Vanilla/setblock.js.map +0 -1
  334. package/lib/src/Lib/Data/Vanilla/setmaxplayers.js.map +0 -1
  335. package/lib/src/Lib/Data/Vanilla/setworldspawn.js +0 -18
  336. package/lib/src/Lib/Data/Vanilla/setworldspawn.js.map +0 -1
  337. package/lib/src/Lib/Data/Vanilla/spawnpoint.js +0 -24
  338. package/lib/src/Lib/Data/Vanilla/spawnpoint.js.map +0 -1
  339. package/lib/src/Lib/Data/Vanilla/spreadplayers.js +0 -20
  340. package/lib/src/Lib/Data/Vanilla/spreadplayers.js.map +0 -1
  341. package/lib/src/Lib/Data/Vanilla/stopsound.js.map +0 -1
  342. package/lib/src/Lib/Data/Vanilla/structure.js +0 -131
  343. package/lib/src/Lib/Data/Vanilla/structure.js.map +0 -1
  344. package/lib/src/Lib/Data/Vanilla/summon.js +0 -69
  345. package/lib/src/Lib/Data/Vanilla/summon.js.map +0 -1
  346. package/lib/src/Lib/Data/Vanilla/tag.js +0 -42
  347. package/lib/src/Lib/Data/Vanilla/tag.js.map +0 -1
  348. package/lib/src/Lib/Data/Vanilla/teleport.js +0 -369
  349. package/lib/src/Lib/Data/Vanilla/teleport.js.map +0 -1
  350. package/lib/src/Lib/Data/Vanilla/tell.js.map +0 -1
  351. package/lib/src/Lib/Data/Vanilla/tellraw.js.map +0 -1
  352. package/lib/src/Lib/Data/Vanilla/testfor.js.map +0 -1
  353. package/lib/src/Lib/Data/Vanilla/testforblock.js +0 -20
  354. package/lib/src/Lib/Data/Vanilla/testforblock.js.map +0 -1
  355. package/lib/src/Lib/Data/Vanilla/testforblocks.js +0 -94
  356. package/lib/src/Lib/Data/Vanilla/testforblocks.js.map +0 -1
  357. package/lib/src/Lib/Data/Vanilla/tickingarea.js +0 -78
  358. package/lib/src/Lib/Data/Vanilla/tickingarea.js.map +0 -1
  359. package/lib/src/Lib/Data/Vanilla/time.js +0 -62
  360. package/lib/src/Lib/Data/Vanilla/time.js.map +0 -1
  361. package/lib/src/Lib/Data/Vanilla/title.js +0 -98
  362. package/lib/src/Lib/Data/Vanilla/title.js.map +0 -1
  363. package/lib/src/Lib/Data/Vanilla/titleraw.js.map +0 -1
  364. package/lib/src/Lib/Data/Vanilla/toggledownfall.js.map +0 -1
  365. package/lib/src/Lib/Data/Vanilla/tp.js +0 -369
  366. package/lib/src/Lib/Data/Vanilla/tp.js.map +0 -1
  367. package/lib/src/Lib/Data/Vanilla/w.js +0 -17
  368. package/lib/src/Lib/Data/Vanilla/w.js.map +0 -1
  369. package/lib/src/Lib/Data/Vanilla/weather.js +0 -35
  370. package/lib/src/Lib/Data/Vanilla/weather.js.map +0 -1
  371. package/lib/src/Lib/Data/Vanilla/xp.js.map +0 -1
  372. package/lib/src/Lib/Data/index.d.ts +0 -3
  373. package/lib/src/Lib/Data/index.js.map +0 -1
  374. package/lib/src/Lib/Documentation/ParameterType.js.map +0 -1
  375. package/lib/src/Lib/Documentation/index.d.ts +0 -1
  376. package/lib/src/Lib/Documentation/index.js.map +0 -1
  377. package/lib/src/Lib/Types/Command/Functions.js +0 -199
  378. package/lib/src/Lib/Types/Command/index.d.ts +0 -4
  379. package/lib/src/Lib/Types/ParameterType.js.map +0 -1
  380. package/lib/src/Lib/Types/index.d.ts +0 -5
  381. /package/lib/src/{Lib/Types/Command/Parameter.d.ts → lib/types/command/parameter.d.ts} +0 -0
@@ -1,18 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.xp = void 0;
4
- const ParameterType_1 = require("../../Types/ParameterType");
4
+ const parameter_type_1 = require("../../types/parameter-type");
5
5
  /**The xp command */
6
6
  exports.xp = [
7
7
  {
8
8
  name: "xp",
9
9
  documentation: "Adds or removes player experience.",
10
10
  parameters: [
11
- { text: "xp", type: ParameterType_1.ParameterType.keyword, required: true },
12
- { text: "amount", type: ParameterType_1.ParameterType.xp, required: true },
11
+ { text: "xp", type: parameter_type_1.ParameterType.keyword, required: true },
12
+ { text: "amount", type: parameter_type_1.ParameterType.xp, required: true },
13
13
  {
14
14
  text: "player",
15
- type: ParameterType_1.ParameterType.selector,
15
+ type: parameter_type_1.ParameterType.selector,
16
16
  required: false,
17
17
  options: { playerOnly: true },
18
18
  },
@@ -22,11 +22,11 @@ exports.xp = [
22
22
  name: "xp",
23
23
  documentation: "Adds or removes player experience.",
24
24
  parameters: [
25
- { text: "xp", type: ParameterType_1.ParameterType.keyword, required: true },
26
- { text: "amount", type: ParameterType_1.ParameterType.integer, required: true },
25
+ { text: "xp", type: parameter_type_1.ParameterType.keyword, required: true },
26
+ { text: "amount", type: parameter_type_1.ParameterType.integer, required: true },
27
27
  {
28
28
  text: "player",
29
- type: ParameterType_1.ParameterType.selector,
29
+ type: parameter_type_1.ParameterType.selector,
30
30
  required: false,
31
31
  options: { playerOnly: true },
32
32
  },
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xp.js","sourceRoot":"","sources":["../../../../../src/lib/data/vanilla/xp.ts"],"names":[],"mappings":";;;AAAA,+DAA2D;AAG3D,oBAAoB;AACP,QAAA,EAAE,GAAkB;IAC/B;QACE,IAAI,EAAE,IAAI;QACV,aAAa,EAAE,oCAAoC;QACnD,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,8BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC3D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,8BAAa,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC1D;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,8BAAa,CAAC,QAAQ;gBAC5B,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;aAC9B;SACF;KACF;IACD;QACE,IAAI,EAAE,IAAI;QACV,aAAa,EAAE,oCAAoC;QACnD,UAAU,EAAE;YACV,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,8BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC3D,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,8BAAa,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE;YAC/D;gBACE,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,8BAAa,CAAC,QAAQ;gBAC5B,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;aAC9B;SACF;KACF;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./parameter-type";
@@ -15,5 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* Auto generated */
18
- __exportStar(require("./ParameterType"), exports);
18
+ __exportStar(require("./parameter-type"), exports);
19
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/documentation/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oBAAoB;AACpB,mDAAiC"}
@@ -1,2 +1,2 @@
1
- import { ParameterType } from '../Types/ParameterType';
1
+ import { ParameterType } from "../types/parameter-type";
2
2
  export declare const ParameterTypeDocumentation: Partial<Record<ParameterType, string>>;
@@ -2,13 +2,13 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ParameterTypeDocumentation = void 0;
4
4
  const bc_minecraft_bedrock_types_1 = require("bc-minecraft-bedrock-types");
5
- const ParameterType_1 = require("../Types/ParameterType");
5
+ const parameter_type_1 = require("../types/parameter-type");
6
6
  exports.ParameterTypeDocumentation = {
7
- [ParameterType_1.ParameterType.animation]: `## Animation
7
+ [parameter_type_1.ParameterType.animation]: `## Animation
8
8
  An animation is a set of key frames or mathematical expressions that can be used to animate a model. or execute commands in behaviour packs`,
9
- [ParameterType_1.ParameterType.block]: `## Block
9
+ [parameter_type_1.ParameterType.block]: `## Block
10
10
  A block is a single block in the world. It can be placed, removed, and changed.`,
11
- [ParameterType_1.ParameterType.blockStates]: `## Block States
11
+ [parameter_type_1.ParameterType.blockStates]: `## Block States
12
12
  Block states are a way to change the appearance of a block. They are used to change the color of a wool block, the direction a door is facing, or the type of a bed.
13
13
 
14
14
  **Format**
@@ -16,20 +16,20 @@ Block states are specified in the following format:
16
16
  \`\`\`json
17
17
  [property=value]
18
18
  \`\`\``,
19
- [ParameterType_1.ParameterType.boolean]: `## Boolean
19
+ [parameter_type_1.ParameterType.boolean]: `## Boolean
20
20
  A boolean is a value that can be either \`true\` or \`false\`.`,
21
- [ParameterType_1.ParameterType.causeType]: `## Cause Type
21
+ [parameter_type_1.ParameterType.causeType]: `## Cause Type
22
22
  A cause type is a way to specify what kind of damage this entity is taking.
23
23
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.CauseType)}`,
24
- [ParameterType_1.ParameterType.cameraShakeType]: `## Camera Shake Type
24
+ [parameter_type_1.ParameterType.cameraShakeType]: `## Camera Shake Type
25
25
  A camera shake type is a way to specify what kind of camera shake this entity is taking.
26
26
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.CameraShake)}`,
27
- [ParameterType_1.ParameterType.cloneMode]: `## Clone Mode
27
+ [parameter_type_1.ParameterType.cloneMode]: `## Clone Mode
28
28
  A clone mode is a way to specify how the clone command should clone the blocks.
29
29
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Clone)}`,
30
- [ParameterType_1.ParameterType.command]: `## Commands
30
+ [parameter_type_1.ParameterType.command]: `## Commands
31
31
  A command is a way to execute.`,
32
- [ParameterType_1.ParameterType.coordinate]: `## Coordinate
32
+ [parameter_type_1.ParameterType.coordinate]: `## Coordinate
33
33
  A coordinate is a way to specify a location in the world. It can be a relative, absolute, or local coordinate.
34
34
 
35
35
  **Format**
@@ -46,22 +46,22 @@ A relative coordinate is a coordinate that is relative to the current position o
46
46
 
47
47
  ### Local Coordinate
48
48
  A local coordinate is a coordinate that is relative to the current position of the entity executing the command. but moves along the local axis of the entity. (or view point)`,
49
- [ParameterType_1.ParameterType.difficulty]: `## Difficulty
49
+ [parameter_type_1.ParameterType.difficulty]: `## Difficulty
50
50
  A value representing the difficulty of the game.`,
51
- [ParameterType_1.ParameterType.dimension]: `## Dimension
51
+ [parameter_type_1.ParameterType.dimension]: `## Dimension
52
52
  A value representing the dimension of the game.`,
53
- [ParameterType_1.ParameterType.effect]: `## Effect
53
+ [parameter_type_1.ParameterType.effect]: `## Effect
54
54
  A value representing a potion effect.`,
55
- [ParameterType_1.ParameterType.entity]: `## Entity
55
+ [parameter_type_1.ParameterType.entity]: `## Entity
56
56
  The identifier of an entity.`,
57
- [ParameterType_1.ParameterType.executeSubcommand]: `## Execute Subcommand
57
+ [parameter_type_1.ParameterType.executeSubcommand]: `## Execute Subcommand
58
58
  The next statement to check or use in the execute command.`,
59
- [ParameterType_1.ParameterType.event]: `## Event
59
+ [parameter_type_1.ParameterType.event]: `## Event
60
60
  A value representing an world event.`,
61
- [ParameterType_1.ParameterType.fillMode]: `## Fill Mode
61
+ [parameter_type_1.ParameterType.fillMode]: `## Fill Mode
62
62
  What kind of fill mode should be used.
63
63
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Fill)}`,
64
- [ParameterType_1.ParameterType.function]: `## Function
64
+ [parameter_type_1.ParameterType.function]: `## Function
65
65
  The path to a function to run.
66
66
 
67
67
  **Format**
@@ -69,17 +69,17 @@ The path to a function to run.
69
69
  function <path/to/function/file>
70
70
  function "<path/to/function/file>"
71
71
  \`\`\``,
72
- [ParameterType_1.ParameterType.float]: `## Float
72
+ [parameter_type_1.ParameterType.float]: `## Float
73
73
  A float is a number with a decimal point.`,
74
- [ParameterType_1.ParameterType.gamemode]: `## Gamemode
74
+ [parameter_type_1.ParameterType.gamemode]: `## Gamemode
75
75
  A value representing the gamemode of a player.
76
76
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Gamemode)}`,
77
- [ParameterType_1.ParameterType.handType]: `## Hand Type
77
+ [parameter_type_1.ParameterType.handType]: `## Hand Type
78
78
  A value representing the different hand locations of a player.
79
79
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.HandType)}`,
80
- [ParameterType_1.ParameterType.integer]: `## Integer
80
+ [parameter_type_1.ParameterType.integer]: `## Integer
81
81
  An integer is a whole number. no decimal point.`,
82
- [ParameterType_1.ParameterType.integer_range]: `## Integer Range
82
+ [parameter_type_1.ParameterType.integer_range]: `## Integer Range
83
83
  An integer range is a syntax to specify a range of integers.
84
84
 
85
85
  **Format**
@@ -91,86 +91,86 @@ An integer range is a syntax to specify a range of integers.
91
91
 
92
92
  With this syntax you can specify a range of integers. The first number is the minimum value, the second number is the maximum value.
93
93
  If you only specify one number, then that number is the minimum value and the maximum value is unlimited.`,
94
- [ParameterType_1.ParameterType.item]: `## Item
94
+ [parameter_type_1.ParameterType.item]: `## Item
95
95
  The identifier of an item.`,
96
- [ParameterType_1.ParameterType.jsonItem]: `## Json Item Components
96
+ [parameter_type_1.ParameterType.jsonItem]: `## Json Item Components
97
97
  A json item component is a way to specify the components of an item.`,
98
- [ParameterType_1.ParameterType.jsonRawText]: `## Raw Text
98
+ [parameter_type_1.ParameterType.jsonRawText]: `## Raw Text
99
99
  A raw text is a way to specify the text of a text component.`,
100
100
  //[ParameterType.keyword]:``,
101
- [ParameterType_1.ParameterType.lootTable]: `## Loot Table
101
+ [parameter_type_1.ParameterType.lootTable]: `## Loot Table
102
102
  The identifier of a loot table.`,
103
- [ParameterType_1.ParameterType.locateFeature]: `## Locate Feature
103
+ [parameter_type_1.ParameterType.locateFeature]: `## Locate Feature
104
104
  A value representing the different world features.\
105
105
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.LocateFeature)}`,
106
- [ParameterType_1.ParameterType.message]: `## Message
106
+ [parameter_type_1.ParameterType.message]: `## Message
107
107
  A message is a just a bunch of text.`,
108
- [ParameterType_1.ParameterType.maskMode]: `## Mask Mode
108
+ [parameter_type_1.ParameterType.maskMode]: `## Mask Mode
109
109
  A value representing the different mask modes for the clone command.
110
110
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Mask)}`,
111
- [ParameterType_1.ParameterType.mirror]: `## Mirror Mode
111
+ [parameter_type_1.ParameterType.mirror]: `## Mirror Mode
112
112
  A value representing the different mirror modes for the clone command.
113
113
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Mirror)}`,
114
- [ParameterType_1.ParameterType.musicRepeatMode]: `## Music Repeat Mode
114
+ [parameter_type_1.ParameterType.musicRepeatMode]: `## Music Repeat Mode
115
115
  A value representing the different music repeat modes for the music command.
116
116
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.MusicRepeat)}`,
117
- [ParameterType_1.ParameterType.objective]: `## Objective
117
+ [parameter_type_1.ParameterType.objective]: `## Objective
118
118
  The identifier of an objective.`,
119
- [ParameterType_1.ParameterType.oldBlockMode]: `## Old Block Mode
119
+ [parameter_type_1.ParameterType.oldBlockMode]: `## Old Block Mode
120
120
  A value representing the different old block modes for the clone command.
121
121
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.OldBlock)}`,
122
- [ParameterType_1.ParameterType.operation]: `## Operation
122
+ [parameter_type_1.ParameterType.operation]: `## Operation
123
123
  A mathematical operation.
124
124
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Operation)}`,
125
- [ParameterType_1.ParameterType.particle]: `## Particle
125
+ [parameter_type_1.ParameterType.particle]: `## Particle
126
126
  The identifier of a particle.`,
127
- [ParameterType_1.ParameterType.replaceMode]: `## Replace Mode
127
+ [parameter_type_1.ParameterType.replaceMode]: `## Replace Mode
128
128
  A value representing the different replace modes for the clone command.
129
129
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Replace)}`,
130
- [ParameterType_1.ParameterType.rideRules]: `## Ride Rules
130
+ [parameter_type_1.ParameterType.rideRules]: `## Ride Rules
131
131
  A value representing the different ride rules for the ride command.
132
132
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.RideRules)}`,
133
- [ParameterType_1.ParameterType.ridefillMode]: `## Ride Fill Mode
133
+ [parameter_type_1.ParameterType.ridefillMode]: `## Ride Fill Mode
134
134
  A value representing the different ride fill modes for the ride command.
135
135
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.RideFill)}`,
136
- [ParameterType_1.ParameterType.rotation]: `## Rotation
136
+ [parameter_type_1.ParameterType.rotation]: `## Rotation
137
137
  A value representing the rotation of an structure.
138
138
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Rotation)}`,
139
- [ParameterType_1.ParameterType.saveMode]: `## Save Mode
139
+ [parameter_type_1.ParameterType.saveMode]: `## Save Mode
140
140
  A value representing the different save modes.
141
141
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Save)}`,
142
- [ParameterType_1.ParameterType.scanMode]: `## Scan Mode
142
+ [parameter_type_1.ParameterType.scanMode]: `## Scan Mode
143
143
  A value representing the different scan modes.
144
144
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.Scan)}`,
145
- [ParameterType_1.ParameterType.selector]: `## Selector
145
+ [parameter_type_1.ParameterType.selector]: `## Selector
146
146
  A selector is a way to specify a group of entities.
147
147
 
148
148
  Either starts with \`@\` or a string of a fake player.`,
149
- [ParameterType_1.ParameterType.slotType]: `## Slot Type
149
+ [parameter_type_1.ParameterType.slotType]: `## Slot Type
150
150
  A value representing the different slot types.
151
151
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.SlotType)}`,
152
- [ParameterType_1.ParameterType.slotID]: `## Slot ID
152
+ [parameter_type_1.ParameterType.slotID]: `## Slot ID
153
153
  A value that helps to specify a slot.`,
154
- [ParameterType_1.ParameterType.sound]: `## Sound
154
+ [parameter_type_1.ParameterType.sound]: `## Sound
155
155
  The identifier of a sound.`,
156
- [ParameterType_1.ParameterType.string]: `## String
156
+ [parameter_type_1.ParameterType.string]: `## String
157
157
  A string is a text. It needs surrounded by \`"\` or \`'\` if spaces are used.`,
158
- [ParameterType_1.ParameterType.structure]: `## Structure
158
+ [parameter_type_1.ParameterType.structure]: `## Structure
159
159
  The identifier of a structure.`,
160
- [ParameterType_1.ParameterType.structureAnimationMode]: `## Structure Animation Mode
160
+ [parameter_type_1.ParameterType.structureAnimationMode]: `## Structure Animation Mode
161
161
  A value representing the different structure animation modes.
162
162
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.StructureAnimation)}`,
163
- [ParameterType_1.ParameterType.tag]: `## Tag
163
+ [parameter_type_1.ParameterType.tag]: `## Tag
164
164
  The identifier of a tag.`,
165
- [ParameterType_1.ParameterType.teleportRules]: `## Teleport Rules
165
+ [parameter_type_1.ParameterType.teleportRules]: `## Teleport Rules
166
166
  A value representing the different teleport rules.
167
167
  ${sumMode(bc_minecraft_bedrock_types_1.Modes.TeleportRules)}`,
168
- [ParameterType_1.ParameterType.tickingarea]: `## Ticking Area
168
+ [parameter_type_1.ParameterType.tickingarea]: `## Ticking Area
169
169
  The identifier of a ticking area.`,
170
- [ParameterType_1.ParameterType.time]: `## Time
170
+ [parameter_type_1.ParameterType.time]: `## Time
171
171
  A value representing the time of the game.`,
172
172
  //[ParameterType.unknown]:``,
173
- [ParameterType_1.ParameterType.xp]: `## XP
173
+ [parameter_type_1.ParameterType.xp]: `## XP
174
174
  XP is a way to track the progress of a player.
175
175
  It is used to unlock new features and abilities in the game. XP is gained by various actions.
176
176
  XP can also be used as a progress bar / currency in custom commands.
@@ -183,6 +183,9 @@ A value representing the time of the game.`,
183
183
  Where \`1L\` is 1 level and \`1000\` is 1000 points.`,
184
184
  };
185
185
  function sumMode(mode) {
186
- return mode.modes.slice(0, 20).map((m) => ` - \`${m.name}\``).join("\r\n");
186
+ return mode.modes
187
+ .slice(0, 20)
188
+ .map((m) => ` - \`${m.name}\``)
189
+ .join("\r\n");
187
190
  }
188
- //# sourceMappingURL=ParameterType.js.map
191
+ //# sourceMappingURL=parameter-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameter-type.js","sourceRoot":"","sources":["../../../../src/lib/documentation/parameter-type.ts"],"names":[],"mappings":";;;AAAA,2EAAmD;AACnD,4DAAwD;AAG3C,QAAA,0BAA0B,GAA2C;IAChF,CAAC,8BAAa,CAAC,SAAS,CAAC,EAAE;4IAC+G;IAE1I,CAAC,8BAAa,CAAC,KAAK,CAAC,EAAE;gFACuD;IAE9E,CAAC,8BAAa,CAAC,WAAW,CAAC,EAAE;;;;;;;OAOxB;IAEL,CAAC,8BAAa,CAAC,OAAO,CAAC,EAAE;+DACoC;IAE7D,CAAC,8BAAa,CAAC,SAAS,CAAC,EAAE;;EAE3B,OAAO,CAAC,kCAAK,CAAC,SAAS,CAAC,EAAE;IAE1B,CAAC,8BAAa,CAAC,eAAe,CAAC,EAAE;;EAEjC,OAAO,CAAC,kCAAK,CAAC,WAAW,CAAC,EAAE;IAE5B,CAAC,8BAAa,CAAC,SAAS,CAAC,EAAE;;EAE3B,OAAO,CAAC,kCAAK,CAAC,KAAK,CAAC,EAAE;IAEtB,CAAC,8BAAa,CAAC,OAAO,CAAC,EAAE;+BACI;IAE7B,CAAC,8BAAa,CAAC,UAAU,CAAC,EAAE;;;;;;;;;;;;;;;;+KAgBiJ;IAE7K,CAAC,8BAAa,CAAC,UAAU,CAAC,EAAE;iDACmB;IAE/C,CAAC,8BAAa,CAAC,SAAS,CAAC,EAAE;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CACY;IAEpC,CAAC,8BAAa,CAAC,KAAK,CAAC,EAAE;2BACE;IAEzB,CAAC,8BAAa,CAAC,MAAM,CAAC,EAAE;8EACoD;IAE5E,CAAC,8BAAa,CAAC,SAAS,CAAC,EAAE;+BACE;IAE7B,CAAC,8BAAa,CAAC,sBAAsB,CAAC,EAAE;;EAExC,OAAO,CAAC,kCAAK,CAAC,kBAAkB,CAAC,EAAE;IAEnC,CAAC,8BAAa,CAAC,GAAG,CAAC,EAAE;yBACE;IAEvB,CAAC,8BAAa,CAAC,aAAa,CAAC,EAAE;;EAE/B,OAAO,CAAC,kCAAK,CAAC,aAAa,CAAC,EAAE;IAE9B,CAAC,8BAAa,CAAC,WAAW,CAAC,EAAE;kCACG;IAEhC,CAAC,8BAAa,CAAC,IAAI,CAAC,EAAE;2CACmB;IAEzC,6BAA6B;IAE7B,CAAC,8BAAa,CAAC,EAAE,CAAC,EAAE;;;;;;;;;;uDAUiC;CACtD,CAAC;AAEF,SAAS,OAAO,CAAC,IAAiB;IAChC,OAAO,IAAI,CAAC,KAAK;SACd,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC;SACZ,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC;SAC9B,IAAI,CAAC,MAAM,CAAC,CAAC;AAClB,CAAC"}
@@ -1,6 +1,6 @@
1
- import { CommandInfo } from "../../Data";
2
- import { ParameterType } from "../ParameterType";
3
- import { Parameter } from "./Parameter";
1
+ import { CommandInfo } from "../../data";
2
+ import { ParameterType } from "../parameter-type";
3
+ import { Parameter } from "./parameter";
4
4
  /**A class that helps interpreting written commands.*/
5
5
  export declare class Command {
6
6
  private _matches;
@@ -1,16 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Command = void 0;
4
- const ParameterType_1 = require("../ParameterType");
5
- const Functions_1 = require("./Functions");
6
- const Parse_1 = require("./Parse");
4
+ const parameter_type_1 = require("../parameter-type");
5
+ const functions_1 = require("./functions");
6
+ const parse_1 = require("./parse");
7
7
  /**A class that helps interpreting written commands.*/
8
8
  class Command {
9
9
  /**Creates a new instance of a command*/
10
10
  constructor() {
11
11
  this._matches = undefined;
12
12
  this.parameters = [];
13
- this.subType = ParameterType_1.ParameterType.command;
13
+ this.subType = parameter_type_1.ParameterType.command;
14
14
  }
15
15
  /**Gets the keyword of this command (first parameter)
16
16
  *@returns The keyword or "" is command is empty*/
@@ -23,7 +23,7 @@ class Command {
23
23
  * @param edu Whether or not to include education data
24
24
  * @returns An array with commands info*/
25
25
  getCommandData(edu = false) {
26
- return (0, Functions_1.getCommandData)(this.getKeyword(), edu, this.subType);
26
+ return (0, functions_1.getCommandData)(this.getKeyword(), edu, this.subType);
27
27
  }
28
28
  /**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
29
29
  * @param edu Whether or not to include education data
@@ -31,7 +31,7 @@ class Command {
31
31
  getBestMatch(edu = false) {
32
32
  if (this._matches)
33
33
  return this._matches;
34
- return (this._matches = (0, Functions_1.getBestMatches)(this, edu));
34
+ return (this._matches = (0, functions_1.getBestMatches)(this, edu));
35
35
  }
36
36
  /**Gets the subcommand if there is any present
37
37
  * @param edu Whether or not to include education data
@@ -41,7 +41,7 @@ class Command {
41
41
  for (var I = 0; I < Matches.length; I++) {
42
42
  const Item = Matches[I];
43
43
  const index = Item.parameters.findIndex((x) => {
44
- return x.type === ParameterType_1.ParameterType.command || x.type === ParameterType_1.ParameterType.executeSubcommand;
44
+ return x.type === parameter_type_1.ParameterType.command || x.type === parameter_type_1.ParameterType.executeSubcommand;
45
45
  });
46
46
  if (index > -1 && index < this.parameters.length) {
47
47
  const out = this.slice(index);
@@ -111,11 +111,11 @@ class Command {
111
111
  offset += oldLength - text.length;
112
112
  //Trim end
113
113
  text = text.trimEnd();
114
- const builder = new Parse_1.ParameterBuilder(offset);
115
- (0, Parse_1.GetParameters)(text, builder);
114
+ const builder = new parse_1.ParameterBuilder(offset);
115
+ (0, parse_1.GetParameters)(text, builder);
116
116
  Out.parameters = builder.items;
117
117
  return Out;
118
118
  }
119
119
  }
120
120
  exports.Command = Command;
121
- //# sourceMappingURL=Command.js.map
121
+ //# sourceMappingURL=command.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Command.js","sourceRoot":"","sources":["../../../../../src/Lib/Types/Command/Command.ts"],"names":[],"mappings":";;;AACA,oDAAiD;AACjD,2CAA6D;AAE7D,mCAA0D;AAE1D,sDAAsD;AACtD,MAAa,OAAO;IAOlB,wCAAwC;IACxC;QACE,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;QAC1B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,6BAAa,CAAC,OAAO,CAAC;IACvC,CAAC;IAED;sDACkD;IAClD,UAAU;QACR,IAAI,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO,EAAE,CAAC;QAE3C,OAAO,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IACjC,CAAC;IAED;;6CAEyC;IACzC,cAAc,CAAC,MAAe,KAAK;QACjC,OAAO,IAAA,0BAAc,EAAC,IAAI,CAAC,UAAU,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;6CAEyC;IACzC,YAAY,CAAC,MAAe,KAAK;QAC/B,IAAI,IAAI,CAAC,QAAQ;YAAE,OAAO,IAAI,CAAC,QAAQ,CAAC;QAExC,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAA,0BAAc,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;IACrD,CAAC;IAED;;sEAEkE;IAClE,aAAa,CAAC,MAAe,KAAK;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;QAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,C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AG,CAAC;IACb,CAAC;CACF;AAxID,0BAwIC"}
@@ -1,6 +1,6 @@
1
- import { Command } from "./Command";
2
- import { CommandInfo } from "../../Data";
3
- import { ParameterType } from "../ParameterType";
1
+ import { Command } from "./command";
2
+ import { CommandInfo } from "../../data";
3
+ import { ParameterType } from "../parameter-type";
4
4
  /**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
5
5
  * @param command The command to search through
6
6
  * @param edu Whether or not to include education data
@@ -0,0 +1,199 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getBestMatches = getBestMatches;
4
+ exports.isMatch = isMatch;
5
+ exports.checkRequiredParameterLength = checkRequiredParameterLength;
6
+ exports.getCommandData = getCommandData;
7
+ exports.getCommandSubdata = getCommandSubdata;
8
+ exports.hasCommandData = hasCommandData;
9
+ exports.IsCommand = IsCommand;
10
+ exports.IsExecuteSubcommand = IsExecuteSubcommand;
11
+ const data_1 = require("../../data");
12
+ const bc_minecraft_bedrock_types_1 = require("bc-minecraft-bedrock-types");
13
+ const parameter_type_1 = require("../parameter-type");
14
+ /**Gets the best matching commandInfo data, if multiple are returned, it unclear or somewhere not fully specified
15
+ * @param command The command to search through
16
+ * @param edu Whether or not to include education data
17
+ * @returns An array with commands info*/
18
+ function getBestMatches(command, edu = false) {
19
+ let m = command.getCommandData(edu);
20
+ if (m.length === 1)
21
+ return m;
22
+ m = m.filter((x) => isMatch(command, x, edu));
23
+ if (m.length > 1) {
24
+ const n = m.filter((x) => checkRequiredParameterLength(command, x));
25
+ if (n.length === 0)
26
+ return m;
27
+ return n;
28
+ }
29
+ return m;
30
+ }
31
+ /**Checks if the command matches the commandInfo
32
+ * @param command The command to examine
33
+ * @param data The commandInfo serving as the basis
34
+ * @param edu If education content should be used or not
35
+ * @returns true or false is this commandInfo matches the command*/
36
+ function isMatch(command, data, edu = false) {
37
+ var _a, _b, _c;
38
+ let Limit = data.parameters.length;
39
+ if (Limit > command.parameters.length) {
40
+ Limit = command.parameters.length;
41
+ }
42
+ for (let I = 0; I < Limit; I++) {
43
+ const commandPar = command.parameters[I];
44
+ const commandText = commandPar.text;
45
+ const patPar = data.parameters[I];
46
+ if ((_b = (_a = patPar.options) === null || _a === void 0 ? void 0 : _a.acceptedValues) === null || _b === void 0 ? void 0 : _b.includes(commandText)) {
47
+ continue;
48
+ }
49
+ const match = Matches[patPar.type];
50
+ if (match) {
51
+ if (!match(commandText))
52
+ return false;
53
+ continue;
54
+ }
55
+ switch (patPar.type) {
56
+ case parameter_type_1.ParameterType.block:
57
+ case parameter_type_1.ParameterType.entity:
58
+ case parameter_type_1.ParameterType.event:
59
+ case parameter_type_1.ParameterType.function:
60
+ case parameter_type_1.ParameterType.item:
61
+ case parameter_type_1.ParameterType.message:
62
+ case parameter_type_1.ParameterType.objective:
63
+ case parameter_type_1.ParameterType.particle:
64
+ case parameter_type_1.ParameterType.sound:
65
+ case parameter_type_1.ParameterType.tag:
66
+ case parameter_type_1.ParameterType.tickingarea:
67
+ case parameter_type_1.ParameterType.unknown:
68
+ //TODO program matches types for these
69
+ continue;
70
+ case parameter_type_1.ParameterType.command:
71
+ if (!IsCommand(commandText, edu))
72
+ return false;
73
+ break;
74
+ case parameter_type_1.ParameterType.effect:
75
+ if (commandText === "clear")
76
+ return false;
77
+ break;
78
+ case parameter_type_1.ParameterType.executeSubcommand:
79
+ if (!IsExecuteSubcommand(commandText))
80
+ return false;
81
+ break;
82
+ case parameter_type_1.ParameterType.keyword:
83
+ if (commandText != patPar.text)
84
+ return false;
85
+ break;
86
+ case parameter_type_1.ParameterType.selector:
87
+ const { wildcard, allowFakePlayers } = (_c = patPar.options) !== null && _c !== void 0 ? _c : {};
88
+ if (!bc_minecraft_bedrock_types_1.Minecraft.Selector.Selector.isSelector(commandText, wildcard, allowFakePlayers))
89
+ return false;
90
+ break;
91
+ }
92
+ }
93
+ return true;
94
+ }
95
+ const Matches = {
96
+ [parameter_type_1.ParameterType.blockStates]: (item) => bc_minecraft_bedrock_types_1.General.Json.isArray(item),
97
+ [parameter_type_1.ParameterType.boolean]: (item) => bc_minecraft_bedrock_types_1.General.Boolean.is(item),
98
+ [parameter_type_1.ParameterType.cameraShakeType]: (item) => bc_minecraft_bedrock_types_1.Modes.CameraShake.isValue(item),
99
+ [parameter_type_1.ParameterType.causeType]: (item) => bc_minecraft_bedrock_types_1.Modes.CauseType.isValue(item),
100
+ [parameter_type_1.ParameterType.cloneMode]: (item) => bc_minecraft_bedrock_types_1.Modes.Clone.isValue(item),
101
+ [parameter_type_1.ParameterType.coordinate]: (item) => bc_minecraft_bedrock_types_1.Minecraft.Coordinate.is(item),
102
+ [parameter_type_1.ParameterType.difficulty]: (item) => bc_minecraft_bedrock_types_1.Modes.Difficulty.isValue(item),
103
+ [parameter_type_1.ParameterType.fillMode]: (item) => bc_minecraft_bedrock_types_1.Modes.Fill.isValue(item),
104
+ [parameter_type_1.ParameterType.float]: (item) => bc_minecraft_bedrock_types_1.General.Float.is(item),
105
+ [parameter_type_1.ParameterType.gamemode]: (item) => bc_minecraft_bedrock_types_1.Modes.Gamemode.isValue(item),
106
+ [parameter_type_1.ParameterType.handType]: (item) => bc_minecraft_bedrock_types_1.Modes.HandType.isValue(item),
107
+ [parameter_type_1.ParameterType.hudElement]: (item) => bc_minecraft_bedrock_types_1.Modes.HudElement.isValue(item),
108
+ [parameter_type_1.ParameterType.hudVisibility]: (item) => bc_minecraft_bedrock_types_1.Modes.HudVisibility.isValue(item),
109
+ [parameter_type_1.ParameterType.integer]: (item) => bc_minecraft_bedrock_types_1.General.Integer.is(item),
110
+ [parameter_type_1.ParameterType.jsonItem]: (item) => bc_minecraft_bedrock_types_1.General.Json.isObject(item),
111
+ [parameter_type_1.ParameterType.jsonRawText]: (item) => bc_minecraft_bedrock_types_1.General.Json.isObject(item),
112
+ [parameter_type_1.ParameterType.locateFeature]: (item) => bc_minecraft_bedrock_types_1.Modes.LocateFeature.isValue(item),
113
+ [parameter_type_1.ParameterType.lootTable]: (item) => bc_minecraft_bedrock_types_1.General.String.is(item),
114
+ [parameter_type_1.ParameterType.maskMode]: (item) => bc_minecraft_bedrock_types_1.Modes.Mask.isValue(item),
115
+ [parameter_type_1.ParameterType.mirror]: (item) => bc_minecraft_bedrock_types_1.Modes.Mirror.isValue(item),
116
+ [parameter_type_1.ParameterType.musicRepeatMode]: (item) => bc_minecraft_bedrock_types_1.Modes.MusicRepeat.isValue(item),
117
+ [parameter_type_1.ParameterType.oldBlockMode]: (item) => bc_minecraft_bedrock_types_1.Modes.OldBlock.isValue(item),
118
+ [parameter_type_1.ParameterType.operation]: (item) => bc_minecraft_bedrock_types_1.Modes.Operation.isValue(item),
119
+ [parameter_type_1.ParameterType.replaceMode]: (item) => bc_minecraft_bedrock_types_1.Modes.Replace.isValue(item),
120
+ [parameter_type_1.ParameterType.rideRules]: (item) => bc_minecraft_bedrock_types_1.Modes.RideRules.isValue(item),
121
+ [parameter_type_1.ParameterType.rotation]: (item) => bc_minecraft_bedrock_types_1.Modes.Rotation.isValue(item),
122
+ [parameter_type_1.ParameterType.saveMode]: (item) => bc_minecraft_bedrock_types_1.Modes.Save.isValue(item),
123
+ [parameter_type_1.ParameterType.slotID]: (item) => bc_minecraft_bedrock_types_1.General.Integer.is(item),
124
+ [parameter_type_1.ParameterType.slotType]: (item) => bc_minecraft_bedrock_types_1.Modes.SlotType.isValue(item),
125
+ [parameter_type_1.ParameterType.string]: (item) => bc_minecraft_bedrock_types_1.General.String.is(item),
126
+ [parameter_type_1.ParameterType.structureAnimationMode]: (item) => bc_minecraft_bedrock_types_1.Modes.StructureAnimation.isValue(item),
127
+ [parameter_type_1.ParameterType.teleportRules]: (item) => bc_minecraft_bedrock_types_1.Modes.TeleportRules.isValue(item),
128
+ [parameter_type_1.ParameterType.time]: (item) => bc_minecraft_bedrock_types_1.Modes.Time.isValue(item),
129
+ [parameter_type_1.ParameterType.xp]: (item) => bc_minecraft_bedrock_types_1.Minecraft.XP.is(item),
130
+ };
131
+ function checkRequiredParameterLength(command, data) {
132
+ let required = 0;
133
+ for (let I = 0; I < data.parameters.length; I++) {
134
+ const par = data.parameters[I];
135
+ if (par.required) {
136
+ required++;
137
+ }
138
+ else {
139
+ break;
140
+ }
141
+ }
142
+ if (command.parameters.length < required) {
143
+ return false;
144
+ }
145
+ return true;
146
+ }
147
+ /**Retrieves the command data related to the given keyword
148
+ * @param name The command to retrieve
149
+ * @param edu Whether or not to include education commands
150
+ * @returns An array with commands info*/
151
+ function getCommandData(name, edu = false, type = parameter_type_1.ParameterType.command) {
152
+ const out = [];
153
+ if (type == parameter_type_1.ParameterType.executeSubcommand) {
154
+ Add(out, data_1.CommandData.ExecuteSubcommands[name]);
155
+ }
156
+ if (type == parameter_type_1.ParameterType.command) {
157
+ Add(out, data_1.CommandData.Vanilla[name]);
158
+ if (edu)
159
+ Add(out, data_1.CommandData.Edu[name]);
160
+ }
161
+ return out;
162
+ }
163
+ function getCommandSubdata(name, type) {
164
+ const out = [];
165
+ return out;
166
+ }
167
+ /**Checks if the given commandData is present
168
+ * @param name The command to retrieve
169
+ * @param edu Whether or not to include education commands
170
+ * @returns An array with commands info*/
171
+ function hasCommandData(name, edu = false) {
172
+ if (data_1.CommandData.Vanilla[name])
173
+ return true;
174
+ if (edu && data_1.CommandData.Edu[name])
175
+ return true;
176
+ return false;
177
+ }
178
+ /**Checks if the given commandData is present
179
+ * @param command The command to retrieve
180
+ * @param edu Whether or not to include education commands
181
+ * @returns True or false*/
182
+ function IsCommand(command, edu = false) {
183
+ if (data_1.CommandData.Vanilla[command])
184
+ return true;
185
+ if (edu && data_1.CommandData.Edu[command])
186
+ return true;
187
+ return false;
188
+ }
189
+ /** Checks if the given command is a execute sub command
190
+ * @param command The command to check
191
+ * @returns True or false*/
192
+ function IsExecuteSubcommand(command) {
193
+ return data_1.CommandData.ExecuteSubcommands[command] != undefined;
194
+ }
195
+ function Add(receiver, items) {
196
+ if (items)
197
+ receiver.push(...items);
198
+ }
199
+ //# sourceMappingURL=functions.js.map