hytopia 0.14.24 → 0.14.26

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 (32) hide show
  1. package/bin/scripts.js +3 -3
  2. package/docs/server.blocktype.interact.md +73 -0
  3. package/docs/server.blocktype.md +34 -0
  4. package/docs/server.blocktypeevent.md +14 -0
  5. package/docs/server.blocktypeeventpayloads._block_type.interact_.md +17 -0
  6. package/docs/server.blocktypeeventpayloads.md +19 -0
  7. package/docs/server.entity.interact.md +73 -0
  8. package/docs/server.entity.isenvironmental.md +1 -1
  9. package/docs/server.entity.md +15 -1
  10. package/docs/server.entityevent.md +14 -0
  11. package/docs/server.entityeventpayloads._entity.interact_.md +17 -0
  12. package/docs/server.entityeventpayloads.md +19 -0
  13. package/docs/server.player.interactenabled.md +13 -0
  14. package/docs/server.player.maxinteractdistance.md +13 -0
  15. package/docs/server.player.md +70 -0
  16. package/docs/server.player.setinteractenabled.md +53 -0
  17. package/docs/server.player.setmaxinteractdistance.md +53 -0
  18. package/docs/server.playerevent.md +14 -0
  19. package/docs/server.playereventpayloads._player.interact_.md +18 -0
  20. package/docs/server.playereventpayloads.md +19 -0
  21. package/docs/server.playerui.freezepointerlock.md +53 -0
  22. package/docs/server.playerui.lockpointer.md +5 -1
  23. package/docs/server.playerui.md +15 -1
  24. package/docs/server.playeruievent.md +14 -0
  25. package/docs/server.playeruieventpayloads._player_ui.freeze_pointer_lock_.md +16 -0
  26. package/docs/server.playeruieventpayloads.md +19 -0
  27. package/docs/server.raycasthit.md +2 -0
  28. package/docs/server.supported_inputs.md +1 -1
  29. package/package.json +1 -1
  30. package/server.api.json +686 -5
  31. package/server.d.ts +85 -5
  32. package/server.mjs +86 -86
package/server.api.json CHANGED
@@ -5363,6 +5363,72 @@
5363
5363
  "isProtected": false,
5364
5364
  "isAbstract": false
5365
5365
  },
5366
+ {
5367
+ "kind": "Method",
5368
+ "canonicalReference": "server!BlockType#interact:member(1)",
5369
+ "docComment": "/**\n * Triggers an interaction on the block type from a player.\n *\n * @remarks\n *\n * This is automatically called when a player clicks or taps a block of this block type, but can also be called directly for programmatic interactions. Emits {@link BlockTypeEvent.INTERACT}.\n *\n * @param player - The player interacting with the block type.\n *\n * @param raycastHit - The raycast hit result, if the interaction was triggered by a client-side click/tap.\n */\n",
5370
+ "excerptTokens": [
5371
+ {
5372
+ "kind": "Content",
5373
+ "text": "interact(player: "
5374
+ },
5375
+ {
5376
+ "kind": "Reference",
5377
+ "text": "Player",
5378
+ "canonicalReference": "server!Player:class"
5379
+ },
5380
+ {
5381
+ "kind": "Content",
5382
+ "text": ", raycastHit?: "
5383
+ },
5384
+ {
5385
+ "kind": "Reference",
5386
+ "text": "RaycastHit",
5387
+ "canonicalReference": "server!RaycastHit:type"
5388
+ },
5389
+ {
5390
+ "kind": "Content",
5391
+ "text": "): "
5392
+ },
5393
+ {
5394
+ "kind": "Content",
5395
+ "text": "void"
5396
+ },
5397
+ {
5398
+ "kind": "Content",
5399
+ "text": ";"
5400
+ }
5401
+ ],
5402
+ "isStatic": false,
5403
+ "returnTypeTokenRange": {
5404
+ "startIndex": 5,
5405
+ "endIndex": 6
5406
+ },
5407
+ "releaseTag": "Public",
5408
+ "isProtected": false,
5409
+ "overloadIndex": 1,
5410
+ "parameters": [
5411
+ {
5412
+ "parameterName": "player",
5413
+ "parameterTypeTokenRange": {
5414
+ "startIndex": 1,
5415
+ "endIndex": 2
5416
+ },
5417
+ "isOptional": false
5418
+ },
5419
+ {
5420
+ "parameterName": "raycastHit",
5421
+ "parameterTypeTokenRange": {
5422
+ "startIndex": 3,
5423
+ "endIndex": 4
5424
+ },
5425
+ "isOptional": true
5426
+ }
5427
+ ],
5428
+ "isOptional": false,
5429
+ "isAbstract": false,
5430
+ "name": "interact"
5431
+ },
5366
5432
  {
5367
5433
  "kind": "Property",
5368
5434
  "canonicalReference": "server!BlockType#isLiquid:member",
@@ -5612,6 +5678,27 @@
5612
5678
  },
5613
5679
  "releaseTag": "Public",
5614
5680
  "name": "ENTITY_CONTACT_FORCE"
5681
+ },
5682
+ {
5683
+ "kind": "EnumMember",
5684
+ "canonicalReference": "server!BlockTypeEvent.INTERACT:member",
5685
+ "docComment": "",
5686
+ "excerptTokens": [
5687
+ {
5688
+ "kind": "Content",
5689
+ "text": "INTERACT = "
5690
+ },
5691
+ {
5692
+ "kind": "Content",
5693
+ "text": "\"BLOCK_TYPE.INTERACT\""
5694
+ }
5695
+ ],
5696
+ "initializerTokenRange": {
5697
+ "startIndex": 1,
5698
+ "endIndex": 2
5699
+ },
5700
+ "releaseTag": "Public",
5701
+ "name": "INTERACT"
5615
5702
  }
5616
5703
  ]
5617
5704
  },
@@ -5746,6 +5833,69 @@
5746
5833
  "startIndex": 3,
5747
5834
  "endIndex": 10
5748
5835
  }
5836
+ },
5837
+ {
5838
+ "kind": "PropertySignature",
5839
+ "canonicalReference": "server!BlockTypeEventPayloads#\"BLOCK_TYPE.INTERACT\":member",
5840
+ "docComment": "/**\n * Emitted when a player interacts with a block type.\n */\n",
5841
+ "excerptTokens": [
5842
+ {
5843
+ "kind": "Content",
5844
+ "text": "["
5845
+ },
5846
+ {
5847
+ "kind": "Reference",
5848
+ "text": "BlockTypeEvent.INTERACT",
5849
+ "canonicalReference": "server!BlockTypeEvent.INTERACT:member"
5850
+ },
5851
+ {
5852
+ "kind": "Content",
5853
+ "text": "]: "
5854
+ },
5855
+ {
5856
+ "kind": "Content",
5857
+ "text": "{\n blockType: "
5858
+ },
5859
+ {
5860
+ "kind": "Reference",
5861
+ "text": "BlockType",
5862
+ "canonicalReference": "server!BlockType:class"
5863
+ },
5864
+ {
5865
+ "kind": "Content",
5866
+ "text": ";\n player: "
5867
+ },
5868
+ {
5869
+ "kind": "Reference",
5870
+ "text": "Player",
5871
+ "canonicalReference": "server!Player:class"
5872
+ },
5873
+ {
5874
+ "kind": "Content",
5875
+ "text": ";\n raycastHit?: "
5876
+ },
5877
+ {
5878
+ "kind": "Reference",
5879
+ "text": "RaycastHit",
5880
+ "canonicalReference": "server!RaycastHit:type"
5881
+ },
5882
+ {
5883
+ "kind": "Content",
5884
+ "text": ";\n }"
5885
+ },
5886
+ {
5887
+ "kind": "Content",
5888
+ "text": ";"
5889
+ }
5890
+ ],
5891
+ "isReadonly": false,
5892
+ "isOptional": false,
5893
+ "releaseTag": "Public",
5894
+ "name": "\"BLOCK_TYPE.INTERACT\"",
5895
+ "propertyTypeTokenRange": {
5896
+ "startIndex": 3,
5897
+ "endIndex": 10
5898
+ }
5749
5899
  }
5750
5900
  ],
5751
5901
  "extendsTokenRanges": []
@@ -14361,6 +14511,72 @@
14361
14511
  "isProtected": false,
14362
14512
  "isAbstract": false
14363
14513
  },
14514
+ {
14515
+ "kind": "Method",
14516
+ "canonicalReference": "server!Entity#interact:member(1)",
14517
+ "docComment": "/**\n * Triggers an interaction on the entity from a player.\n *\n * @remarks\n *\n * This is automatically called when a player clicks or taps the entity, but can also be called directly for programmatic interactions. Emits {@link EntityEvent.INTERACT}.\n *\n * @param player - The player interacting with the entity.\n *\n * @param raycastHit - The raycast hit result, if the interaction was triggered by a client-side click/tap.\n */\n",
14518
+ "excerptTokens": [
14519
+ {
14520
+ "kind": "Content",
14521
+ "text": "interact(player: "
14522
+ },
14523
+ {
14524
+ "kind": "Reference",
14525
+ "text": "Player",
14526
+ "canonicalReference": "server!Player:class"
14527
+ },
14528
+ {
14529
+ "kind": "Content",
14530
+ "text": ", raycastHit?: "
14531
+ },
14532
+ {
14533
+ "kind": "Reference",
14534
+ "text": "RaycastHit",
14535
+ "canonicalReference": "server!RaycastHit:type"
14536
+ },
14537
+ {
14538
+ "kind": "Content",
14539
+ "text": "): "
14540
+ },
14541
+ {
14542
+ "kind": "Content",
14543
+ "text": "void"
14544
+ },
14545
+ {
14546
+ "kind": "Content",
14547
+ "text": ";"
14548
+ }
14549
+ ],
14550
+ "isStatic": false,
14551
+ "returnTypeTokenRange": {
14552
+ "startIndex": 5,
14553
+ "endIndex": 6
14554
+ },
14555
+ "releaseTag": "Public",
14556
+ "isProtected": false,
14557
+ "overloadIndex": 1,
14558
+ "parameters": [
14559
+ {
14560
+ "parameterName": "player",
14561
+ "parameterTypeTokenRange": {
14562
+ "startIndex": 1,
14563
+ "endIndex": 2
14564
+ },
14565
+ "isOptional": false
14566
+ },
14567
+ {
14568
+ "parameterName": "raycastHit",
14569
+ "parameterTypeTokenRange": {
14570
+ "startIndex": 3,
14571
+ "endIndex": 4
14572
+ },
14573
+ "isOptional": true
14574
+ }
14575
+ ],
14576
+ "isOptional": false,
14577
+ "isAbstract": false,
14578
+ "name": "interact"
14579
+ },
14364
14580
  {
14365
14581
  "kind": "Property",
14366
14582
  "canonicalReference": "server!Entity#isBlockEntity:member",
@@ -14394,7 +14610,7 @@
14394
14610
  {
14395
14611
  "kind": "Property",
14396
14612
  "canonicalReference": "server!Entity#isEnvironmental:member",
14397
- "docComment": "/**\n * Whether the entity is environmental, if true it will not invoke its tick function or change position.\n */\n",
14613
+ "docComment": "/**\n * Whether the entity is environmental, if true it will not invoke its tick function or change position. It also cannot be animated or removed after spawning.\n */\n",
14398
14614
  "excerptTokens": [
14399
14615
  {
14400
14616
  "kind": "Content",
@@ -16002,6 +16218,27 @@
16002
16218
  "releaseTag": "Public",
16003
16219
  "name": "ENTITY_CONTACT_FORCE"
16004
16220
  },
16221
+ {
16222
+ "kind": "EnumMember",
16223
+ "canonicalReference": "server!EntityEvent.INTERACT:member",
16224
+ "docComment": "",
16225
+ "excerptTokens": [
16226
+ {
16227
+ "kind": "Content",
16228
+ "text": "INTERACT = "
16229
+ },
16230
+ {
16231
+ "kind": "Content",
16232
+ "text": "\"ENTITY.INTERACT\""
16233
+ }
16234
+ ],
16235
+ "initializerTokenRange": {
16236
+ "startIndex": 1,
16237
+ "endIndex": 2
16238
+ },
16239
+ "releaseTag": "Public",
16240
+ "name": "INTERACT"
16241
+ },
16005
16242
  {
16006
16243
  "kind": "EnumMember",
16007
16244
  "canonicalReference": "server!EntityEvent.SET_MODEL_ANIMATIONS_PLAYBACK_RATE:member",
@@ -16613,6 +16850,69 @@
16613
16850
  "endIndex": 10
16614
16851
  }
16615
16852
  },
16853
+ {
16854
+ "kind": "PropertySignature",
16855
+ "canonicalReference": "server!EntityEventPayloads#\"ENTITY.INTERACT\":member",
16856
+ "docComment": "/**\n * Emitted when a player interacts with the entity by clicking or tapping it.\n */\n",
16857
+ "excerptTokens": [
16858
+ {
16859
+ "kind": "Content",
16860
+ "text": "["
16861
+ },
16862
+ {
16863
+ "kind": "Reference",
16864
+ "text": "EntityEvent.INTERACT",
16865
+ "canonicalReference": "server!EntityEvent.INTERACT:member"
16866
+ },
16867
+ {
16868
+ "kind": "Content",
16869
+ "text": "]: "
16870
+ },
16871
+ {
16872
+ "kind": "Content",
16873
+ "text": "{\n entity: "
16874
+ },
16875
+ {
16876
+ "kind": "Reference",
16877
+ "text": "Entity",
16878
+ "canonicalReference": "server!Entity:class"
16879
+ },
16880
+ {
16881
+ "kind": "Content",
16882
+ "text": ";\n player: "
16883
+ },
16884
+ {
16885
+ "kind": "Reference",
16886
+ "text": "Player",
16887
+ "canonicalReference": "server!Player:class"
16888
+ },
16889
+ {
16890
+ "kind": "Content",
16891
+ "text": ";\n raycastHit?: "
16892
+ },
16893
+ {
16894
+ "kind": "Reference",
16895
+ "text": "RaycastHit",
16896
+ "canonicalReference": "server!RaycastHit:type"
16897
+ },
16898
+ {
16899
+ "kind": "Content",
16900
+ "text": ";\n }"
16901
+ },
16902
+ {
16903
+ "kind": "Content",
16904
+ "text": ";"
16905
+ }
16906
+ ],
16907
+ "isReadonly": false,
16908
+ "isOptional": false,
16909
+ "releaseTag": "Public",
16910
+ "name": "\"ENTITY.INTERACT\"",
16911
+ "propertyTypeTokenRange": {
16912
+ "startIndex": 3,
16913
+ "endIndex": 10
16914
+ }
16915
+ },
16616
16916
  {
16617
16917
  "kind": "PropertySignature",
16618
16918
  "canonicalReference": "server!EntityEventPayloads#\"ENTITY.SET_MODEL_ANIMATIONS_PLAYBACK_RATE\":member",
@@ -36294,6 +36594,36 @@
36294
36594
  "isProtected": false,
36295
36595
  "isAbstract": false
36296
36596
  },
36597
+ {
36598
+ "kind": "Property",
36599
+ "canonicalReference": "server!Player#interactEnabled:member",
36600
+ "docComment": "/**\n * Whether the players click/taps will cause interacts with blocks or entities. Defaults to true.\n */\n",
36601
+ "excerptTokens": [
36602
+ {
36603
+ "kind": "Content",
36604
+ "text": "get interactEnabled(): "
36605
+ },
36606
+ {
36607
+ "kind": "Content",
36608
+ "text": "boolean"
36609
+ },
36610
+ {
36611
+ "kind": "Content",
36612
+ "text": ";"
36613
+ }
36614
+ ],
36615
+ "isReadonly": true,
36616
+ "isOptional": false,
36617
+ "releaseTag": "Public",
36618
+ "name": "interactEnabled",
36619
+ "propertyTypeTokenRange": {
36620
+ "startIndex": 1,
36621
+ "endIndex": 2
36622
+ },
36623
+ "isStatic": false,
36624
+ "isProtected": false,
36625
+ "isAbstract": false
36626
+ },
36297
36627
  {
36298
36628
  "kind": "Method",
36299
36629
  "canonicalReference": "server!Player#joinWorld:member(1)",
@@ -36343,6 +36673,36 @@
36343
36673
  "isAbstract": false,
36344
36674
  "name": "joinWorld"
36345
36675
  },
36676
+ {
36677
+ "kind": "Property",
36678
+ "canonicalReference": "server!Player#maxInteractDistance:member",
36679
+ "docComment": "/**\n * The maximum distance a player can interact with entities or blocks. The raycast distance in blocks for interactions. Defaults to 20.\n */\n",
36680
+ "excerptTokens": [
36681
+ {
36682
+ "kind": "Content",
36683
+ "text": "get maxInteractDistance(): "
36684
+ },
36685
+ {
36686
+ "kind": "Content",
36687
+ "text": "number"
36688
+ },
36689
+ {
36690
+ "kind": "Content",
36691
+ "text": ";"
36692
+ }
36693
+ ],
36694
+ "isReadonly": true,
36695
+ "isOptional": false,
36696
+ "releaseTag": "Public",
36697
+ "name": "maxInteractDistance",
36698
+ "propertyTypeTokenRange": {
36699
+ "startIndex": 1,
36700
+ "endIndex": 2
36701
+ },
36702
+ "isStatic": false,
36703
+ "isProtected": false,
36704
+ "isAbstract": false
36705
+ },
36346
36706
  {
36347
36707
  "kind": "Property",
36348
36708
  "canonicalReference": "server!Player#profilePictureUrl:member",
@@ -36473,6 +36833,102 @@
36473
36833
  "isAbstract": false,
36474
36834
  "name": "scheduleNotification"
36475
36835
  },
36836
+ {
36837
+ "kind": "Method",
36838
+ "canonicalReference": "server!Player#setInteractEnabled:member(1)",
36839
+ "docComment": "/**\n * Sets whether the players click/taps will cause interacts with blocks or entities.\n *\n * @param enabled - Whether the players click/taps will cause interacts with blocks or entities.\n */\n",
36840
+ "excerptTokens": [
36841
+ {
36842
+ "kind": "Content",
36843
+ "text": "setInteractEnabled(enabled: "
36844
+ },
36845
+ {
36846
+ "kind": "Content",
36847
+ "text": "boolean"
36848
+ },
36849
+ {
36850
+ "kind": "Content",
36851
+ "text": "): "
36852
+ },
36853
+ {
36854
+ "kind": "Content",
36855
+ "text": "void"
36856
+ },
36857
+ {
36858
+ "kind": "Content",
36859
+ "text": ";"
36860
+ }
36861
+ ],
36862
+ "isStatic": false,
36863
+ "returnTypeTokenRange": {
36864
+ "startIndex": 3,
36865
+ "endIndex": 4
36866
+ },
36867
+ "releaseTag": "Public",
36868
+ "isProtected": false,
36869
+ "overloadIndex": 1,
36870
+ "parameters": [
36871
+ {
36872
+ "parameterName": "enabled",
36873
+ "parameterTypeTokenRange": {
36874
+ "startIndex": 1,
36875
+ "endIndex": 2
36876
+ },
36877
+ "isOptional": false
36878
+ }
36879
+ ],
36880
+ "isOptional": false,
36881
+ "isAbstract": false,
36882
+ "name": "setInteractEnabled"
36883
+ },
36884
+ {
36885
+ "kind": "Method",
36886
+ "canonicalReference": "server!Player#setMaxInteractDistance:member(1)",
36887
+ "docComment": "/**\n * Sets the maximum distance a player can interact with entities or blocks.\n *\n * @param distance - The maximum distance in blocks used for the interact raycast. Default is 20.\n */\n",
36888
+ "excerptTokens": [
36889
+ {
36890
+ "kind": "Content",
36891
+ "text": "setMaxInteractDistance(distance: "
36892
+ },
36893
+ {
36894
+ "kind": "Content",
36895
+ "text": "number"
36896
+ },
36897
+ {
36898
+ "kind": "Content",
36899
+ "text": "): "
36900
+ },
36901
+ {
36902
+ "kind": "Content",
36903
+ "text": "void"
36904
+ },
36905
+ {
36906
+ "kind": "Content",
36907
+ "text": ";"
36908
+ }
36909
+ ],
36910
+ "isStatic": false,
36911
+ "returnTypeTokenRange": {
36912
+ "startIndex": 3,
36913
+ "endIndex": 4
36914
+ },
36915
+ "releaseTag": "Public",
36916
+ "isProtected": false,
36917
+ "overloadIndex": 1,
36918
+ "parameters": [
36919
+ {
36920
+ "parameterName": "distance",
36921
+ "parameterTypeTokenRange": {
36922
+ "startIndex": 1,
36923
+ "endIndex": 2
36924
+ },
36925
+ "isOptional": false
36926
+ }
36927
+ ],
36928
+ "isOptional": false,
36929
+ "isAbstract": false,
36930
+ "name": "setMaxInteractDistance"
36931
+ },
36476
36932
  {
36477
36933
  "kind": "Method",
36478
36934
  "canonicalReference": "server!Player#setPersistedData:member(1)",
@@ -39531,6 +39987,27 @@
39531
39987
  "releaseTag": "Public",
39532
39988
  "name": "CHAT_MESSAGE_SEND"
39533
39989
  },
39990
+ {
39991
+ "kind": "EnumMember",
39992
+ "canonicalReference": "server!PlayerEvent.INTERACT:member",
39993
+ "docComment": "",
39994
+ "excerptTokens": [
39995
+ {
39996
+ "kind": "Content",
39997
+ "text": "INTERACT = "
39998
+ },
39999
+ {
40000
+ "kind": "Content",
40001
+ "text": "\"PLAYER.INTERACT\""
40002
+ }
40003
+ ],
40004
+ "initializerTokenRange": {
40005
+ "startIndex": 1,
40006
+ "endIndex": 2
40007
+ },
40008
+ "releaseTag": "Public",
40009
+ "name": "INTERACT"
40010
+ },
39534
40011
  {
39535
40012
  "kind": "EnumMember",
39536
40013
  "canonicalReference": "server!PlayerEvent.JOINED_WORLD:member",
@@ -39698,6 +40175,78 @@
39698
40175
  "endIndex": 6
39699
40176
  }
39700
40177
  },
40178
+ {
40179
+ "kind": "PropertySignature",
40180
+ "canonicalReference": "server!PlayerEventPayloads#\"PLAYER.INTERACT\":member",
40181
+ "docComment": "/**\n * Emitted when a player interacts the world.\n */\n",
40182
+ "excerptTokens": [
40183
+ {
40184
+ "kind": "Content",
40185
+ "text": "["
40186
+ },
40187
+ {
40188
+ "kind": "Reference",
40189
+ "text": "PlayerEvent.INTERACT",
40190
+ "canonicalReference": "server!PlayerEvent.INTERACT:member"
40191
+ },
40192
+ {
40193
+ "kind": "Content",
40194
+ "text": "]: "
40195
+ },
40196
+ {
40197
+ "kind": "Content",
40198
+ "text": "{\n player: "
40199
+ },
40200
+ {
40201
+ "kind": "Reference",
40202
+ "text": "Player",
40203
+ "canonicalReference": "server!Player:class"
40204
+ },
40205
+ {
40206
+ "kind": "Content",
40207
+ "text": ";\n interactOrigin: "
40208
+ },
40209
+ {
40210
+ "kind": "Reference",
40211
+ "text": "Vector3Like",
40212
+ "canonicalReference": "server!Vector3Like:interface"
40213
+ },
40214
+ {
40215
+ "kind": "Content",
40216
+ "text": ";\n interactDirection: "
40217
+ },
40218
+ {
40219
+ "kind": "Reference",
40220
+ "text": "Vector3Like",
40221
+ "canonicalReference": "server!Vector3Like:interface"
40222
+ },
40223
+ {
40224
+ "kind": "Content",
40225
+ "text": ";\n raycastHit?: "
40226
+ },
40227
+ {
40228
+ "kind": "Reference",
40229
+ "text": "RaycastHit",
40230
+ "canonicalReference": "server!RaycastHit:type"
40231
+ },
40232
+ {
40233
+ "kind": "Content",
40234
+ "text": ";\n }"
40235
+ },
40236
+ {
40237
+ "kind": "Content",
40238
+ "text": ";"
40239
+ }
40240
+ ],
40241
+ "isReadonly": false,
40242
+ "isOptional": false,
40243
+ "releaseTag": "Public",
40244
+ "name": "\"PLAYER.INTERACT\"",
40245
+ "propertyTypeTokenRange": {
40246
+ "startIndex": 3,
40247
+ "endIndex": 12
40248
+ }
40249
+ },
39701
40250
  {
39702
40251
  "kind": "PropertySignature",
39703
40252
  "canonicalReference": "server!PlayerEventPayloads#\"PLAYER.JOINED_WORLD\":member",
@@ -40518,6 +41067,54 @@
40518
41067
  "name": "PlayerUI",
40519
41068
  "preserveMemberOrder": false,
40520
41069
  "members": [
41070
+ {
41071
+ "kind": "Method",
41072
+ "canonicalReference": "server!PlayerUI#freezePointerLock:member(1)",
41073
+ "docComment": "/**\n * Freezes or unfreezes the player's pointer lock state. Preventing player inputs from automatically locking or unlocking the pointer relative to its current state.\n *\n * @param freeze - Set true to freeze the pointer lock state, false to unfreeze it.\n */\n",
41074
+ "excerptTokens": [
41075
+ {
41076
+ "kind": "Content",
41077
+ "text": "freezePointerLock(freeze: "
41078
+ },
41079
+ {
41080
+ "kind": "Content",
41081
+ "text": "boolean"
41082
+ },
41083
+ {
41084
+ "kind": "Content",
41085
+ "text": "): "
41086
+ },
41087
+ {
41088
+ "kind": "Content",
41089
+ "text": "void"
41090
+ },
41091
+ {
41092
+ "kind": "Content",
41093
+ "text": ";"
41094
+ }
41095
+ ],
41096
+ "isStatic": false,
41097
+ "returnTypeTokenRange": {
41098
+ "startIndex": 3,
41099
+ "endIndex": 4
41100
+ },
41101
+ "releaseTag": "Public",
41102
+ "isProtected": false,
41103
+ "overloadIndex": 1,
41104
+ "parameters": [
41105
+ {
41106
+ "parameterName": "freeze",
41107
+ "parameterTypeTokenRange": {
41108
+ "startIndex": 1,
41109
+ "endIndex": 2
41110
+ },
41111
+ "isOptional": false
41112
+ }
41113
+ ],
41114
+ "isOptional": false,
41115
+ "isAbstract": false,
41116
+ "name": "freezePointerLock"
41117
+ },
40521
41118
  {
40522
41119
  "kind": "Method",
40523
41120
  "canonicalReference": "server!PlayerUI#load:member(1)",
@@ -40569,7 +41166,7 @@
40569
41166
  {
40570
41167
  "kind": "Method",
40571
41168
  "canonicalReference": "server!PlayerUI#lockPointer:member(1)",
40572
- "docComment": "/**\n * Locks or unlocks the player's mouse pointer. If the pointer is unlocked with lockPointer(false), the player will not be able to use in-game inputs or camera controls from the mouse pointer until `player.ui.lockPointer(true)`, or in your game's client UI html with `hytopia.lockPointer(true)`.\n *\n * @param lock - Set true to lock the pointer, false to unlock it.\n */\n",
41169
+ "docComment": "/**\n * Locks or unlocks the player's mouse pointer on Desktop. If the pointer is unlocked with `lockPointer(false)`, the player will not be able to use in-game inputs or camera controls from the mouse pointer until `player.ui.lockPointer(true)`, or in your game's client UI html with `hytopia.lockPointer(true)`.\n *\n * @remarks\n *\n * Pointer lock has no effect on mobile devices.\n *\n * @param lock - Set true to lock the pointer, false to unlock it.\n */\n",
40573
41170
  "excerptTokens": [
40574
41171
  {
40575
41172
  "kind": "Content",
@@ -40736,6 +41333,27 @@
40736
41333
  "releaseTag": "Public",
40737
41334
  "name": "DATA"
40738
41335
  },
41336
+ {
41337
+ "kind": "EnumMember",
41338
+ "canonicalReference": "server!PlayerUIEvent.FREEZE_POINTER_LOCK:member",
41339
+ "docComment": "",
41340
+ "excerptTokens": [
41341
+ {
41342
+ "kind": "Content",
41343
+ "text": "FREEZE_POINTER_LOCK = "
41344
+ },
41345
+ {
41346
+ "kind": "Content",
41347
+ "text": "\"PLAYER_UI.FREEZE_POINTER_LOCK\""
41348
+ }
41349
+ ],
41350
+ "initializerTokenRange": {
41351
+ "startIndex": 1,
41352
+ "endIndex": 2
41353
+ },
41354
+ "releaseTag": "Public",
41355
+ "name": "FREEZE_POINTER_LOCK"
41356
+ },
40739
41357
  {
40740
41358
  "kind": "EnumMember",
40741
41359
  "canonicalReference": "server!PlayerUIEvent.LOAD:member",
@@ -40870,6 +41488,51 @@
40870
41488
  "endIndex": 8
40871
41489
  }
40872
41490
  },
41491
+ {
41492
+ "kind": "PropertySignature",
41493
+ "canonicalReference": "server!PlayerUIEventPayloads#\"PLAYER_UI.FREEZE_POINTER_LOCK\":member",
41494
+ "docComment": "/**\n * Emitted when the player's pointer lock is frozen or unfrozen.\n */\n",
41495
+ "excerptTokens": [
41496
+ {
41497
+ "kind": "Content",
41498
+ "text": "["
41499
+ },
41500
+ {
41501
+ "kind": "Reference",
41502
+ "text": "PlayerUIEvent.FREEZE_POINTER_LOCK",
41503
+ "canonicalReference": "server!PlayerUIEvent.FREEZE_POINTER_LOCK:member"
41504
+ },
41505
+ {
41506
+ "kind": "Content",
41507
+ "text": "]: "
41508
+ },
41509
+ {
41510
+ "kind": "Content",
41511
+ "text": "{\n playerUI: "
41512
+ },
41513
+ {
41514
+ "kind": "Reference",
41515
+ "text": "PlayerUI",
41516
+ "canonicalReference": "server!PlayerUI:class"
41517
+ },
41518
+ {
41519
+ "kind": "Content",
41520
+ "text": ";\n freeze: boolean;\n }"
41521
+ },
41522
+ {
41523
+ "kind": "Content",
41524
+ "text": ";"
41525
+ }
41526
+ ],
41527
+ "isReadonly": false,
41528
+ "isOptional": false,
41529
+ "releaseTag": "Public",
41530
+ "name": "\"PLAYER_UI.FREEZE_POINTER_LOCK\"",
41531
+ "propertyTypeTokenRange": {
41532
+ "startIndex": 3,
41533
+ "endIndex": 6
41534
+ }
41535
+ },
40873
41536
  {
40874
41537
  "kind": "PropertySignature",
40875
41538
  "canonicalReference": "server!PlayerUIEventPayloads#\"PLAYER_UI.LOAD\":member",
@@ -42835,7 +43498,25 @@
42835
43498
  },
42836
43499
  {
42837
43500
  "kind": "Content",
42838
- "text": ";\n hitDistance: number;\n}"
43501
+ "text": ";\n hitDistance: number;\n origin: "
43502
+ },
43503
+ {
43504
+ "kind": "Reference",
43505
+ "text": "Vector3Like",
43506
+ "canonicalReference": "server!Vector3Like:interface"
43507
+ },
43508
+ {
43509
+ "kind": "Content",
43510
+ "text": ";\n originDirection: "
43511
+ },
43512
+ {
43513
+ "kind": "Reference",
43514
+ "text": "Vector3Like",
43515
+ "canonicalReference": "server!Vector3Like:interface"
43516
+ },
43517
+ {
43518
+ "kind": "Content",
43519
+ "text": ";\n}"
42839
43520
  },
42840
43521
  {
42841
43522
  "kind": "Content",
@@ -42847,7 +43528,7 @@
42847
43528
  "name": "RaycastHit",
42848
43529
  "typeTokenRange": {
42849
43530
  "startIndex": 1,
42850
- "endIndex": 8
43531
+ "endIndex": 12
42851
43532
  }
42852
43533
  },
42853
43534
  {
@@ -49758,7 +50439,7 @@
49758
50439
  },
49759
50440
  {
49760
50441
  "kind": "Content",
49761
- "text": "readonly [\"w\", \"a\", \"s\", \"d\", \"sp\", \"sh\", \"tb\", \"ml\", \"mr\", \"q\", \"e\", \"r\", \"f\", \"z\", \"x\", \"c\", \"v\", \"u\", \"i\", \"o\", \"j\", \"k\", \"l\", \"n\", \"m\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\", \"cp\", \"cy\", \"jd\"]"
50442
+ "text": "readonly [\"w\", \"a\", \"s\", \"d\", \"sp\", \"sh\", \"tb\", \"ml\", \"mr\", \"q\", \"e\", \"r\", \"f\", \"z\", \"x\", \"c\", \"v\", \"u\", \"i\", \"o\", \"j\", \"k\", \"l\", \"n\", \"m\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \"0\", \"cp\", \"cy\", \"iro\", \"ird\", \"jd\"]"
49762
50443
  }
49763
50444
  ],
49764
50445
  "fileUrlPath": "src/players/Player.ts",