hytopia 0.4.3 → 0.4.4
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.
- package/docs/server.chunklattice.clear.md +17 -0
- package/docs/server.chunklattice.md +14 -0
- package/docs/server.world.loadmap.md +1 -1
- package/docs/server.world.md +1 -1
- package/package.json +1 -1
- package/server.api.json +32 -1
- package/server.d.ts +5 -1
- package/server.js +2 -2
@@ -0,0 +1,17 @@
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
2
|
+
|
3
|
+
[Home](./index.md) > [server](./server.md) > [ChunkLattice](./server.chunklattice.md) > [clear](./server.chunklattice.clear.md)
|
4
|
+
|
5
|
+
## ChunkLattice.clear() method
|
6
|
+
|
7
|
+
Despawns and clears all chunks in the lattice.
|
8
|
+
|
9
|
+
**Signature:**
|
10
|
+
|
11
|
+
```typescript
|
12
|
+
clear(): void;
|
13
|
+
```
|
14
|
+
**Returns:**
|
15
|
+
|
16
|
+
void
|
17
|
+
|
@@ -70,6 +70,20 @@ Description
|
|
70
70
|
</th></tr></thead>
|
71
71
|
<tbody><tr><td>
|
72
72
|
|
73
|
+
[clear()](./server.chunklattice.clear.md)
|
74
|
+
|
75
|
+
|
76
|
+
</td><td>
|
77
|
+
|
78
|
+
|
79
|
+
</td><td>
|
80
|
+
|
81
|
+
Despawns and clears all chunks in the lattice.
|
82
|
+
|
83
|
+
|
84
|
+
</td></tr>
|
85
|
+
<tr><td>
|
86
|
+
|
73
87
|
[getAllChunks()](./server.chunklattice.getallchunks.md)
|
74
88
|
|
75
89
|
|
package/docs/server.world.md
CHANGED
package/package.json
CHANGED
package/server.api.json
CHANGED
@@ -7385,6 +7385,37 @@
|
|
7385
7385
|
}
|
7386
7386
|
]
|
7387
7387
|
},
|
7388
|
+
{
|
7389
|
+
"kind": "Method",
|
7390
|
+
"canonicalReference": "server!ChunkLattice#clear:member(1)",
|
7391
|
+
"docComment": "/**\n * Despawns and clears all chunks in the lattice.\n */\n",
|
7392
|
+
"excerptTokens": [
|
7393
|
+
{
|
7394
|
+
"kind": "Content",
|
7395
|
+
"text": "clear(): "
|
7396
|
+
},
|
7397
|
+
{
|
7398
|
+
"kind": "Content",
|
7399
|
+
"text": "void"
|
7400
|
+
},
|
7401
|
+
{
|
7402
|
+
"kind": "Content",
|
7403
|
+
"text": ";"
|
7404
|
+
}
|
7405
|
+
],
|
7406
|
+
"isStatic": false,
|
7407
|
+
"returnTypeTokenRange": {
|
7408
|
+
"startIndex": 1,
|
7409
|
+
"endIndex": 2
|
7410
|
+
},
|
7411
|
+
"releaseTag": "Public",
|
7412
|
+
"isProtected": false,
|
7413
|
+
"overloadIndex": 1,
|
7414
|
+
"parameters": [],
|
7415
|
+
"isOptional": false,
|
7416
|
+
"isAbstract": false,
|
7417
|
+
"name": "clear"
|
7418
|
+
},
|
7388
7419
|
{
|
7389
7420
|
"kind": "Method",
|
7390
7421
|
"canonicalReference": "server!ChunkLattice#getAllChunks:member(1)",
|
@@ -42772,7 +42803,7 @@
|
|
42772
42803
|
{
|
42773
42804
|
"kind": "Method",
|
42774
42805
|
"canonicalReference": "server!World#loadMap:member(1)",
|
42775
|
-
"docComment": "/**\n * Loads a map into the world.\n *\n * @param map - The map to load.\n */\n",
|
42806
|
+
"docComment": "/**\n * Loads a map into the world, clearing any prior map.\n *\n * @param map - The map to load.\n */\n",
|
42776
42807
|
"excerptTokens": [
|
42777
42808
|
{
|
42778
42809
|
"kind": "Content",
|
package/server.d.ts
CHANGED
@@ -1002,6 +1002,10 @@ export declare class ChunkLattice {
|
|
1002
1002
|
constructor(world: World);
|
1003
1003
|
|
1004
1004
|
|
1005
|
+
/**
|
1006
|
+
* Despawns and clears all chunks in the lattice.
|
1007
|
+
*/
|
1008
|
+
clear(): void;
|
1005
1009
|
/**
|
1006
1010
|
* Get the block type id at a specific global coordinate.
|
1007
1011
|
* @param globalCoordinate - The global coordinate of the block to get.
|
@@ -5600,7 +5604,7 @@ export declare class World extends EventRouter implements protocol.Serializable
|
|
5600
5604
|
/** The simulation for the world. */
|
5601
5605
|
get simulation(): Simulation;
|
5602
5606
|
/**
|
5603
|
-
* Loads a map into the world.
|
5607
|
+
* Loads a map into the world, clearing any prior map.
|
5604
5608
|
* @param map - The map to load.
|
5605
5609
|
*/
|
5606
5610
|
loadMap(map: WorldMap): void;
|