hytopia 0.1.33 → 0.1.34

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 (129) hide show
  1. package/docs/server.collider.md +21 -0
  2. package/docs/server.collider.shape.md +13 -0
  3. package/docs/server.default_block_entity_rigid_body_options.md +13 -0
  4. package/docs/server.default_entity_rigid_body_options.md +1 -1
  5. package/docs/server.entity.blockhalfextents.md +13 -0
  6. package/docs/server.entity.blocktextureuri.md +13 -0
  7. package/docs/server.entity.md +63 -0
  8. package/docs/server.entity.tag.md +13 -0
  9. package/docs/server.entitymanager.getentitiesbytag.md +55 -0
  10. package/docs/server.entitymanager.getentitiesbytagsubstring.md +55 -0
  11. package/docs/server.entitymanager.md +28 -0
  12. package/docs/server.entityoptions.blockhalfextents.md +13 -0
  13. package/docs/server.entityoptions.blocktextureuri.md +13 -0
  14. package/docs/server.entityoptions.md +57 -0
  15. package/docs/server.entityoptions.tag.md +13 -0
  16. package/docs/server.hytopia.collider.md +21 -0
  17. package/docs/server.hytopia.collider.shape.md +13 -0
  18. package/docs/server.hytopia.default_block_entity_rigid_body_options.md +13 -0
  19. package/docs/server.hytopia.default_entity_rigid_body_options.md +1 -1
  20. package/docs/server.hytopia.entity.blockhalfextents.md +13 -0
  21. package/docs/server.hytopia.entity.blocktextureuri.md +13 -0
  22. package/docs/server.hytopia.entity.md +63 -0
  23. package/docs/server.hytopia.entity.tag.md +13 -0
  24. package/docs/server.hytopia.entitymanager.getentitiesbytag.md +55 -0
  25. package/docs/server.hytopia.entitymanager.getentitiesbytagsubstring.md +55 -0
  26. package/docs/server.hytopia.entitymanager.md +28 -0
  27. package/docs/server.hytopia.entityoptions.blockhalfextents.md +13 -0
  28. package/docs/server.hytopia.entityoptions.blocktextureuri.md +13 -0
  29. package/docs/server.hytopia.entityoptions.md +57 -0
  30. package/docs/server.hytopia.entityoptions.tag.md +13 -0
  31. package/docs/server.hytopia.md +12 -1
  32. package/docs/server.hytopia.rigidbody.md +0 -35
  33. package/docs/server.hytopia.rigidbodyoptions.md +0 -19
  34. package/docs/server.hytopia.webserver.md +1 -2
  35. package/docs/server.md +12 -1
  36. package/docs/server.rigidbody.md +0 -35
  37. package/docs/server.rigidbodyoptions.md +0 -19
  38. package/docs/server.webserver.md +1 -2
  39. package/examples/block-entity/README.md +15 -0
  40. package/examples/block-entity/assets/audio/music/cave.mp3 +0 -0
  41. package/examples/block-entity/assets/audio/music/desert.mp3 +0 -0
  42. package/examples/block-entity/assets/audio/music/end.mp3 +0 -0
  43. package/examples/block-entity/assets/audio/music/jungle.mp3 +0 -0
  44. package/examples/block-entity/assets/audio/music/nether.mp3 +0 -0
  45. package/examples/block-entity/assets/audio/music/night.mp3 +0 -0
  46. package/examples/block-entity/assets/audio/music/night2.mp3 +0 -0
  47. package/examples/block-entity/assets/audio/music/overworld.mp3 +0 -0
  48. package/examples/block-entity/assets/audio/music/snow.mp3 +0 -0
  49. package/examples/block-entity/assets/audio/sfx/damage.wav +0 -0
  50. package/examples/block-entity/assets/audio/sfx/step.wav +0 -0
  51. package/examples/block-entity/assets/certs/README.md +10 -0
  52. package/examples/block-entity/assets/certs/localhost.crt +20 -0
  53. package/examples/block-entity/assets/certs/localhost.key +27 -0
  54. package/examples/block-entity/assets/cubemaps/skybox/+x.png +0 -0
  55. package/examples/block-entity/assets/cubemaps/skybox/+y.png +0 -0
  56. package/examples/block-entity/assets/cubemaps/skybox/+z.png +0 -0
  57. package/examples/block-entity/assets/cubemaps/skybox/-x.png +0 -0
  58. package/examples/block-entity/assets/cubemaps/skybox/-y.png +0 -0
  59. package/examples/block-entity/assets/cubemaps/skybox/-z.png +0 -0
  60. package/examples/block-entity/assets/map.json +2623 -0
  61. package/examples/block-entity/assets/models/bat.gltf +1 -0
  62. package/examples/block-entity/assets/models/chicken.gltf +1 -0
  63. package/examples/block-entity/assets/models/cow.gltf +1 -0
  64. package/examples/block-entity/assets/models/donkey.gltf +1 -0
  65. package/examples/block-entity/assets/models/horse.gltf +1 -0
  66. package/examples/block-entity/assets/models/mindflayer.gltf +1 -0
  67. package/examples/block-entity/assets/models/pig.gltf +1 -0
  68. package/examples/block-entity/assets/models/player.gltf +1 -0
  69. package/examples/block-entity/assets/models/rabbit.gltf +1 -0
  70. package/examples/block-entity/assets/models/sheep.gltf +1 -0
  71. package/examples/block-entity/assets/models/skeleton.gltf +1 -0
  72. package/examples/block-entity/assets/models/spider.gltf +1 -0
  73. package/examples/block-entity/assets/models/squid.gltf +1 -0
  74. package/examples/block-entity/assets/models/stalker.gltf +1 -0
  75. package/examples/block-entity/assets/models/zombie.gltf +1 -0
  76. package/examples/block-entity/assets/textures/bricks.png +0 -0
  77. package/examples/block-entity/assets/textures/clay.png +0 -0
  78. package/examples/block-entity/assets/textures/cobblestone.png +0 -0
  79. package/examples/block-entity/assets/textures/diamond_ore.png +0 -0
  80. package/examples/block-entity/assets/textures/dirt.png +0 -0
  81. package/examples/block-entity/assets/textures/dragons_stone.png +0 -0
  82. package/examples/block-entity/assets/textures/emerald_ore.png +0 -0
  83. package/examples/block-entity/assets/textures/glass.png +0 -0
  84. package/examples/block-entity/assets/textures/gold_ore.png +0 -0
  85. package/examples/block-entity/assets/textures/grass/+x.png +0 -0
  86. package/examples/block-entity/assets/textures/grass/+y.png +0 -0
  87. package/examples/block-entity/assets/textures/grass/+z.png +0 -0
  88. package/examples/block-entity/assets/textures/grass/-x.png +0 -0
  89. package/examples/block-entity/assets/textures/grass/-y.png +0 -0
  90. package/examples/block-entity/assets/textures/grass/-z.png +0 -0
  91. package/examples/block-entity/assets/textures/gravel.png +0 -0
  92. package/examples/block-entity/assets/textures/ice.png +0 -0
  93. package/examples/block-entity/assets/textures/infected_shadowrock.png +0 -0
  94. package/examples/block-entity/assets/textures/iron_ore.png +0 -0
  95. package/examples/block-entity/assets/textures/lava.png +0 -0
  96. package/examples/block-entity/assets/textures/log_side.png +0 -0
  97. package/examples/block-entity/assets/textures/log_top.png +0 -0
  98. package/examples/block-entity/assets/textures/mossy_coblestone.png +0 -0
  99. package/examples/block-entity/assets/textures/nuit.png +0 -0
  100. package/examples/block-entity/assets/textures/oak_leaves.png +0 -0
  101. package/examples/block-entity/assets/textures/oak_planks.png +0 -0
  102. package/examples/block-entity/assets/textures/sand.png +0 -0
  103. package/examples/block-entity/assets/textures/sandstone.png +0 -0
  104. package/examples/block-entity/assets/textures/shadowrock.png +0 -0
  105. package/examples/block-entity/assets/textures/snow.png +0 -0
  106. package/examples/block-entity/assets/textures/stone.png +0 -0
  107. package/examples/block-entity/assets/textures/stone_bricks.png +0 -0
  108. package/examples/block-entity/assets/textures/void_grass/+x.png +0 -0
  109. package/examples/block-entity/assets/textures/void_grass/+y.png +0 -0
  110. package/examples/block-entity/assets/textures/void_grass/+z.png +0 -0
  111. package/examples/block-entity/assets/textures/void_grass/-x.png +0 -0
  112. package/examples/block-entity/assets/textures/void_grass/-y.png +0 -0
  113. package/examples/block-entity/assets/textures/void_grass/-z.png +0 -0
  114. package/examples/block-entity/assets/textures/void_sand.png +0 -0
  115. package/examples/block-entity/assets/textures/water.png +0 -0
  116. package/examples/block-entity/index.ts +173 -0
  117. package/examples/block-entity/package.json +14 -0
  118. package/examples/payload-game/index.ts +7 -0
  119. package/package.json +1 -1
  120. package/server.api.json +948 -510
  121. package/server.d.ts +38 -17
  122. package/server.js +80 -80
  123. package/docs/server.hytopia.rigidbody.settag.md +0 -53
  124. package/docs/server.hytopia.rigidbody.tag.md +0 -13
  125. package/docs/server.hytopia.rigidbodyoptions.tag.md +0 -13
  126. package/docs/server.rigidbody.settag.md +0 -53
  127. package/docs/server.rigidbody.tag.md +0 -13
  128. package/docs/server.rigidbodyoptions.tag.md +0 -13
  129. package/examples/README.md +0 -22
@@ -198,6 +198,27 @@ RAPIER.Collider \| undefined
198
198
  The raw collider object from the Rapier physics engine.
199
199
 
200
200
 
201
+ </td></tr>
202
+ <tr><td>
203
+
204
+ [shape](./server.collider.shape.md)
205
+
206
+
207
+ </td><td>
208
+
209
+ `readonly`
210
+
211
+
212
+ </td><td>
213
+
214
+ [ColliderShape](./server.collidershape.md)
215
+
216
+
217
+ </td><td>
218
+
219
+ The shape of the collider.
220
+
221
+
201
222
  </td></tr>
202
223
  <tr><td>
203
224
 
@@ -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; [Collider](./server.collider.md) &gt; [shape](./server.collider.shape.md)
4
+
5
+ ## Collider.shape property
6
+
7
+ The shape of the collider.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get shape(): ColliderShape;
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; [DEFAULT\_BLOCK\_ENTITY\_RIGID\_BODY\_OPTIONS](./server.default_block_entity_rigid_body_options.md)
4
+
5
+ ## DEFAULT\_BLOCK\_ENTITY\_RIGID\_BODY\_OPTIONS variable
6
+
7
+ The default rigid body options for a block entity when EntityOptions.rigidBodyOptions is not provided.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ DEFAULT_BLOCK_ENTITY_RIGID_BODY_OPTIONS: RigidBodyOptions
13
+ ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## DEFAULT\_ENTITY\_RIGID\_BODY\_OPTIONS variable
6
6
 
7
- The default rigid body options when EntityOptions.rigidBodyOptions is not provided.
7
+ The default rigid body options for a model entity when EntityOptions.rigidBodyOptions is not provided.
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; [Entity](./server.entity.md) &gt; [blockHalfExtents](./server.entity.blockhalfextents.md)
4
+
5
+ ## Entity.blockHalfExtents property
6
+
7
+ The half extends of the visual size of the block entity when blockTextureUri is set.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get blockHalfExtents(): Vector3 | undefined;
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; [Entity](./server.entity.md) &gt; [blockTextureUri](./server.entity.blocktextureuri.md)
4
+
5
+ ## Entity.blockTextureUri property
6
+
7
+ The URI or path to the texture to be used, if this is set, the entity is a block entity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get blockTextureUri(): string | undefined;
13
+ ```
@@ -104,6 +104,48 @@ Description
104
104
  </th></tr></thead>
105
105
  <tbody><tr><td>
106
106
 
107
+ [blockHalfExtents](./server.entity.blockhalfextents.md)
108
+
109
+
110
+ </td><td>
111
+
112
+ `readonly`
113
+
114
+
115
+ </td><td>
116
+
117
+ [Vector3](./server.vector3.md) \| undefined
118
+
119
+
120
+ </td><td>
121
+
122
+ The half extends of the visual size of the block entity when blockTextureUri is set.
123
+
124
+
125
+ </td></tr>
126
+ <tr><td>
127
+
128
+ [blockTextureUri](./server.entity.blocktextureuri.md)
129
+
130
+
131
+ </td><td>
132
+
133
+ `readonly`
134
+
135
+
136
+ </td><td>
137
+
138
+ string \| undefined
139
+
140
+
141
+ </td><td>
142
+
143
+ The URI or path to the texture to be used, if this is set, the entity is a block entity.
144
+
145
+
146
+ </td></tr>
147
+ <tr><td>
148
+
107
149
  [characterController](./server.entity.charactercontroller.md)
108
150
 
109
151
 
@@ -400,6 +442,27 @@ _(Optional)_ A function that is called when the entity is spawned.
400
442
  _(Optional)_ A function that is called every tick.
401
443
 
402
444
 
445
+ </td></tr>
446
+ <tr><td>
447
+
448
+ [tag](./server.entity.tag.md)
449
+
450
+
451
+ </td><td>
452
+
453
+ `readonly`
454
+
455
+
456
+ </td><td>
457
+
458
+ string \| undefined
459
+
460
+
461
+ </td><td>
462
+
463
+ An arbitrary identifier tag of the entity. Useful for your own logic.
464
+
465
+
403
466
  </td></tr>
404
467
  <tr><td>
405
468
 
@@ -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; [Entity](./server.entity.md) &gt; [tag](./server.entity.tag.md)
4
+
5
+ ## Entity.tag property
6
+
7
+ An arbitrary identifier tag of the entity. Useful for your own logic.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get tag(): string | undefined;
13
+ ```
@@ -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; [EntityManager](./server.entitymanager.md) &gt; [getEntitiesByTag](./server.entitymanager.getentitiesbytag.md)
4
+
5
+ ## EntityManager.getEntitiesByTag() method
6
+
7
+ Gets all spawned entities in the world with a specific tag.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getEntitiesByTag(tag: string): Entity[];
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
+ tag
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ The tag to get the entities for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Entity](./server.entity.md)<!-- -->\[\]
53
+
54
+ All spawned entities in the world with the provided tag.
55
+
@@ -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; [EntityManager](./server.entitymanager.md) &gt; [getEntitiesByTagSubstring](./server.entitymanager.getentitiesbytagsubstring.md)
4
+
5
+ ## EntityManager.getEntitiesByTagSubstring() method
6
+
7
+ Gets all spawned entities in the world with a tag that includes a specific substring.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getEntitiesByTagSubstring(tagSubstring: string): Entity[];
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
+ tagSubstring
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ The tag substring to get the entities for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Entity](./server.entity.md)<!-- -->\[\]
53
+
54
+ All spawned entities in the world with a tag that includes the provided substring.
55
+
@@ -118,6 +118,34 @@ Gets all spawned entities in the world.
118
118
  Gets all spawned entities in the world assigned to a player.
119
119
 
120
120
 
121
+ </td></tr>
122
+ <tr><td>
123
+
124
+ [getEntitiesByTag(tag)](./server.entitymanager.getentitiesbytag.md)
125
+
126
+
127
+ </td><td>
128
+
129
+
130
+ </td><td>
131
+
132
+ Gets all spawned entities in the world with a specific tag.
133
+
134
+
135
+ </td></tr>
136
+ <tr><td>
137
+
138
+ [getEntitiesByTagSubstring(tagSubstring)](./server.entitymanager.getentitiesbytagsubstring.md)
139
+
140
+
141
+ </td><td>
142
+
143
+
144
+ </td><td>
145
+
146
+ Gets all spawned entities in the world with a tag that includes a specific substring.
147
+
148
+
121
149
  </td></tr>
122
150
  <tr><td>
123
151
 
@@ -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; [EntityOptions](./server.entityoptions.md) &gt; [blockHalfExtents](./server.entityoptions.blockhalfextents.md)
4
+
5
+ ## EntityOptions.blockHalfExtents property
6
+
7
+ The half extents of the visual size of the block entity when blockTextureUri is set. If no rigidBodyOptions.colliders are provided, a block collider with the size of the half extents will be created.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ blockHalfExtents?: Vector3;
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; [EntityOptions](./server.entityoptions.md) &gt; [blockTextureUri](./server.entityoptions.blocktextureuri.md)
4
+
5
+ ## EntityOptions.blockTextureUri property
6
+
7
+ The texture uri of a entity if the entity is a block entity, if set rigidBodyOptions collider shape \[0\] must be a block
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ blockTextureUri?: string;
13
+ ```
@@ -37,6 +37,44 @@ Description
37
37
  </th></tr></thead>
38
38
  <tbody><tr><td>
39
39
 
40
+ [blockHalfExtents?](./server.entityoptions.blockhalfextents.md)
41
+
42
+
43
+ </td><td>
44
+
45
+
46
+ </td><td>
47
+
48
+ [Vector3](./server.vector3.md)
49
+
50
+
51
+ </td><td>
52
+
53
+ _(Optional)_ The half extents of the visual size of the block entity when blockTextureUri is set. If no rigidBodyOptions.colliders are provided, a block collider with the size of the half extents will be created.
54
+
55
+
56
+ </td></tr>
57
+ <tr><td>
58
+
59
+ [blockTextureUri?](./server.entityoptions.blocktextureuri.md)
60
+
61
+
62
+ </td><td>
63
+
64
+
65
+ </td><td>
66
+
67
+ string
68
+
69
+
70
+ </td><td>
71
+
72
+ _(Optional)_ The texture uri of a entity if the entity is a block entity, if set rigidBodyOptions collider shape \[0\] must be a block
73
+
74
+
75
+ </td></tr>
76
+ <tr><td>
77
+
40
78
  [createCustomCharacterController?](./server.entityoptions.createcustomcharactercontroller.md)
41
79
 
42
80
 
@@ -148,5 +186,24 @@ _(Optional)_ The name of the entity.
148
186
  _(Optional)_ The rigid body options for the entity.
149
187
 
150
188
 
189
+ </td></tr>
190
+ <tr><td>
191
+
192
+ [tag?](./server.entityoptions.tag.md)
193
+
194
+
195
+ </td><td>
196
+
197
+
198
+ </td><td>
199
+
200
+ string
201
+
202
+
203
+ </td><td>
204
+
205
+ _(Optional)_ An arbitrary identifier tag of the entity. Useful for your own logic.
206
+
207
+
151
208
  </td></tr>
152
209
  </tbody></table>
@@ -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; [EntityOptions](./server.entityoptions.md) &gt; [tag](./server.entityoptions.tag.md)
4
+
5
+ ## EntityOptions.tag property
6
+
7
+ An arbitrary identifier tag of the entity. Useful for your own logic.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ tag?: string;
13
+ ```
@@ -198,6 +198,27 @@ RAPIER.Collider \| undefined
198
198
  The raw collider object from the Rapier physics engine.
199
199
 
200
200
 
201
+ </td></tr>
202
+ <tr><td>
203
+
204
+ [shape](./server.hytopia.collider.shape.md)
205
+
206
+
207
+ </td><td>
208
+
209
+ `readonly`
210
+
211
+
212
+ </td><td>
213
+
214
+ [ColliderShape](./server.collidershape.md)
215
+
216
+
217
+ </td><td>
218
+
219
+ The shape of the collider.
220
+
221
+
201
222
  </td></tr>
202
223
  <tr><td>
203
224
 
@@ -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; [HYTOPIA](./server.hytopia.md) &gt; [Collider](./server.hytopia.collider.md) &gt; [shape](./server.hytopia.collider.shape.md)
4
+
5
+ ## HYTOPIA.Collider.shape property
6
+
7
+ The shape of the collider.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get shape(): ColliderShape;
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; [HYTOPIA](./server.hytopia.md) &gt; [DEFAULT\_BLOCK\_ENTITY\_RIGID\_BODY\_OPTIONS](./server.hytopia.default_block_entity_rigid_body_options.md)
4
+
5
+ ## HYTOPIA.DEFAULT\_BLOCK\_ENTITY\_RIGID\_BODY\_OPTIONS variable
6
+
7
+ The default rigid body options for a block entity when EntityOptions.rigidBodyOptions is not provided.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ DEFAULT_BLOCK_ENTITY_RIGID_BODY_OPTIONS: RigidBodyOptions
13
+ ```
@@ -4,7 +4,7 @@
4
4
 
5
5
  ## HYTOPIA.DEFAULT\_ENTITY\_RIGID\_BODY\_OPTIONS variable
6
6
 
7
- The default rigid body options when EntityOptions.rigidBodyOptions is not provided.
7
+ The default rigid body options for a model entity when EntityOptions.rigidBodyOptions is not provided.
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; [HYTOPIA](./server.hytopia.md) &gt; [Entity](./server.hytopia.entity.md) &gt; [blockHalfExtents](./server.hytopia.entity.blockhalfextents.md)
4
+
5
+ ## HYTOPIA.Entity.blockHalfExtents property
6
+
7
+ The half extends of the visual size of the block entity when blockTextureUri is set.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get blockHalfExtents(): Vector3 | undefined;
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; [HYTOPIA](./server.hytopia.md) &gt; [Entity](./server.hytopia.entity.md) &gt; [blockTextureUri](./server.hytopia.entity.blocktextureuri.md)
4
+
5
+ ## HYTOPIA.Entity.blockTextureUri property
6
+
7
+ The URI or path to the texture to be used, if this is set, the entity is a block entity.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get blockTextureUri(): string | undefined;
13
+ ```
@@ -104,6 +104,48 @@ Description
104
104
  </th></tr></thead>
105
105
  <tbody><tr><td>
106
106
 
107
+ [blockHalfExtents](./server.hytopia.entity.blockhalfextents.md)
108
+
109
+
110
+ </td><td>
111
+
112
+ `readonly`
113
+
114
+
115
+ </td><td>
116
+
117
+ [Vector3](./server.vector3.md) \| undefined
118
+
119
+
120
+ </td><td>
121
+
122
+ The half extends of the visual size of the block entity when blockTextureUri is set.
123
+
124
+
125
+ </td></tr>
126
+ <tr><td>
127
+
128
+ [blockTextureUri](./server.hytopia.entity.blocktextureuri.md)
129
+
130
+
131
+ </td><td>
132
+
133
+ `readonly`
134
+
135
+
136
+ </td><td>
137
+
138
+ string \| undefined
139
+
140
+
141
+ </td><td>
142
+
143
+ The URI or path to the texture to be used, if this is set, the entity is a block entity.
144
+
145
+
146
+ </td></tr>
147
+ <tr><td>
148
+
107
149
  [characterController](./server.hytopia.entity.charactercontroller.md)
108
150
 
109
151
 
@@ -400,6 +442,27 @@ _(Optional)_ A function that is called when the entity is spawned.
400
442
  _(Optional)_ A function that is called every tick.
401
443
 
402
444
 
445
+ </td></tr>
446
+ <tr><td>
447
+
448
+ [tag](./server.hytopia.entity.tag.md)
449
+
450
+
451
+ </td><td>
452
+
453
+ `readonly`
454
+
455
+
456
+ </td><td>
457
+
458
+ string \| undefined
459
+
460
+
461
+ </td><td>
462
+
463
+ An arbitrary identifier tag of the entity. Useful for your own logic.
464
+
465
+
403
466
  </td></tr>
404
467
  <tr><td>
405
468
 
@@ -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; [HYTOPIA](./server.hytopia.md) &gt; [Entity](./server.hytopia.entity.md) &gt; [tag](./server.hytopia.entity.tag.md)
4
+
5
+ ## HYTOPIA.Entity.tag property
6
+
7
+ An arbitrary identifier tag of the entity. Useful for your own logic.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ get tag(): string | undefined;
13
+ ```
@@ -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; [HYTOPIA](./server.hytopia.md) &gt; [EntityManager](./server.hytopia.entitymanager.md) &gt; [getEntitiesByTag](./server.hytopia.entitymanager.getentitiesbytag.md)
4
+
5
+ ## HYTOPIA.EntityManager.getEntitiesByTag() method
6
+
7
+ Gets all spawned entities in the world with a specific tag.
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ getEntitiesByTag(tag: string): Entity[];
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
+ tag
36
+
37
+
38
+ </td><td>
39
+
40
+ string
41
+
42
+
43
+ </td><td>
44
+
45
+ The tag to get the entities for.
46
+
47
+
48
+ </td></tr>
49
+ </tbody></table>
50
+ **Returns:**
51
+
52
+ [Entity](./server.entity.md)<!-- -->\[\]
53
+
54
+ All spawned entities in the world with the provided tag.
55
+