hytopia 0.1.58 → 0.1.60

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 (48) hide show
  1. package/docs/server.audio._constructor_.md +2 -0
  2. package/docs/server.audio.setattachedtoentity.md +1 -1
  3. package/docs/server.audiomanager.md +28 -0
  4. package/docs/server.audiomanager.unregisteraudio.md +53 -0
  5. package/docs/server.audiomanager.unregisterentityattachedaudios.md +53 -0
  6. package/docs/server.blocktype.isliquid.md +13 -0
  7. package/docs/server.blocktype.md +21 -0
  8. package/docs/server.blocktypeoptions.isliquid.md +11 -0
  9. package/docs/server.blocktypeoptions.md +19 -0
  10. package/docs/{server.chunk.getblock.md → server.chunk.getblockid.md} +3 -3
  11. package/docs/server.chunk.md +1 -1
  12. package/docs/{server.chunklattice.getblock.md → server.chunklattice.getblockid.md} +3 -3
  13. package/docs/server.chunklattice.getblocktype.md +55 -0
  14. package/docs/server.chunklattice.md +15 -1
  15. package/docs/server.md +33 -0
  16. package/docs/server.sceneui._constructor_.md +49 -0
  17. package/docs/server.sceneui.attachedtoentity.md +11 -0
  18. package/docs/server.sceneui.id.md +11 -0
  19. package/docs/server.sceneui.isloaded.md +11 -0
  20. package/docs/server.sceneui.load.md +53 -0
  21. package/docs/server.sceneui.md +344 -0
  22. package/docs/server.sceneui.offset.md +11 -0
  23. package/docs/server.sceneui.position.md +11 -0
  24. package/docs/server.sceneui.setattachedtoentity.md +53 -0
  25. package/docs/server.sceneui.setoffset.md +53 -0
  26. package/docs/server.sceneui.setposition.md +53 -0
  27. package/docs/server.sceneui.setstate.md +53 -0
  28. package/docs/server.sceneui.state.md +11 -0
  29. package/docs/server.sceneui.templateid.md +11 -0
  30. package/docs/server.sceneui.unload.md +17 -0
  31. package/docs/server.sceneui.world.md +11 -0
  32. package/docs/server.sceneuimanager.getallentityattachedsceneuis.md +55 -0
  33. package/docs/server.sceneuimanager.getallsceneuis.md +19 -0
  34. package/docs/server.sceneuimanager.md +127 -0
  35. package/docs/server.sceneuimanager.unloadentityattachedsceneuis.md +53 -0
  36. package/docs/server.sceneuimanager.world.md +13 -0
  37. package/docs/server.sceneuioptions.attachedtoentity.md +13 -0
  38. package/docs/server.sceneuioptions.md +133 -0
  39. package/docs/server.sceneuioptions.offset.md +13 -0
  40. package/docs/server.sceneuioptions.position.md +13 -0
  41. package/docs/server.sceneuioptions.state.md +13 -0
  42. package/docs/server.sceneuioptions.templateid.md +13 -0
  43. package/docs/server.world.md +21 -0
  44. package/docs/server.world.sceneuimanager.md +13 -0
  45. package/package.json +1 -1
  46. package/server.api.json +1235 -44
  47. package/server.d.ts +169 -12
  48. package/server.js +83 -83
@@ -42,6 +42,8 @@ options
42
42
 
43
43
  </td><td>
44
44
 
45
+ The options for the Audio instance.
46
+
45
47
 
46
48
  </td></tr>
47
49
  </tbody></table>
@@ -42,7 +42,7 @@ entity
42
42
 
43
43
  </td><td>
44
44
 
45
- The entity to attach the audio to.
45
+ The entity to attach the Audio to.
46
46
 
47
47
 
48
48
  </td></tr>
@@ -146,5 +146,33 @@ Retrieves all looped audio instances for the world.
146
146
  Retrieves all oneshot (non-looped) audio instances for the world.
147
147
 
148
148
 
149
+ </td></tr>
150
+ <tr><td>
151
+
152
+ [unregisterAudio(audio)](./server.audiomanager.unregisteraudio.md)
153
+
154
+
155
+ </td><td>
156
+
157
+
158
+ </td><td>
159
+
160
+ Unregisters and stops an audio instance from the audio manager.
161
+
162
+
163
+ </td></tr>
164
+ <tr><td>
165
+
166
+ [unregisterEntityAttachedAudios(entity)](./server.audiomanager.unregisterentityattachedaudios.md)
167
+
168
+
169
+ </td><td>
170
+
171
+
172
+ </td><td>
173
+
174
+ Unregisters and stops all audio instances attached to a specific entity.
175
+
176
+
149
177
  </td></tr>
150
178
  </tbody></table>
@@ -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; [AudioManager](./server.audiomanager.md) &gt; [unregisterAudio](./server.audiomanager.unregisteraudio.md)
4
+
5
+ ## AudioManager.unregisterAudio() method
6
+
7
+ Unregisters and stops an audio instance from the audio manager.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ unregisterAudio(audio: Audio): 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
+ audio
36
+
37
+
38
+ </td><td>
39
+
40
+ [Audio](./server.audio.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The audio instance to pause and unregister.
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; [AudioManager](./server.audiomanager.md) &gt; [unregisterEntityAttachedAudios](./server.audiomanager.unregisterentityattachedaudios.md)
4
+
5
+ ## AudioManager.unregisterEntityAttachedAudios() method
6
+
7
+ Unregisters and stops all audio instances attached to a specific entity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ unregisterEntityAttachedAudios(entity: Entity): 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
+ entity
36
+
37
+
38
+ </td><td>
39
+
40
+ [Entity](./server.entity.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The entity to pause and unregister audio instances for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+
@@ -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; [BlockType](./server.blocktype.md) &gt; [isLiquid](./server.blocktype.isliquid.md)
4
+
5
+ ## BlockType.isLiquid property
6
+
7
+ Whether the block type is a liquid.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get isLiquid(): boolean;
13
+ ```
@@ -130,6 +130,27 @@ number
130
130
  The unique identifier for the block type.
131
131
 
132
132
 
133
+ </td></tr>
134
+ <tr><td>
135
+
136
+ [isLiquid](./server.blocktype.isliquid.md)
137
+
138
+
139
+ </td><td>
140
+
141
+ `readonly`
142
+
143
+
144
+ </td><td>
145
+
146
+ boolean
147
+
148
+
149
+ </td><td>
150
+
151
+ Whether the block type is a liquid.
152
+
153
+
133
154
  </td></tr>
134
155
  <tr><td>
135
156
 
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [BlockTypeOptions](./server.blocktypeoptions.md) &gt; [isLiquid](./server.blocktypeoptions.isliquid.md)
4
+
5
+ ## BlockTypeOptions.isLiquid property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ isLiquid?: boolean;
11
+ ```
@@ -70,6 +70,25 @@ number
70
70
  </td><td>
71
71
 
72
72
 
73
+ </td></tr>
74
+ <tr><td>
75
+
76
+ [isLiquid?](./server.blocktypeoptions.isliquid.md)
77
+
78
+
79
+ </td><td>
80
+
81
+
82
+ </td><td>
83
+
84
+ boolean
85
+
86
+
87
+ </td><td>
88
+
89
+ _(Optional)_
90
+
91
+
73
92
  </td></tr>
74
93
  <tr><td>
75
94
 
@@ -1,15 +1,15 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [Chunk](./server.chunk.md) &gt; [getBlock](./server.chunk.getblock.md)
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [Chunk](./server.chunk.md) &gt; [getBlockId](./server.chunk.getblockid.md)
4
4
 
5
- ## Chunk.getBlock() method
5
+ ## Chunk.getBlockId() method
6
6
 
7
7
  Get the block type id at a specific local coordinate.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getBlock(localCoordinate: Vector3Like): number;
12
+ getBlockId(localCoordinate: Vector3Like): number;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -247,7 +247,7 @@ Despawn the chunk from the world.
247
247
  </td></tr>
248
248
  <tr><td>
249
249
 
250
- [getBlock(localCoordinate)](./server.chunk.getblock.md)
250
+ [getBlockId(localCoordinate)](./server.chunk.getblockid.md)
251
251
 
252
252
 
253
253
  </td><td>
@@ -1,15 +1,15 @@
1
1
  <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
2
 
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLattice](./server.chunklattice.md) &gt; [getBlock](./server.chunklattice.getblock.md)
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLattice](./server.chunklattice.md) &gt; [getBlockId](./server.chunklattice.getblockid.md)
4
4
 
5
- ## ChunkLattice.getBlock() method
5
+ ## ChunkLattice.getBlockId() method
6
6
 
7
7
  Get the block type id at a specific global coordinate.
8
8
 
9
9
  **Signature:**
10
10
 
11
11
  ```typescript
12
- getBlock(globalCoordinate: Vector3Like): number;
12
+ getBlockId(globalCoordinate: Vector3Like): number;
13
13
  ```
14
14
 
15
15
  ## Parameters
@@ -0,0 +1,55 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLattice](./server.chunklattice.md) &gt; [getBlockType](./server.chunklattice.getblocktype.md)
4
+
5
+ ## ChunkLattice.getBlockType() method
6
+
7
+ Get the block type at a specific global coordinate.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getBlockType(globalCoordinate: Vector3Like): BlockType | null;
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
+ globalCoordinate
36
+
37
+
38
+ </td><td>
39
+
40
+ [Vector3Like](./server.vector3like.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The global coordinate of the block to get.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [BlockType](./server.blocktype.md) \| null
53
+
54
+ The block type, null if no block is set.
55
+
@@ -84,7 +84,7 @@ Get all chunks in the lattice.
84
84
  </td></tr>
85
85
  <tr><td>
86
86
 
87
- [getBlock(globalCoordinate)](./server.chunklattice.getblock.md)
87
+ [getBlockId(globalCoordinate)](./server.chunklattice.getblockid.md)
88
88
 
89
89
 
90
90
  </td><td>
@@ -95,6 +95,20 @@ Get all chunks in the lattice.
95
95
  Get the block type id at a specific global coordinate.
96
96
 
97
97
 
98
+ </td></tr>
99
+ <tr><td>
100
+
101
+ [getBlockType(globalCoordinate)](./server.chunklattice.getblocktype.md)
102
+
103
+
104
+ </td><td>
105
+
106
+
107
+ </td><td>
108
+
109
+ Get the block type at a specific global coordinate.
110
+
111
+
98
112
  </td></tr>
99
113
  <tr><td>
100
114
 
package/docs/server.md CHANGED
@@ -258,6 +258,28 @@ Represents a quaternion.
258
258
  Represents a rigid body in a world's physics simulation.
259
259
 
260
260
 
261
+ </td></tr>
262
+ <tr><td>
263
+
264
+ [SceneUI](./server.sceneui.md)
265
+
266
+
267
+ </td><td>
268
+
269
+ UI rendered within the 3D space of a world's game scene.
270
+
271
+
272
+ </td></tr>
273
+ <tr><td>
274
+
275
+ [SceneUIManager](./server.sceneuimanager.md)
276
+
277
+
278
+ </td><td>
279
+
280
+ Manages SceneUI instances in a world.
281
+
282
+
261
283
  </td></tr>
262
284
  <tr><td>
263
285
 
@@ -670,6 +692,17 @@ A RGB color.
670
692
  Options for creating a RigidBody instance.
671
693
 
672
694
 
695
+ </td></tr>
696
+ <tr><td>
697
+
698
+ [SceneUIOptions](./server.sceneuioptions.md)
699
+
700
+
701
+ </td><td>
702
+
703
+ Options for creating a SceneUI instance.
704
+
705
+
673
706
  </td></tr>
674
707
  <tr><td>
675
708
 
@@ -0,0 +1,49 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [(constructor)](./server.sceneui._constructor_.md)
4
+
5
+ ## SceneUI.(constructor)
6
+
7
+ Constructs a new instance of the `SceneUI` class
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ constructor(options: SceneUIOptions);
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
+ options
36
+
37
+
38
+ </td><td>
39
+
40
+ [SceneUIOptions](./server.sceneuioptions.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The options for the SceneUI instance.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [attachedToEntity](./server.sceneui.attachedtoentity.md)
4
+
5
+ ## SceneUI.attachedToEntity property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ get attachedToEntity(): Entity | undefined;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [id](./server.sceneui.id.md)
4
+
5
+ ## SceneUI.id property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ get id(): number | undefined;
11
+ ```
@@ -0,0 +1,11 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [server](./server.md) &gt; [SceneUI](./server.sceneui.md) &gt; [isLoaded](./server.sceneui.isloaded.md)
4
+
5
+ ## SceneUI.isLoaded property
6
+
7
+ **Signature:**
8
+
9
+ ```typescript
10
+ get isLoaded(): boolean;
11
+ ```
@@ -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; [SceneUI](./server.sceneui.md) &gt; [load](./server.sceneui.load.md)
4
+
5
+ ## SceneUI.load() method
6
+
7
+ Loads the SceneUI into the world.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ load(world: World): 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
+ world
36
+
37
+
38
+ </td><td>
39
+
40
+ [World](./server.world.md)
41
+
42
+
43
+ </td><td>
44
+
45
+ The world to load the SceneUI into.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ void
53
+