This repository has been archived by the owner on Aug 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
raw.json
7136 lines (7136 loc) · 264 KB
/
raw.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"DirCollection": [
{
"DirName": "Basic",
"AllClass": [
{
"ClassName": "Block",
"AllFunc": [
{
"Description": "获取方块对应的NBT对象",
"FuncName": "getNbt",
"ReturnDescription": "方块的NBT对象",
"IsStatic": false,
"Params": [],
"ReturnType": "NbtCompound"
},
{
"Description": "写入方块对应的NBT对象",
"FuncName": "setNbt",
"ReturnDescription": "是否成功写入",
"IsStatic": false,
"Params": [
{
"Description": "NBT对象",
"ParamType": "NbtCompound",
"ParamName": "nbt",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "获取方块的BlockState\r\n方便函数,协助解析方块BlockState并转换为Object,方便读取与解析\r\n等价于脚本执行block.getNbt().getTag(\"states\").toObject()",
"FuncName": "getBlockState",
"ReturnDescription": "方块的BlockState",
"IsStatic": false,
"Params": [],
"ReturnType": "Object"
},
{
"Description": "写入方块对应的NBT对象",
"FuncName": "setNbt",
"ReturnDescription": "是否成功写入",
"IsStatic": false,
"Params": [
{
"Description": "NBT对象",
"ParamType": "NbtCompound",
"ParamName": "nbt",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "判断方块是否拥有容器",
"FuncName": "hasContainer",
"ReturnDescription": "这个方块是否拥有容器",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "获取方块所拥有的容器对象",
"FuncName": "getContainer",
"ReturnDescription": "这个方块所拥有的容器对象",
"IsStatic": false,
"Params": [],
"ReturnType": "Container"
},
{
"Description": "判断方块是否拥有方块实体",
"FuncName": "hasBlockEntity",
"ReturnDescription": "这个方块是否拥有方块实体",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "获取方块所拥有的方块实体",
"FuncName": "getBlockEntity",
"ReturnDescription": "这个方块所拥有的方块实体",
"IsStatic": false,
"Params": [],
"ReturnType": "BlockEntity"
},
{
"Description": "删除方块所拥有的方块实体",
"FuncName": "removeBlockEntity",
"ReturnDescription": "是否成功删除",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
}
],
"AllProperty": [
{
"PropertyName": "name",
"Description": "游戏内显示的方块名称",
"PropertyType": "String",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "type",
"Description": "方块标准类型名\t",
"PropertyType": "String",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "id",
"Description": "方块的游戏内id",
"PropertyType": "Integer",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "pos",
"Description": "方块所在坐标",
"PropertyType": "IntPos",
"IsReadonly": true,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "方块对象"
},
{
"ClassName": "BlockEntity",
"AllFunc": [
{
"Description": "获取方块实体对应的NBT对象",
"FuncName": "getNbt",
"ReturnDescription": "方块实体的NBT对象",
"IsStatic": false,
"Params": [],
"ReturnType": "NbtCompound"
},
{
"Description": "写入方块实体对应的NBT对象",
"FuncName": "setNbt",
"ReturnDescription": "是否成功写入",
"IsStatic": false,
"Params": [
{
"Description": "",
"ParamType": "NbtCompound",
"ParamName": "nbt",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "获取方块实体对应的方块对象",
"FuncName": "getBlock",
"ReturnDescription": "方块实体对应的方块对象",
"IsStatic": false,
"Params": [],
"ReturnType": "Block"
}
],
"AllProperty": [
{
"PropertyName": "pos",
"Description": "方块实体对应方块所在的坐标",
"PropertyType": "IntPos",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "type",
"Description": "方块实体对象的类型ID",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "📮 方块实体对象 API\r\n在LXL中,使用「方块实体对象」来操作和获取与特定方块关联的附加数据。"
},
{
"ClassName": "Container",
"AllFunc": [
{
"Description": "放入物品对象到容器中 ",
"FuncName": "addItem",
"ReturnDescription": "是否成功增加",
"IsStatic": false,
"Params": [
{
"Description": "待增加的物品对象",
"ParamType": "Item",
"ParamName": "item",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "放入物品对象到容器的第一个空格子",
"FuncName": "addItemToFirstEmptySlot",
"ReturnDescription": "是否成功增加",
"IsStatic": false,
"Params": [
{
"Description": "待增加的物品对象",
"ParamType": "Item",
"ParamName": "item",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "检查容器中是否(有空间)可以放入此物品 ",
"FuncName": "hasRoomFor",
"ReturnDescription": "是否可以放入",
"IsStatic": false,
"Params": [
{
"Description": "待放入的物品对象",
"ParamType": "Item",
"ParamName": "item",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "减少容器中的某个物品对象",
"FuncName": "removeItem",
"ReturnDescription": "是否成功减少",
"IsStatic": false,
"Params": [
{
"Description": "减少的物品对象所在的格子序号",
"ParamType": "Integer",
"ParamName": "index",
"Optional": false
},
{
"Description": "减少的数量。如果大于等于此格子物品堆叠的数量,则物品堆将被整个清除",
"ParamType": "Integer",
"ParamName": "count",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "获取容器某个格子的物品对象",
"FuncName": "getItem",
"ReturnDescription": "格子位置的物品对象",
"IsStatic": false,
"Params": [
{
"Description": "待获取的格子序号",
"ParamType": "Integer",
"ParamName": "index",
"Optional": false
}
],
"ReturnType": "Item"
},
{
"Description": "获取容器所有格子的物品对象列表",
"FuncName": "getAllItems",
"ReturnDescription": "容器中所有的物品对象",
"IsStatic": false,
"Params": [],
"ReturnType": "Array@Item"
},
{
"Description": "清空容器",
"FuncName": "removeAllItems",
"ReturnDescription": "是否成功清空",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "判断容器是否为空",
"FuncName": "isEmpty",
"ReturnDescription": "当前容器是否为空",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
}
],
"AllProperty": [
{
"PropertyName": "size",
"Description": "容器拥有的格子总数",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "👜 容器对象 API\r\n在LXL中,使用「容器对象」来操作拥有格子、可以储存和放置物品的容器的相关信息。 \n此处的 **容器** 是一种宽泛的概念,除了箱子、桶这些传统的容器之外,如玩家物品栏、羊驼携带的箱子等这些也统统可以作为「容器」处理,获取并使用容器对应的API"
},
{
"ClassName": "Device",
"AllFunc": [
{
"Description": "",
"FuncName": "",
"ReturnDescription": "",
"IsStatic": false,
"Params": [],
"ReturnType": ""
}
],
"AllProperty": [
{
"PropertyName": "ip",
"Description": "玩家设备的IP地址",
"PropertyType": "String",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "avgPing",
"Description": "玩家的平均网络延迟时间(ms)",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "avgPacketLoss",
"Description": "玩家的平均网络丢包率(%)",
"PropertyType": "Float",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "os",
"Description": "玩家设备的操作系统类型",
"PropertyType": "String",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "clientId",
"Description": "玩家客户端的识别码ID",
"PropertyType": "String",
"IsReadonly": false,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "📱 设备信息对象 API\r\n在LXL中,使用「设备信息对象」来操作和获取某一个玩家使用的游戏设备的相关信息"
},
{
"ClassName": "Entity",
"AllFunc": [
{
"Description": "传送实体至指定位置",
"FuncName": "teleport",
"ReturnDescription": "是否成功传送",
"IsStatic": false,
"Params": [
{
"Description": "目标位置坐标 (或者使用x, y, z, dimid来确定玩家位置)",
"ParamType": "FloatPos",
"ParamName": "pos",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "传送实体至指定位置",
"FuncName": "teleport",
"ReturnDescription": "是否成功传送",
"IsStatic": false,
"Params": [
{
"Description": "x",
"ParamType": "Integer",
"ParamName": "x",
"Optional": false
},
{
"Description": "y",
"ParamType": "Integer",
"ParamName": "y",
"Optional": false
},
{
"Description": "z",
"ParamType": "Integer",
"ParamName": "z",
"Optional": false
},
{
"Description": "dimid",
"ParamType": "Integer",
"ParamName": "dimid",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "杀死指定实体 ",
"FuncName": "kill",
"ReturnDescription": "是否成功执行",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "使指定实体着火",
"FuncName": "setOnFire",
"ReturnDescription": "是否成功着火",
"IsStatic": false,
"Params": [
{
"Description": "着火时长,单位秒",
"ParamType": "Integer",
"ParamName": "time",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "判断一个实体对象是不是玩家",
"FuncName": "isPlayer",
"ReturnDescription": "当前实体对象是不是玩家",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "将实体对象转换玩家对象",
"FuncName": "toPlayer",
"ReturnDescription": "转换成的玩家对象\r\n如果此实体对象指向的不是某个玩家,或者转换失败,则返回 `Null`",
"IsStatic": false,
"Params": [],
"ReturnType": "Player|Null"
},
{
"Description": "获取生物盔甲栏的容器对象 ",
"FuncName": "getArmor",
"ReturnDescription": "此实体盔甲栏对应的容器对象",
"IsStatic": false,
"Params": [],
"ReturnType": "Container"
},
{
"Description": "判断生物是否拥有容器(盔甲栏除外)",
"FuncName": "hasContainer",
"ReturnDescription": "个生物实体是否拥有容器",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "获取生物所拥有的容器对象(盔甲栏除外)",
"FuncName": "getContainer",
"ReturnDescription": "这个生物实体所拥有的容器对象",
"IsStatic": false,
"Params": [],
"ReturnType": "Container"
},
{
"Description": "为实体增加一个Tag",
"FuncName": "addTag",
"ReturnDescription": "是否设置成功",
"IsStatic": false,
"Params": [
{
"Description": "要增加的tag字符串",
"ParamType": "String",
"ParamName": "tag",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "为实体移除一个Tag",
"FuncName": "removeTag",
"ReturnDescription": "是否移除成功",
"IsStatic": false,
"Params": [
{
"Description": "要移除的tag字符串",
"ParamType": "String",
"ParamName": "tag",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "实体拥有的所有Tag列表",
"FuncName": "getAllTags",
"ReturnDescription": "实体所有的 tag 字符串列表",
"IsStatic": false,
"Params": [],
"ReturnType": "Array@String"
},
{
"Description": "检查实体是否拥有某个Tag",
"FuncName": "hasTag",
"ReturnDescription": "是否拥有这个Tag",
"IsStatic": false,
"Params": [
{
"Description": "要检查的tag字符串",
"ParamType": "String",
"ParamName": "tag",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "获取实体对应的NBT对象",
"FuncName": "getNbt",
"ReturnDescription": "玩家的NBT对象",
"IsStatic": false,
"Params": [],
"ReturnType": "NbtCompound"
},
{
"Description": "写入实体对应的NBT对象",
"FuncName": "setNbt",
"ReturnDescription": "是否成功写入",
"IsStatic": false,
"Params": [
{
"Description": "NBT对象",
"ParamType": "NbtCompound",
"ParamName": "nbt",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "对实体造成伤害\r\n注意,此处造成的伤害为真实伤害,无法被盔甲等保护装备减免",
"FuncName": "hurt",
"ReturnDescription": "是否造成伤害",
"IsStatic": false,
"Params": [
{
"Description": "对实体造成的伤害数值",
"ParamType": "Integer",
"ParamName": "damage",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "刷新生物物品栏、盔甲栏",
"FuncName": "refreshItems",
"ReturnDescription": "",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
}
],
"AllProperty": [
{
"PropertyName": "name",
"Description": "实体名称",
"PropertyType": "String",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "type",
"Description": "实体标准类型名",
"PropertyType": "String",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "id",
"Description": "实体的游戏内id",
"PropertyType": "Integer",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "pos",
"Description": "实体所在坐标",
"PropertyType": "FloatPos",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "blockPos",
"Description": "实体所在的方块坐标",
"PropertyType": "IntPos",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "maxHealth",
"Description": "实体最大生命值",
"PropertyType": "Integer",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "health",
"Description": "实体当前生命值",
"PropertyType": "Integer",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "inAir",
"Description": "实体当前是否悬空",
"PropertyType": "Boolean",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "speed",
"Description": "实体当前速度",
"PropertyType": "Float",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "inWater",
"Description": "实体当前是否在水中",
"PropertyType": "Boolean",
"IsReadonly": true,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "🎈 实体对象 API\r\n在LXL中,使用「实体对象」来操作和获取某一个实体的相关信息。"
},
{
"ClassName": "FloatPos",
"AllFunc": [],
"AllProperty": [
{
"PropertyName": "x",
"Description": "x 坐标",
"PropertyType": "Float",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "y",
"Description": "y 坐标",
"PropertyType": "Float",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "z",
"Description": "z 坐标",
"PropertyType": "Float",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "dim",
"Description": "维度文字名",
"PropertyType": "String",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "dimid",
"Description": "维度ID",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "🎯 坐标对象\r\n多用来表示实体坐标等用无法用整数表示的位置"
},
{
"ClassName": "IntPos",
"AllFunc": [],
"AllProperty": [
{
"PropertyName": "x",
"Description": "x 坐标",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "y",
"Description": "y 坐标",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "z",
"Description": "z 坐标",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "dim",
"Description": "维度文字名",
"PropertyType": "String",
"IsReadonly": false,
"IsStatic": false
},
{
"PropertyName": "dimid",
"Description": "维度ID",
"PropertyType": "Integer",
"IsReadonly": false,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "🎯 坐标对象\r\n多用来表示方块坐标等用整数表示的位置"
},
{
"ClassName": "Item",
"AllFunc": [
{
"Description": "通过 现有的物品对象 生成一个新的物品对象",
"FuncName": "clone",
"ReturnDescription": "生成的新物品对象",
"IsStatic": false,
"Params": [],
"ReturnType": "Item"
},
{
"Description": "判断物品对象是否为空",
"FuncName": "isNull",
"ReturnDescription": "这个物品对象是否为空",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "将此物品对象置为空(删除物品)",
"FuncName": "setNull",
"ReturnDescription": "是否删除成功",
"IsStatic": false,
"Params": [],
"ReturnType": "Boolean"
},
{
"Description": "将此物品对象设置为另一个物品",
"FuncName": "set",
"ReturnDescription": "是否赋值成功",
"IsStatic": false,
"Params": [
{
"Description": "要赋值的物品对象",
"ParamType": "Item",
"ParamName": "item",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "根据物品对象,在指定的位置生成一个同样内容的掉落物实体",
"FuncName": "spawnItem",
"ReturnDescription": "生成的掉落物实体对象\r\n如返回值为 Null 则表示生成失败",
"IsStatic": false,
"Params": [
{
"Description": "生成掉落物实体所使用的物品对象",
"ParamType": "Item",
"ParamName": "item",
"Optional": false
},
{
"Description": "生成掉落物实体的位置的坐标对象(或者使用x, y, z, dimid来确定生成位置)",
"ParamType": "FloatPos",
"ParamName": "pos",
"Optional": false
}
],
"ReturnType": "Entity"
},
{
"Description": "获取物品对应的NBT对象\r\n",
"FuncName": "getNbt",
"ReturnDescription": "物品的NBT对象",
"IsStatic": false,
"Params": [],
"ReturnType": "NbtCompound"
},
{
"Description": "写入物品对应的NBT对象",
"FuncName": "setNbt",
"ReturnDescription": "是否成功写入",
"IsStatic": false,
"Params": [
{
"Description": "",
"ParamType": "NbtCompound",
"ParamName": "nbt",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "",
"FuncName": "setLore",
"ReturnDescription": "",
"IsStatic": false,
"Params": [
{
"Description": "",
"ParamType": "Array@String",
"ParamName": "lore",
"Optional": false
}
],
"ReturnType": ""
},
{
"Description": "根据物品对象,在指定的位置生成一个同样内容的掉落物实体",
"FuncName": "spawnItem",
"ReturnDescription": "生成的掉落物实体对象\r\n如返回值为 Null 则表示生成失败",
"IsStatic": false,
"Params": [
{
"Description": "生成掉落物实体所使用的物品对象",
"ParamType": "Item",
"ParamName": "item",
"Optional": false
},
{
"Description": "生成掉落物实体的位置的坐标对象(或者使用x, y, z, dimid来确定生成位置)",
"ParamType": "IntPos",
"ParamName": "pos",
"Optional": false
}
],
"ReturnType": "Entity"
}
],
"AllProperty": [
{
"PropertyName": "name",
"Description": "游戏内显示的物品名称",
"PropertyType": "String",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "type",
"Description": "物品标准类型名",
"PropertyType": "String",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "id",
"Description": "物品的游戏内id",
"PropertyType": "Integer",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "count",
"Description": "这个物品对象堆叠的个数",
"PropertyType": "Integer",
"IsReadonly": true,
"IsStatic": false
},
{
"PropertyName": "aux",
"Description": "物品附加值(如羊毛颜色)",
"PropertyType": "String",
"IsReadonly": true,
"IsStatic": false
}
],
"IsStatic": false,
"IsInterface": false,
"Description": "🧰 物品对象 API\r\n在LXL中,使用「物品对象」来操作和获取某一个物品栏物品的相关信息"
},
{
"ClassName": "mc",
"AllFunc": [
{
"Description": "生成一个浮点数坐标对象",
"FuncName": "newFloatPos",
"ReturnDescription": "一个浮点数坐标对象",
"IsStatic": true,
"Params": [
{
"Description": "x 坐标",
"ParamType": "Float",
"ParamName": "x",
"Optional": false
},
{
"Description": "y 坐标",
"ParamType": "Float",
"ParamName": "y",
"Optional": false
},
{
"Description": "z 坐标",
"ParamType": "Float",
"ParamName": "z",
"Optional": false
},
{
"Description": "维度ID:0 代表主世界,1 代表下界,2 代表末地",
"ParamType": "Integer",
"ParamName": "dimid ",
"Optional": false
}
],
"ReturnType": "FloatPos"
},
{
"Description": "执行一条后台命令",
"FuncName": "runcmd",
"ReturnDescription": "是否执行成功",
"IsStatic": true,
"Params": [
{
"Description": "待执行的命令",
"ParamType": "String",
"ParamName": "cmd",
"Optional": false
}
],
"ReturnType": "Boolean"
},
{
"Description": "执行一条后台命令(强化版)",
"FuncName": "runcmdEx",
"ReturnDescription": "命令执行结果Object",
"IsStatic": true,
"Params": [
{
"Description": "指令内容",
"ParamType": "String",
"ParamName": "cmd",
"Optional": false
}
],
"ReturnType": "ObjectRuncmdEx"
},
{
"Description": "通过方块坐标手动生成方块对象\r\n通过此函数来手动生成对象,注意,你要获取的方块必须处于已被加载的范围中,否则会出现问题",
"FuncName": "getBlock",
"ReturnDescription": "如返回值为 Null 则表示获取方块失败\r\n注意:不要长期保存一个方块对象\r\n当方块对象对应的方块被销毁时,对应的方块对象将变得无效。因此,如果有长期操作某个方块的需要,请通过上述途径获取实时的方块对象",
"IsStatic": true,
"Params": [
{
"Description": "方块坐标对象(或者使用x, y, z, dimid来确定方块位置)",
"ParamType": "IntPos",
"ParamName": "pos",
"Optional": false
}
],
"ReturnType": "Block|Null"
},
{
"Description": "通过方块坐标手动生成方块对象\r\n通过此函数来手动生成对象,注意,你要获取的方块必须处于已被加载的范围中,否则会出现问题",
"FuncName": "getBlock",
"ReturnDescription": "如返回值为 Null 则表示获取方块失败\r\n注意:不要长期保存一个方块对象\r\n当方块对象对应的方块被销毁时,对应的方块对象将变得无效。因此,如果有长期操作某个方块的需要,请通过上述途径获取实时的方块对象",
"IsStatic": true,
"Params": [
{
"Description": "方块x坐标",
"ParamType": "Integer",
"ParamName": "x",
"Optional": false
},
{
"Description": "方块y坐标",
"ParamType": "Integer",
"ParamName": "y",
"Optional": false
},