hytopia 0.5.24 → 0.6.1

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 (22) hide show
  1. package/bun-server.mjs +126 -126
  2. package/docs/server.defaultplayerentitycontroller.applydirectionalmovementrotations.md +13 -0
  3. package/docs/server.defaultplayerentitycontroller.jumplandheavyoneshotanimations.md +13 -0
  4. package/docs/server.defaultplayerentitycontroller.jumplandlightoneshotanimations.md +13 -0
  5. package/docs/server.defaultplayerentitycontroller.md +77 -1
  6. package/docs/server.defaultplayerentitycontroller.swimidleloopedanimations.md +13 -0
  7. package/docs/server.defaultplayerentitycontroller.swimloopedanimations.md +1 -1
  8. package/docs/server.defaultplayerentitycontrolleroptions.applydirectionalmovementrotations.md +13 -0
  9. package/docs/server.defaultplayerentitycontrolleroptions.jumplandheavyoneshotanimations.md +13 -0
  10. package/docs/server.defaultplayerentitycontrolleroptions.jumplandlightoneshotanimations.md +13 -0
  11. package/docs/server.defaultplayerentitycontrolleroptions.md +77 -1
  12. package/docs/server.defaultplayerentitycontrolleroptions.swimidleloopedanimations.md +13 -0
  13. package/docs/server.defaultplayerentitycontrolleroptions.swimloopedanimations.md +1 -1
  14. package/docs/server.entity.md +43 -1
  15. package/docs/server.entity.modelscale.md +1 -1
  16. package/docs/server.entity.stopallmodelanimations.md +53 -0
  17. package/docs/server.entity.stopallmodelloopedanimations.md +53 -0
  18. package/docs/server.entity.stopallmodeloneshotanimations.md +53 -0
  19. package/node-server.mjs +144 -144
  20. package/package.json +1 -1
  21. package/server.api.json +375 -3
  22. package/server.d.ts +58 -3
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityController](./server.defaultplayerentitycontroller.md) &gt; [applyDirectionalMovementRotations](./server.defaultplayerentitycontroller.applydirectionalmovementrotations.md)
4
+
5
+ ## DefaultPlayerEntityController.applyDirectionalMovementRotations property
6
+
7
+ Whether to apply directional rotations to the entity while moving, defaults to true.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ applyDirectionalMovementRotations: boolean;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityController](./server.defaultplayerentitycontroller.md) &gt; [jumpLandHeavyOneshotAnimations](./server.defaultplayerentitycontroller.jumplandheavyoneshotanimations.md)
4
+
5
+ ## DefaultPlayerEntityController.jumpLandHeavyOneshotAnimations property
6
+
7
+ The oneshot animation(s) that will play when the entity lands with a high velocity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ jumpLandHeavyOneshotAnimations: string[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityController](./server.defaultplayerentitycontroller.md) &gt; [jumpLandLightOneshotAnimations](./server.defaultplayerentitycontroller.jumplandlightoneshotanimations.md)
4
+
5
+ ## DefaultPlayerEntityController.jumpLandLightOneshotAnimations property
6
+
7
+ The oneshot animation(s) that will play when the entity lands after jumping or being airborne.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ jumpLandLightOneshotAnimations: string[];
13
+ ```
@@ -91,6 +91,25 @@ Description
91
91
  </th></tr></thead>
92
92
  <tbody><tr><td>
93
93
 
94
+ [applyDirectionalMovementRotations](./server.defaultplayerentitycontroller.applydirectionalmovementrotations.md)
95
+
96
+
97
+ </td><td>
98
+
99
+
100
+ </td><td>
101
+
102
+ boolean
103
+
104
+
105
+ </td><td>
106
+
107
+ Whether to apply directional rotations to the entity while moving, defaults to true.
108
+
109
+
110
+ </td></tr>
111
+ <tr><td>
112
+
94
113
  [autoCancelMouseLeftClick](./server.defaultplayerentitycontroller.autocancelmouseleftclick.md)
95
114
 
96
115
 
@@ -284,6 +303,44 @@ boolean
284
303
  Whether the entity is swimming, this is determined by if the entity is in a liquid block.
285
304
 
286
305
 
306
+ </td></tr>
307
+ <tr><td>
308
+
309
+ [jumpLandHeavyOneshotAnimations](./server.defaultplayerentitycontroller.jumplandheavyoneshotanimations.md)
310
+
311
+
312
+ </td><td>
313
+
314
+
315
+ </td><td>
316
+
317
+ string\[\]
318
+
319
+
320
+ </td><td>
321
+
322
+ The oneshot animation(s) that will play when the entity lands with a high velocity.
323
+
324
+
325
+ </td></tr>
326
+ <tr><td>
327
+
328
+ [jumpLandLightOneshotAnimations](./server.defaultplayerentitycontroller.jumplandlightoneshotanimations.md)
329
+
330
+
331
+ </td><td>
332
+
333
+
334
+ </td><td>
335
+
336
+ string\[\]
337
+
338
+
339
+ </td><td>
340
+
341
+ The oneshot animation(s) that will play when the entity lands after jumping or being airborne.
342
+
343
+
287
344
  </td></tr>
288
345
  <tr><td>
289
346
 
@@ -438,6 +495,25 @@ number
438
495
  The gravity modifier applied to the entity when swimming.
439
496
 
440
497
 
498
+ </td></tr>
499
+ <tr><td>
500
+
501
+ [swimIdleLoopedAnimations](./server.defaultplayerentitycontroller.swimidleloopedanimations.md)
502
+
503
+
504
+ </td><td>
505
+
506
+
507
+ </td><td>
508
+
509
+ string\[\]
510
+
511
+
512
+ </td><td>
513
+
514
+ The looped animation(s) that will play when the entity is not moving while swimming.
515
+
516
+
441
517
  </td></tr>
442
518
  <tr><td>
443
519
 
@@ -454,7 +530,7 @@ string\[\]
454
530
 
455
531
  </td><td>
456
532
 
457
- The looped animation(s) that will play when the entity is swimming.
533
+ The looped animation(s) that will play when the entity is swimming in any direction.
458
534
 
459
535
 
460
536
  </td></tr>
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityController](./server.defaultplayerentitycontroller.md) &gt; [swimIdleLoopedAnimations](./server.defaultplayerentitycontroller.swimidleloopedanimations.md)
4
+
5
+ ## DefaultPlayerEntityController.swimIdleLoopedAnimations property
6
+
7
+ The looped animation(s) that will play when the entity is not moving while swimming.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ swimIdleLoopedAnimations: string[];
13
+ ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## DefaultPlayerEntityController.swimLoopedAnimations property
6
6
 
7
- The looped animation(s) that will play when the entity is swimming.
7
+ The looped animation(s) that will play when the entity is swimming in any direction.
8
8
 
9
9
  **Signature:**
10
10
 
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityControllerOptions](./server.defaultplayerentitycontrolleroptions.md) &gt; [applyDirectionalMovementRotations](./server.defaultplayerentitycontrolleroptions.applydirectionalmovementrotations.md)
4
+
5
+ ## DefaultPlayerEntityControllerOptions.applyDirectionalMovementRotations property
6
+
7
+ Whether to apply directional rotations to the entity while moving, defaults to true.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ applyDirectionalMovementRotations?: boolean;
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityControllerOptions](./server.defaultplayerentitycontrolleroptions.md) &gt; [jumpLandHeavyOneshotAnimations](./server.defaultplayerentitycontrolleroptions.jumplandheavyoneshotanimations.md)
4
+
5
+ ## DefaultPlayerEntityControllerOptions.jumpLandHeavyOneshotAnimations property
6
+
7
+ Overrides the animation(s) that will play when the entity lands with a high velocity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ jumpLandHeavyOneshotAnimations?: string[];
13
+ ```
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityControllerOptions](./server.defaultplayerentitycontrolleroptions.md) &gt; [jumpLandLightOneshotAnimations](./server.defaultplayerentitycontrolleroptions.jumplandlightoneshotanimations.md)
4
+
5
+ ## DefaultPlayerEntityControllerOptions.jumpLandLightOneshotAnimations property
6
+
7
+ Overrides the animation(s) that will play when the entity lands after jumping or being airborne.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ jumpLandLightOneshotAnimations?: string[];
13
+ ```
@@ -37,6 +37,25 @@ Description
37
37
  </th></tr></thead>
38
38
  <tbody><tr><td>
39
39
 
40
+ [applyDirectionalMovementRotations?](./server.defaultplayerentitycontrolleroptions.applydirectionalmovementrotations.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ boolean
49
+
50
+
51
+ </td><td>
52
+
53
+ _(Optional)_ Whether to apply directional rotations to the entity while moving, defaults to true.
54
+
55
+
56
+ </td></tr>
57
+ <tr><td>
58
+
40
59
  [autoCancelMouseLeftClick?](./server.defaultplayerentitycontrolleroptions.autocancelmouseleftclick.md)
41
60
 
42
61
 
@@ -167,6 +186,44 @@ string\[\]
167
186
  _(Optional)_ Overrides the animation(s) that will play when the entity interacts (left click)
168
187
 
169
188
 
189
+ </td></tr>
190
+ <tr><td>
191
+
192
+ [jumpLandHeavyOneshotAnimations?](./server.defaultplayerentitycontrolleroptions.jumplandheavyoneshotanimations.md)
193
+
194
+
195
+ </td><td>
196
+
197
+
198
+ </td><td>
199
+
200
+ string\[\]
201
+
202
+
203
+ </td><td>
204
+
205
+ _(Optional)_ Overrides the animation(s) that will play when the entity lands with a high velocity.
206
+
207
+
208
+ </td></tr>
209
+ <tr><td>
210
+
211
+ [jumpLandLightOneshotAnimations?](./server.defaultplayerentitycontrolleroptions.jumplandlightoneshotanimations.md)
212
+
213
+
214
+ </td><td>
215
+
216
+
217
+ </td><td>
218
+
219
+ string\[\]
220
+
221
+
222
+ </td><td>
223
+
224
+ _(Optional)_ Overrides the animation(s) that will play when the entity lands after jumping or being airborne.
225
+
226
+
170
227
  </td></tr>
171
228
  <tr><td>
172
229
 
@@ -300,6 +357,25 @@ number
300
357
  _(Optional)_ The gravity modifier applied to the entity when swimming.
301
358
 
302
359
 
360
+ </td></tr>
361
+ <tr><td>
362
+
363
+ [swimIdleLoopedAnimations?](./server.defaultplayerentitycontrolleroptions.swimidleloopedanimations.md)
364
+
365
+
366
+ </td><td>
367
+
368
+
369
+ </td><td>
370
+
371
+ string\[\]
372
+
373
+
374
+ </td><td>
375
+
376
+ _(Optional)_ The looped animation(s) that will play when the entity is not moving while swimming.
377
+
378
+
303
379
  </td></tr>
304
380
  <tr><td>
305
381
 
@@ -316,7 +392,7 @@ string\[\]
316
392
 
317
393
  </td><td>
318
394
 
319
- _(Optional)_ The looped animation(s) that will play when the entity is swimming.
395
+ _(Optional)_ The looped animation(s) that will play when the entity is swimming in any direction.
320
396
 
321
397
 
322
398
  </td></tr>
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [DefaultPlayerEntityControllerOptions](./server.defaultplayerentitycontrolleroptions.md) &gt; [swimIdleLoopedAnimations](./server.defaultplayerentitycontrolleroptions.swimidleloopedanimations.md)
4
+
5
+ ## DefaultPlayerEntityControllerOptions.swimIdleLoopedAnimations property
6
+
7
+ The looped animation(s) that will play when the entity is not moving while swimming.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ swimIdleLoopedAnimations?: string[];
13
+ ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## DefaultPlayerEntityControllerOptions.swimLoopedAnimations property
6
6
 
7
- The looped animation(s) that will play when the entity is swimming.
7
+ The looped animation(s) that will play when the entity is swimming in any direction.
8
8
 
9
9
  **Signature:**
10
10
 
@@ -370,7 +370,7 @@ The preferred shape of the entity's model when automatically generating its coll
370
370
 
371
371
  </td><td>
372
372
 
373
- number \| undefined
373
+ number
374
374
 
375
375
 
376
376
  </td><td>
@@ -706,6 +706,48 @@ Starts looped animations for the entity, blending with other animations currentl
706
706
  Starts a oneshot animation for the entity, blending with other animations currently playing.
707
707
 
708
708
 
709
+ </td></tr>
710
+ <tr><td>
711
+
712
+ [stopAllModelAnimations(excludedAnimations)](./server.entity.stopallmodelanimations.md)
713
+
714
+
715
+ </td><td>
716
+
717
+
718
+ </td><td>
719
+
720
+ Stops all looped and oneshot animations for the entity, optionally excluded the provided animations from stopping.
721
+
722
+
723
+ </td></tr>
724
+ <tr><td>
725
+
726
+ [stopAllModelLoopedAnimations(excludedAnimations)](./server.entity.stopallmodelloopedanimations.md)
727
+
728
+
729
+ </td><td>
730
+
731
+
732
+ </td><td>
733
+
734
+ Stops all looped animations for the entity, optionally excluded the provided animations from stopping.
735
+
736
+
737
+ </td></tr>
738
+ <tr><td>
739
+
740
+ [stopAllModelOneshotAnimations(excludedAnimations)](./server.entity.stopallmodeloneshotanimations.md)
741
+
742
+
743
+ </td><td>
744
+
745
+
746
+ </td><td>
747
+
748
+ Stops all oneshot animations for the entity, optionally excluded the provided animations from stopping.
749
+
750
+
709
751
  </td></tr>
710
752
  <tr><td>
711
753
 
@@ -9,5 +9,5 @@ The scale of the entity's model.
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- get modelScale(): number | undefined;
12
+ get modelScale(): number;
13
13
  ```
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [stopAllModelAnimations](./server.entity.stopallmodelanimations.md)
4
+
5
+ ## Entity.stopAllModelAnimations() method
6
+
7
+ Stops all looped and oneshot animations for the entity, optionally excluded the provided animations from stopping.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ stopAllModelAnimations(excludedAnimations?: string[]): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ excludedAnimations
36
+
37
+
38
+ </td><td>
39
+
40
+ string\[\]
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_ The animations to exclude from being stopped.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [stopAllModelLoopedAnimations](./server.entity.stopallmodelloopedanimations.md)
4
+
5
+ ## Entity.stopAllModelLoopedAnimations() method
6
+
7
+ Stops all looped animations for the entity, optionally excluded the provided animations from stopping.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ stopAllModelLoopedAnimations(excludedAnimations?: string[]): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ excludedAnimations
36
+
37
+
38
+ </td><td>
39
+
40
+ string\[\]
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_ The animations to exclude from being stopped.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -0,0 +1,53 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Entity](./server.entity.md) &gt; [stopAllModelOneshotAnimations](./server.entity.stopallmodeloneshotanimations.md)
4
+
5
+ ## Entity.stopAllModelOneshotAnimations() method
6
+
7
+ Stops all oneshot animations for the entity, optionally excluded the provided animations from stopping.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ stopAllModelOneshotAnimations(excludedAnimations?: string[]): void;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ <table><thead><tr><th>
18
+
19
+ Parameter
20
+
21
+
22
+ </th><th>
23
+
24
+ Type
25
+
26
+
27
+ </th><th>
28
+
29
+ Description
30
+
31
+
32
+ </th></tr></thead>
33
+ <tbody><tr><td>
34
+
35
+ excludedAnimations
36
+
37
+
38
+ </td><td>
39
+
40
+ string\[\]
41
+
42
+
43
+ </td><td>
44
+
45
+ _(Optional)_ The animations to exclude from being stopped.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+