hytopia 0.8.6-devtrace-allocs → 0.8.6-devtrace-0630c0c

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 (53) hide show
  1. package/bun-server.mjs +159 -159
  2. package/docs/server.audiomanager.getallaudios.md +1 -38
  3. package/docs/server.audiomanager.getallentityattachedaudios.md +1 -17
  4. package/docs/server.audiomanager.getallloopedaudios.md +1 -38
  5. package/docs/server.audiomanager.getalloneshotaudios.md +1 -38
  6. package/docs/server.audiomanager.md +4 -4
  7. package/docs/server.blocktype._constructor_.md +1 -15
  8. package/docs/server.blocktype.md +1 -22
  9. package/docs/server.blocktyperegistry.getallblocktypes.md +1 -38
  10. package/docs/server.blocktyperegistry.md +1 -1
  11. package/docs/server.chunk._constructor_.md +1 -15
  12. package/docs/server.chunk.md +1 -22
  13. package/docs/server.chunklattice.getallchunks.md +1 -38
  14. package/docs/server.chunklattice.md +1 -22
  15. package/docs/server.chunklatticeevent.md +0 -14
  16. package/docs/server.chunklatticeeventpayloads.md +0 -19
  17. package/docs/server.entitymanager.getallentities.md +1 -38
  18. package/docs/server.entitymanager.md +1 -1
  19. package/docs/server.lightmanager.getalllights.md +1 -38
  20. package/docs/server.lightmanager.md +1 -1
  21. package/docs/server.md +1 -34
  22. package/docs/server.particleemitter.md +0 -14
  23. package/docs/server.particleemitterevent.md +0 -14
  24. package/docs/server.particleemittereventpayloads.md +0 -19
  25. package/docs/server.particleemittermanager.getallparticleemitters.md +1 -38
  26. package/docs/server.particleemittermanager.md +1 -1
  27. package/docs/server.rgbcolor.md +1 -1
  28. package/docs/server.sceneuimanager.getallsceneuis.md +1 -38
  29. package/docs/server.sceneuimanager.md +1 -1
  30. package/docs/server.telemetryspanoperation.md +0 -14
  31. package/docs/server.world.md +0 -21
  32. package/node-server.mjs +164 -164
  33. package/package.json +1 -1
  34. package/server.api.json +53 -1281
  35. package/server.d.ts +32 -203
  36. package/docs/server.array3number.md +0 -13
  37. package/docs/server.array4number.md +0 -13
  38. package/docs/server.blocktype.blocktyperegistry.md +0 -13
  39. package/docs/server.chunk.chunklattice.md +0 -13
  40. package/docs/server.chunklattice.world.md +0 -13
  41. package/docs/server.chunklatticeeventpayloads._chunk_lattice.add_chunk_.md +0 -16
  42. package/docs/server.particleemitter.burst.md +0 -54
  43. package/docs/server.particleemittereventpayloads._particle_emitter.burst_.md +0 -16
  44. package/docs/server.tickallocator.filter.md +0 -72
  45. package/docs/server.tickallocator.getarray.md +0 -72
  46. package/docs/server.tickallocator.getarray3number.md +0 -56
  47. package/docs/server.tickallocator.getarray4number.md +0 -56
  48. package/docs/server.tickallocator.getobject.md +0 -72
  49. package/docs/server.tickallocator.getset.md +0 -72
  50. package/docs/server.tickallocator.map.md +0 -72
  51. package/docs/server.tickallocator.md +0 -163
  52. package/docs/server.tickallocator.reset.md +0 -17
  53. package/docs/server.world.tickallocator.md +0 -13
package/server.d.ts CHANGED
@@ -5,20 +5,14 @@ import http from 'http';
5
5
  import type { IncomingMessage } from 'http';
6
6
  import type { InputSchema } from '@hytopia.com/server-protocol';
7
7
  import type { LobbyMembershipDto } from '@hytopia.com/creative-lib/dist/impl/getSession';
8
+ import mediasoup from 'mediasoup';
8
9
  import protocol from '@hytopia.com/server-protocol';
9
10
  import RAPIER from '@dimforge/rapier3d-simd-compat';
10
11
  import { SdpMatrix3 } from '@dimforge/rapier3d-simd-compat';
11
12
  import * as Sentry from '@sentry/node';
12
13
  import type { Socket } from 'net';
13
- import type { types } from 'mediasoup';
14
14
  import { WebSocket as WebSocket_2 } from 'ws';
15
15
 
16
- /** A 3-element number array. @public */
17
- export declare type Array3Number = [number, number, number];
18
-
19
- /** A 4-element number array. @public */
20
- export declare type Array4Number = [number, number, number, number];
21
-
22
16
  /**
23
17
  * Represents a audio playback in a world.
24
18
  *
@@ -279,40 +273,28 @@ export declare class AudioManager {
279
273
  /**
280
274
  * Retrieves all loaded audio instances for the world.
281
275
  *
282
- * @param tickAllocated - If true, uses the tick allocator and frees
283
- * the allocated array at the end of the current tick. false by default.
284
- *
285
276
  * @returns An array of audio instances.
286
277
  */
287
- getAllAudios(tickAllocated?: boolean): Audio[];
278
+ getAllAudios(): Audio[];
288
279
  /**
289
280
  * Retrieves all loaded audio instances attached to a specific entity.
290
281
  *
291
282
  * @param entity - The entity to get attached audio instances for.
292
- * @param tickAllocated - If true, uses the tick allocator and frees
293
- * the allocated array at the end of the current tick. false by default.
294
-
295
283
  * @returns An array of audio instances.
296
284
  */
297
- getAllEntityAttachedAudios(entity: Entity, tickAllocated?: boolean): Audio[];
285
+ getAllEntityAttachedAudios(entity: Entity): Audio[];
298
286
  /**
299
287
  * Retrieves all looped audio instances for the world.
300
288
  *
301
- * @param tickAllocated - If true, uses the tick allocator and frees
302
- * the allocated array at the end of the current tick. false by default.
303
- *
304
289
  * @returns An array of audio instances.
305
290
  */
306
- getAllLoopedAudios(tickAllocated?: boolean): Audio[];
291
+ getAllLoopedAudios(): Audio[];
307
292
  /**
308
293
  * Retrieves all oneshot (non-looped) audio instances for the world.
309
294
  *
310
- * @param tickAllocated - If true, uses the tick allocator and frees
311
- * the allocated array at the end of the current tick. false by default.
312
- *
313
295
  * @returns An array of audio instances.
314
296
  */
315
- getAllOneshotAudios(tickAllocated?: boolean): Audio[];
297
+ getAllOneshotAudios(): Audio[];
316
298
 
317
299
  /**
318
300
  * Unregisters and stops an audio instance from the audio manager.
@@ -622,17 +604,14 @@ export declare class BlockType extends EventRouter implements protocol.Serializa
622
604
 
623
605
 
624
606
 
625
-
626
607
  /**
627
608
  * Creates a new block type instance.
628
609
  * @param world - The world the block type is for.
629
610
  * @param options - The options for the block type.
630
611
  */
631
- constructor(blockTypeRegistry: BlockTypeRegistry, options?: BlockTypeOptions);
612
+ constructor(options?: BlockTypeOptions);
632
613
  /** The unique identifier for the block type. */
633
614
  get id(): number;
634
- /** The block type registry that the block type belongs to. */
635
- get blockTypeRegistry(): BlockTypeRegistry;
636
615
  /** The collider options for the block type. */
637
616
  get colliderOptions(): VoxelsColliderOptions;
638
617
  /** The half extents size of the block type. */
@@ -724,15 +703,9 @@ export declare class BlockTypeRegistry extends EventRouter implements protocol.S
724
703
  get world(): World;
725
704
  /**
726
705
  * Get all registered block types.
727
- *
728
- * @param tickAllocated - Whether to use the tick allocator to allocate the
729
- * returned array of BlockType instances. The allocated array will be collected
730
- * and released at the end of the current tick if true. Only use this if
731
- * you know what you're doing.
732
- *
733
706
  * @returns An array of all registered block types.
734
707
  */
735
- getAllBlockTypes(tickAllocated?: boolean): BlockType[];
708
+ getAllBlockTypes(): BlockType[];
736
709
  /**
737
710
  * Get a registered block type by its id.
738
711
  * @param id - The id of the block type to get.
@@ -890,15 +863,12 @@ export declare class ChatManager extends EventRouter {
890
863
  export declare class Chunk implements protocol.Serializable {
891
864
 
892
865
 
893
-
894
866
  /**
895
867
  * Creates a new chunk instance.
896
868
  */
897
- constructor(chunkLattice: ChunkLattice, originCoordinate: Vector3Like);
869
+ constructor(originCoordinate: Vector3Like);
898
870
  /** The blocks in the chunk as a flat Uint8Array[4096], each index as 0 or a block type id. */
899
871
  get blocks(): Readonly<Uint8Array>;
900
- /** The chunk lattice that the chunk belongs to. */
901
- get chunkLattice(): ChunkLattice;
902
872
  /** The origin coordinate of the chunk. */
903
873
  get originCoordinate(): Vector3Like;
904
874
  /**
@@ -959,8 +929,6 @@ export declare class ChunkLattice extends EventRouter {
959
929
  constructor(world: World);
960
930
  /** The number of chunks in the lattice. */
961
931
  get chunkCount(): number;
962
- /** The world that the chunk lattice belongs to. */
963
- get world(): World;
964
932
  /**
965
933
  * Removes and clears all chunks and their blocks from the lattice.
966
934
  */
@@ -999,15 +967,9 @@ export declare class ChunkLattice extends EventRouter {
999
967
  getOrCreateChunk(globalCoordinate: Vector3Like): Chunk;
1000
968
  /**
1001
969
  * Get all chunks in the lattice.
1002
- *
1003
- * @param tickAllocated - Whether to use the tick allocator to allocate the
1004
- * returned array of Chunk instances. The allocated array will be collected
1005
- * and released at the end of the current tick if true. Only use this if
1006
- * you know what you're doing.
1007
- *
1008
970
  * @returns An array of all chunks in the lattice.
1009
971
  */
1010
- getAllChunks(tickAllocated?: boolean): Chunk[];
972
+ getAllChunks(): Chunk[];
1011
973
  /**
1012
974
  * Check if a block exists at a specific global coordinate.
1013
975
  * @param globalCoordinate - The global coordinate of the block to check.
@@ -1034,18 +996,12 @@ export declare class ChunkLattice extends EventRouter {
1034
996
 
1035
997
  /** Event types a ChunkLattice instance can emit. See {@link ChunkLatticeEventPayloads} for the payloads. @public */
1036
998
  export declare enum ChunkLatticeEvent {
1037
- ADD_CHUNK = "CHUNK_LATTICE.ADD_CHUNK",
1038
999
  REMOVE_CHUNK = "CHUNK_LATTICE.REMOVE_CHUNK",
1039
1000
  SET_BLOCK = "CHUNK_LATTICE.SET_BLOCK"
1040
1001
  }
1041
1002
 
1042
1003
  /** Event payloads for ChunkLattice emitted events. @public */
1043
1004
  export declare interface ChunkLatticeEventPayloads {
1044
- /** Emitted when a chunk is added to the lattice. */
1045
- [ChunkLatticeEvent.ADD_CHUNK]: {
1046
- chunkLattice: ChunkLattice;
1047
- chunk: Chunk;
1048
- };
1049
1005
  /** Emitted when a chunk is removed from the lattice. */
1050
1006
  [ChunkLatticeEvent.REMOVE_CHUNK]: {
1051
1007
  chunkLattice: ChunkLattice;
@@ -2153,15 +2109,9 @@ export declare class EntityManager {
2153
2109
 
2154
2110
  /**
2155
2111
  * Gets all spawned entities in the world.
2156
- *
2157
- * @param tickAllocated - Whether to use the tick allocator to allocate the
2158
- * returned array of Entity instances. The allocated array will be collected
2159
- * and released at the end of the current tick if true. Only use this if
2160
- * you know what you're doing.
2161
- *
2162
2112
  * @returns All spawned entities in the world.
2163
2113
  */
2164
- getAllEntities(tickAllocated?: boolean): Entity[];
2114
+ getAllEntities(): Entity[];
2165
2115
  /**
2166
2116
  * Gets all spawned player entities in the world.
2167
2117
  * @returns All spawned player entities in the world.
@@ -2811,14 +2761,9 @@ export declare class LightManager {
2811
2761
  /**
2812
2762
  * Retrieves all spawned Light instances for the world.
2813
2763
  *
2814
- * @param tickAllocated - Whether to use the tick allocator to allocate the
2815
- * returned array of Light instances. The allocated array will be collected
2816
- * and released at the end of the current tick if true. Only use this if
2817
- * you know what you're doing.
2818
- *
2819
2764
  * @returns An array of Light instances.
2820
2765
  */
2821
- getAllLights(tickAllocated?: boolean): Light[];
2766
+ getAllLights(): Light[];
2822
2767
  /**
2823
2768
  * Retrieves all spawned Light instances attached to a specific entity.
2824
2769
  *
@@ -3917,12 +3862,6 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
3917
3862
  * @param velocityVariance - The velocity variance of an emitted particle.
3918
3863
  */
3919
3864
  setVelocityVariance(velocityVariance: Vector3Like): void;
3920
- /**
3921
- * Creates a burst of particles, regardless of pause state.
3922
- *
3923
- * @param count - The number of particles to burst.
3924
- */
3925
- burst(count: number): void;
3926
3865
  /**
3927
3866
  * Despawns the ParticleEmitter from the world.
3928
3867
  */
@@ -3946,7 +3885,6 @@ export declare class ParticleEmitter extends EventRouter implements protocol.Ser
3946
3885
 
3947
3886
  /** Event types a ParticleEmitter instance can emit. See {@link ParticleEmitterEventPayloads} @public */
3948
3887
  export declare enum ParticleEmitterEvent {
3949
- BURST = "PARTICLE_EMITTER.BURST",
3950
3888
  DESPAWN = "PARTICLE_EMITTER.DESPAWN",
3951
3889
  SET_ALPHA_TEST = "PARTICLE_EMITTER.SET_ALPHA_TEST",
3952
3890
  SET_ATTACHED_TO_ENTITY = "PARTICLE_EMITTER.SET_ATTACHED_TO_ENTITY",
@@ -3982,11 +3920,6 @@ export declare enum ParticleEmitterEvent {
3982
3920
 
3983
3921
  /** Event payloads for ParticleEmitter emitted events. @public */
3984
3922
  export declare interface ParticleEmitterEventPayloads {
3985
- /** Emitted when a ParticleEmitter bursts the specified number of particles. */
3986
- [ParticleEmitterEvent.BURST]: {
3987
- particleEmitter: ParticleEmitter;
3988
- count: number;
3989
- };
3990
3923
  /** Emitted when a ParticleEmitter is despawned. */
3991
3924
  [ParticleEmitterEvent.DESPAWN]: {
3992
3925
  particleEmitter: ParticleEmitter;
@@ -4164,14 +4097,9 @@ export declare class ParticleEmitterManager {
4164
4097
  /**
4165
4098
  * Retrieves all spawned ParticleEmitter instances for the world.
4166
4099
  *
4167
- * @param tickAllocated - Whether to use the tick allocator to allocate the
4168
- * returned array of ParticleEmitter instances. The allocated array will be collected
4169
- * and released at the end of the current tick if true. Only use this if
4170
- * you know what you're doing.
4171
- *
4172
4100
  * @returns An array of ParticleEmitter instances.
4173
4101
  */
4174
- getAllParticleEmitters(tickAllocated?: boolean): ParticleEmitter[];
4102
+ getAllParticleEmitters(): ParticleEmitter[];
4175
4103
  /**
4176
4104
  * Retrieves all spawned ParticleEmitter instances attached to a specific entity.
4177
4105
  *
@@ -5265,7 +5193,7 @@ export declare type RaycastOptions = {
5265
5193
  solidMode?: boolean;
5266
5194
  } & FilterOptions;
5267
5195
 
5268
- /** A RGB color. r, g and b expect a value between 0 and 255. @public */
5196
+ /** A RGB color. @public */
5269
5197
  export declare interface RgbColor {
5270
5198
  r: number;
5271
5199
  g: number;
@@ -5802,14 +5730,9 @@ export declare class SceneUIManager {
5802
5730
  /**
5803
5731
  * Retrieves all loaded SceneUI instances for the world.
5804
5732
  *
5805
- * @param tickAllocated - Whether to use the tick allocator to allocate the
5806
- * returned array of SceneUI instances. The allocated array will be collected
5807
- * and released at the end of the current tick if true. Only use this if
5808
- * you know what you're doing.
5809
- *
5810
5733
  * @returns An array of SceneUI instances.
5811
5734
  */
5812
- getAllSceneUIs(tickAllocated?: boolean): SceneUI[];
5735
+ getAllSceneUIs(): SceneUI[];
5813
5736
  /**
5814
5737
  * Retrieves all loaded SceneUI instances attached to a specific entity.
5815
5738
  *
@@ -6255,7 +6178,6 @@ export declare enum TelemetrySpanOperation {
6255
6178
  NETWORK_SYNCHRONIZE_CLEANUP = "network_synchronize_cleanup",
6256
6179
  PHYSICS_CLEANUP = "physics_cleanup",
6257
6180
  PHYSICS_STEP = "physics_step",
6258
- RELEASE_TICK_ALLOCATION = "release_tick_allocation",
6259
6181
  SEND_ALL_PACKETS = "send_all_packets",
6260
6182
  SEND_PACKETS = "send_packets",
6261
6183
  SERIALIZE_FREE_BUFFERS = "serialize_free_buffers",
@@ -6274,96 +6196,6 @@ export declare type TelemetrySpanOptions = {
6274
6196
  attributes?: Record<string, string | number>;
6275
6197
  };
6276
6198
 
6277
- /**
6278
- * High-performance tick-scoped allocator for temporary objects, arrays, and buffers.
6279
- * All allocations are automatically bulk-released when reset() is called.
6280
- *
6281
- * @remarks
6282
- * TickAllocator maintains separate pools for different data types and tracks all
6283
- * allocations made during a tick cycle. Objects are reused across ticks to eliminate
6284
- * garbage collection overhead in hot paths like network synchronization.
6285
- *
6286
- * @example
6287
- * ```typescript
6288
- * // Allocate during tick
6289
- * const position = tickAllocator.getArray3Number();
6290
- * const rotation = tickAllocator.getArray4Number();
6291
- * const data = tickAllocator.getObject<EntitySchema>();
6292
- *
6293
- * // At end of tick - bulk release everything
6294
- * tickAllocator.reset();
6295
- * ```
6296
- *
6297
- * @public
6298
- */
6299
- export declare class TickAllocator {
6300
-
6301
-
6302
-
6303
-
6304
-
6305
-
6306
-
6307
-
6308
-
6309
-
6310
- /**
6311
- * Filters an array using a callback function.
6312
- * @typeParam T - The type of the array.
6313
- * @param array - The array to filter.
6314
- * @param callback - The callback function to filter the array.
6315
- * @returns A new array with the filtered values.
6316
- */
6317
- filter<T>(array: T[], callback: (value: T, index: number, array: T[]) => boolean): T[];
6318
- /**
6319
- * Gets a generic array from the pool.
6320
- * Array is reset to empty state and ready for use.
6321
- * @typeParam T - The array type.
6322
- * @returns A reusable array.
6323
- */
6324
- getArray<T extends unknown[] = unknown[]>(copyFromA?: Iterable<unknown>, copyFromB?: Iterable<unknown>): T;
6325
- /**
6326
- * Gets a 3-element number array from the pool.
6327
- * Array is reset to [0, 0, 0] and ready for use.
6328
- * @returns A reusable 3-element array.
6329
- */
6330
- getArray3Number(copyFrom?: Array3Number | Set<number>): Array3Number;
6331
- /**
6332
- * Gets a 4-element number array from the pool.
6333
- * Array is reset to [0, 0, 0, 0] and ready for use.
6334
- * @returns A reusable 4-element array.
6335
- */
6336
- getArray4Number(copyFrom?: Array4Number | Set<number>): Array4Number;
6337
- /**
6338
- * Gets a plain object from the pool.
6339
- * Object is reset to empty state and ready for use.
6340
- * @typeParam T - The type interface for the object.
6341
- * @returns A reusable plain object.
6342
- */
6343
- getObject<T extends Record<string, unknown> = Record<string, unknown>>(copyFromA?: T, copyFromB?: T): T;
6344
- /**
6345
- * Gets a set from the pool.
6346
- * Set is reset to empty state and ready for use.
6347
- * @typeParam T - The type of the set.
6348
- * @returns A reusable set.
6349
- */
6350
- getSet<T>(copyFromA?: Set<T> | T[], copyFromB?: Set<T> | T[]): Set<T>;
6351
- /**
6352
- * Maps an array to a new array using a callback function.
6353
- * @typeParam T - The type of the array.
6354
- * @typeParam U - The type of the resulting array.
6355
- * @param array - The array to map.
6356
- * @param callback - The callback function to map the array.
6357
- * @returns A new array with the mapped values.
6358
- */
6359
- map<T, U>(array: T[], callback: (value: T, index: number, array: T[]) => U): U[];
6360
- /**
6361
- * Releases all allocated objects back to their respective pools.
6362
- * This is intended to be called at the end of a tick.
6363
- */
6364
- reset(): void;
6365
- }
6366
-
6367
6199
  /** The options for a trimesh collider. @public */
6368
6200
  export declare interface TrimeshColliderOptions extends BaseColliderOptions {
6369
6201
  shape: ColliderShape.TRIMESH;
@@ -6978,7 +6810,6 @@ export declare class World extends EventRouter implements protocol.Serializable
6978
6810
 
6979
6811
 
6980
6812
 
6981
-
6982
6813
 
6983
6814
 
6984
6815
  /**
@@ -6991,32 +6822,40 @@ export declare class World extends EventRouter implements protocol.Serializable
6991
6822
  get ambientLightColor(): RgbColor;
6992
6823
  /** The intensity of the ambient light. */
6993
6824
  get ambientLightIntensity(): number;
6994
- /** The block type registry for the world. */
6995
- get blockTypeRegistry(): BlockTypeRegistry;
6996
- /** The chat manager for the world. */
6997
- get chatManager(): ChatManager;
6998
- /** The chunk lattice for the world. */
6999
- get chunkLattice(): ChunkLattice;
7000
6825
  /** The color of the directional light. */
7001
6826
  get directionalLightColor(): RgbColor;
7002
6827
  /** The intensity of the directional light. */
7003
6828
  get directionalLightIntensity(): number;
7004
6829
  /** The position the directional light originates from. */
7005
6830
  get directionalLightPosition(): Vector3Like;
7006
- /** The entity manager for the world. */
7007
- get entityManager(): EntityManager;
7008
6831
  /** The color of the fog, if not explicitly set, defaults to ambient light color. */
7009
6832
  get fogColor(): RgbColor | undefined;
7010
6833
  /** The maximum distance from the camera at which fog stops being applied. */
7011
6834
  get fogFar(): number;
7012
6835
  /** The minimum distance from the camera to start applying fog. */
7013
6836
  get fogNear(): number;
6837
+ /** The name of the world. */
6838
+ get name(): string;
6839
+ /** The intensity of the world's skybox brightness. */
6840
+ get skyboxIntensity(): number;
6841
+ /** The URI of the skybox cubemap for the world. */
6842
+ get skyboxUri(): string;
6843
+ /** The audio manager for the world. */
6844
+ get audioManager(): AudioManager;
6845
+ /** An arbitrary identifier tag of the world. Useful for your own logic. */
6846
+ get tag(): string | undefined;
6847
+ /** The block type registry for the world. */
6848
+ get blockTypeRegistry(): BlockTypeRegistry;
6849
+ /** The chat manager for the world. */
6850
+ get chatManager(): ChatManager;
6851
+ /** The chunk lattice for the world. */
6852
+ get chunkLattice(): ChunkLattice;
6853
+ /** The entity manager for the world. */
6854
+ get entityManager(): EntityManager;
7014
6855
  /** The light manager for the world. */
7015
6856
  get lightManager(): LightManager;
7016
6857
  /** The world loop for the world. */
7017
6858
  get loop(): WorldLoop;
7018
- /** The name of the world. */
7019
- get name(): string;
7020
6859
 
7021
6860
  /** The particle emitter manager for the world. */
7022
6861
  get particleEmitterManager(): ParticleEmitterManager;
@@ -7024,16 +6863,6 @@ export declare class World extends EventRouter implements protocol.Serializable
7024
6863
  get sceneUIManager(): SceneUIManager;
7025
6864
  /** The simulation for the world. */
7026
6865
  get simulation(): Simulation;
7027
- /** The intensity of the world's skybox brightness. */
7028
- get skyboxIntensity(): number;
7029
- /** The URI of the skybox cubemap for the world. */
7030
- get skyboxUri(): string;
7031
- /** The audio manager for the world. */
7032
- get audioManager(): AudioManager;
7033
- /** An arbitrary identifier tag of the world. Useful for your own logic. */
7034
- get tag(): string | undefined;
7035
- /** The tick allocator for the world. */
7036
- get tickAllocator(): TickAllocator;
7037
6866
  /**
7038
6867
  * Loads a map into the world, clearing any prior map.
7039
6868
  * @param map - The map to load.
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [Array3Number](./server.array3number.md)
4
-
5
- ## Array3Number type
6
-
7
- A 3-element number array.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type Array3Number = [number, number, number];
13
- ```
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [Array4Number](./server.array4number.md)
4
-
5
- ## Array4Number type
6
-
7
- A 4-element number array.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- export type Array4Number = [number, number, number, number];
13
- ```
@@ -1,13 +0,0 @@
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; [blockTypeRegistry](./server.blocktype.blocktyperegistry.md)
4
-
5
- ## BlockType.blockTypeRegistry property
6
-
7
- The block type registry that the block type belongs to.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- get blockTypeRegistry(): BlockTypeRegistry;
13
- ```
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [Chunk](./server.chunk.md) &gt; [chunkLattice](./server.chunk.chunklattice.md)
4
-
5
- ## Chunk.chunkLattice property
6
-
7
- The chunk lattice that the chunk belongs to.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- get chunkLattice(): ChunkLattice;
13
- ```
@@ -1,13 +0,0 @@
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; [world](./server.chunklattice.world.md)
4
-
5
- ## ChunkLattice.world property
6
-
7
- The world that the chunk lattice belongs to.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- get world(): World;
13
- ```
@@ -1,16 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [ChunkLatticeEventPayloads](./server.chunklatticeeventpayloads.md) &gt; ["CHUNK\_LATTICE.ADD\_CHUNK"](./server.chunklatticeeventpayloads._chunk_lattice.add_chunk_.md)
4
-
5
- ## ChunkLatticeEventPayloads."CHUNK\_LATTICE.ADD\_CHUNK" property
6
-
7
- Emitted when a chunk is added to the lattice.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- [ChunkLatticeEvent.ADD_CHUNK]: {
13
- chunkLattice: ChunkLattice;
14
- chunk: Chunk;
15
- };
16
- ```
@@ -1,54 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [ParticleEmitter](./server.particleemitter.md) &gt; [burst](./server.particleemitter.burst.md)
4
-
5
- ## ParticleEmitter.burst() method
6
-
7
- Creates a burst of particles, regardless of pause state.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- burst(count: number): 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
- count
36
-
37
-
38
- </td><td>
39
-
40
- number
41
-
42
-
43
- </td><td>
44
-
45
- The number of particles to burst.
46
-
47
-
48
- </td></tr>
49
- </tbody></table>
50
-
51
- **Returns:**
52
-
53
- void
54
-
@@ -1,16 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md) &gt; ["PARTICLE\_EMITTER.BURST"](./server.particleemittereventpayloads._particle_emitter.burst_.md)
4
-
5
- ## ParticleEmitterEventPayloads."PARTICLE\_EMITTER.BURST" property
6
-
7
- Emitted when a ParticleEmitter bursts the specified number of particles.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- [ParticleEmitterEvent.BURST]: {
13
- particleEmitter: ParticleEmitter;
14
- count: number;
15
- };
16
- ```
@@ -1,72 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [server](./server.md) &gt; [TickAllocator](./server.tickallocator.md) &gt; [filter](./server.tickallocator.filter.md)
4
-
5
- ## TickAllocator.filter() method
6
-
7
- Filters an array using a callback function.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- filter<T>(array: T[], callback: (value: T, index: number, array: T[]) => boolean): T[];
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
- array
36
-
37
-
38
- </td><td>
39
-
40
- T\[\]
41
-
42
-
43
- </td><td>
44
-
45
- The array to filter.
46
-
47
-
48
- </td></tr>
49
- <tr><td>
50
-
51
- callback
52
-
53
-
54
- </td><td>
55
-
56
- (value: T, index: number, array: T\[\]) =&gt; boolean
57
-
58
-
59
- </td><td>
60
-
61
- The callback function to filter the array.
62
-
63
-
64
- </td></tr>
65
- </tbody></table>
66
-
67
- **Returns:**
68
-
69
- T\[\]
70
-
71
- A new array with the filtered values.
72
-