hytopia 0.14.46 → 0.14.48
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.block_rotations.md +110 -0
- package/docs/server.blockplacement.blockrotation.md +11 -0
- package/docs/server.blockplacement.globalcoordinate.md +11 -0
- package/docs/server.blockplacement.md +74 -0
- package/docs/server.blockrotation.md +15 -0
- package/docs/server.blocktype.collideroptions.md +1 -1
- package/docs/server.blocktype.istrimesh.md +13 -0
- package/docs/{server.blocktype.size.md → server.blocktype.isvoxel.md} +4 -4
- package/docs/server.blocktype.md +20 -20
- package/docs/server.blocktypeoptions.customcollideroptions.md +1 -1
- package/docs/server.blocktypeoptions.md +1 -20
- package/docs/server.chunk.blockrotations.md +13 -0
- package/docs/server.chunk.getblockrotation.md +55 -0
- package/docs/server.chunk.md +35 -0
- package/docs/server.chunklattice.initializeblocks.md +2 -2
- package/docs/server.chunklattice.md +1 -1
- package/docs/server.chunklattice.setblock.md +17 -1
- package/docs/server.chunklatticeeventpayloads._chunk_lattice.set_block_.md +1 -0
- package/docs/server.chunklatticeeventpayloads.md +1 -1
- package/docs/server.collider.isball.md +13 -0
- package/docs/server.collider.isblock.md +13 -0
- package/docs/server.collider.iscapsule.md +13 -0
- package/docs/server.collider.iscone.md +13 -0
- package/docs/server.collider.iscylinder.md +13 -0
- package/docs/server.collider.isnone.md +13 -0
- package/docs/server.collider.isroundcylinder.md +13 -0
- package/docs/server.collider.istrimesh.md +13 -0
- package/docs/server.collider.isvoxel.md +13 -0
- package/docs/server.collider.iswedge.md +13 -0
- package/docs/server.collider.md +210 -0
- package/docs/server.md +33 -0
- package/docs/server.worldmap.blocks.md +4 -1
- package/docs/server.worldmap.md +1 -1
- package/package.json +1 -1
- package/server.api.json +634 -76
- package/server.d.ts +158 -13
- package/server.mjs +76 -76
- package/docs/server.blocktype.halfextents.md +0 -13
- package/docs/server.blocktypeoptions.halfextents.md +0 -13
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BLOCK\_ROTATIONS](./server.block_rotations.md)
|
|
4
|
+
|
|
5
|
+
## BLOCK\_ROTATIONS variable
|
|
6
|
+
|
|
7
|
+
All valid block rotations.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
BLOCK_ROTATIONS: {
|
|
13
|
+
readonly Y_0: {
|
|
14
|
+
readonly enumIndex: 0;
|
|
15
|
+
readonly matrix: readonly [1, 0, 0, 0, 1, 0, 0, 0, 1];
|
|
16
|
+
};
|
|
17
|
+
readonly Y_90: {
|
|
18
|
+
readonly enumIndex: 1;
|
|
19
|
+
readonly matrix: readonly [0, 0, -1, 0, 1, 0, 1, 0, 0];
|
|
20
|
+
};
|
|
21
|
+
readonly Y_180: {
|
|
22
|
+
readonly enumIndex: 2;
|
|
23
|
+
readonly matrix: readonly [-1, 0, 0, 0, 1, 0, 0, 0, -1];
|
|
24
|
+
};
|
|
25
|
+
readonly Y_270: {
|
|
26
|
+
readonly enumIndex: 3;
|
|
27
|
+
readonly matrix: readonly [0, 0, 1, 0, 1, 0, -1, 0, 0];
|
|
28
|
+
};
|
|
29
|
+
readonly NY_0: {
|
|
30
|
+
readonly enumIndex: 4;
|
|
31
|
+
readonly matrix: readonly [-1, 0, 0, 0, -1, 0, 0, 0, 1];
|
|
32
|
+
};
|
|
33
|
+
readonly NY_90: {
|
|
34
|
+
readonly enumIndex: 5;
|
|
35
|
+
readonly matrix: readonly [0, 0, -1, 0, -1, 0, -1, 0, 0];
|
|
36
|
+
};
|
|
37
|
+
readonly NY_180: {
|
|
38
|
+
readonly enumIndex: 6;
|
|
39
|
+
readonly matrix: readonly [1, 0, 0, 0, -1, 0, 0, 0, -1];
|
|
40
|
+
};
|
|
41
|
+
readonly NY_270: {
|
|
42
|
+
readonly enumIndex: 7;
|
|
43
|
+
readonly matrix: readonly [0, 0, 1, 0, -1, 0, 1, 0, 0];
|
|
44
|
+
};
|
|
45
|
+
readonly X_0: {
|
|
46
|
+
readonly enumIndex: 8;
|
|
47
|
+
readonly matrix: readonly [0, -1, 0, 1, 0, 0, 0, 0, 1];
|
|
48
|
+
};
|
|
49
|
+
readonly X_90: {
|
|
50
|
+
readonly enumIndex: 9;
|
|
51
|
+
readonly matrix: readonly [0, 0, -1, 1, 0, 0, 0, -1, 0];
|
|
52
|
+
};
|
|
53
|
+
readonly X_180: {
|
|
54
|
+
readonly enumIndex: 10;
|
|
55
|
+
readonly matrix: readonly [0, 1, 0, 1, 0, 0, 0, 0, -1];
|
|
56
|
+
};
|
|
57
|
+
readonly X_270: {
|
|
58
|
+
readonly enumIndex: 11;
|
|
59
|
+
readonly matrix: readonly [0, 0, 1, 1, 0, 0, 0, 1, 0];
|
|
60
|
+
};
|
|
61
|
+
readonly NX_0: {
|
|
62
|
+
readonly enumIndex: 12;
|
|
63
|
+
readonly matrix: readonly [0, 1, 0, -1, 0, 0, 0, 0, 1];
|
|
64
|
+
};
|
|
65
|
+
readonly NX_90: {
|
|
66
|
+
readonly enumIndex: 13;
|
|
67
|
+
readonly matrix: readonly [0, 0, -1, -1, 0, 0, 0, 1, 0];
|
|
68
|
+
};
|
|
69
|
+
readonly NX_180: {
|
|
70
|
+
readonly enumIndex: 14;
|
|
71
|
+
readonly matrix: readonly [0, -1, 0, -1, 0, 0, 0, 0, -1];
|
|
72
|
+
};
|
|
73
|
+
readonly NX_270: {
|
|
74
|
+
readonly enumIndex: 15;
|
|
75
|
+
readonly matrix: readonly [0, 0, 1, -1, 0, 0, 0, -1, 0];
|
|
76
|
+
};
|
|
77
|
+
readonly Z_0: {
|
|
78
|
+
readonly enumIndex: 16;
|
|
79
|
+
readonly matrix: readonly [1, 0, 0, 0, 0, 1, 0, -1, 0];
|
|
80
|
+
};
|
|
81
|
+
readonly Z_90: {
|
|
82
|
+
readonly enumIndex: 17;
|
|
83
|
+
readonly matrix: readonly [0, 1, 0, 0, 0, 1, 1, 0, 0];
|
|
84
|
+
};
|
|
85
|
+
readonly Z_180: {
|
|
86
|
+
readonly enumIndex: 18;
|
|
87
|
+
readonly matrix: readonly [-1, 0, 0, 0, 0, 1, 0, 1, 0];
|
|
88
|
+
};
|
|
89
|
+
readonly Z_270: {
|
|
90
|
+
readonly enumIndex: 19;
|
|
91
|
+
readonly matrix: readonly [0, -1, 0, 0, 0, 1, -1, 0, 0];
|
|
92
|
+
};
|
|
93
|
+
readonly NZ_0: {
|
|
94
|
+
readonly enumIndex: 20;
|
|
95
|
+
readonly matrix: readonly [1, 0, 0, 0, 0, -1, 0, 1, 0];
|
|
96
|
+
};
|
|
97
|
+
readonly NZ_90: {
|
|
98
|
+
readonly enumIndex: 21;
|
|
99
|
+
readonly matrix: readonly [0, -1, 0, 0, 0, -1, 1, 0, 0];
|
|
100
|
+
};
|
|
101
|
+
readonly NZ_180: {
|
|
102
|
+
readonly enumIndex: 22;
|
|
103
|
+
readonly matrix: readonly [-1, 0, 0, 0, 0, -1, 0, -1, 0];
|
|
104
|
+
};
|
|
105
|
+
readonly NZ_270: {
|
|
106
|
+
readonly enumIndex: 23;
|
|
107
|
+
readonly matrix: readonly [0, 1, 0, 0, 0, -1, -1, 0, 0];
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockPlacement](./server.blockplacement.md) > [blockRotation](./server.blockplacement.blockrotation.md)
|
|
4
|
+
|
|
5
|
+
## BlockPlacement.blockRotation property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
blockRotation?: BlockRotation;
|
|
11
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockPlacement](./server.blockplacement.md) > [globalCoordinate](./server.blockplacement.globalcoordinate.md)
|
|
4
|
+
|
|
5
|
+
## BlockPlacement.globalCoordinate property
|
|
6
|
+
|
|
7
|
+
**Signature:**
|
|
8
|
+
|
|
9
|
+
```typescript
|
|
10
|
+
globalCoordinate: Vector3Like;
|
|
11
|
+
```
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockPlacement](./server.blockplacement.md)
|
|
4
|
+
|
|
5
|
+
## BlockPlacement interface
|
|
6
|
+
|
|
7
|
+
A block placement in a world.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export interface BlockPlacement
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
<table><thead><tr><th>
|
|
18
|
+
|
|
19
|
+
Property
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
</th><th>
|
|
23
|
+
|
|
24
|
+
Modifiers
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
</th><th>
|
|
28
|
+
|
|
29
|
+
Type
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
</th><th>
|
|
33
|
+
|
|
34
|
+
Description
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</th></tr></thead>
|
|
38
|
+
<tbody><tr><td>
|
|
39
|
+
|
|
40
|
+
[blockRotation?](./server.blockplacement.blockrotation.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
</td><td>
|
|
47
|
+
|
|
48
|
+
[BlockRotation](./server.blockrotation.md)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
</td><td>
|
|
52
|
+
|
|
53
|
+
_(Optional)_
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
</td></tr>
|
|
57
|
+
<tr><td>
|
|
58
|
+
|
|
59
|
+
[globalCoordinate](./server.blockplacement.globalcoordinate.md)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
</td><td>
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
</td><td>
|
|
66
|
+
|
|
67
|
+
[Vector3Like](./server.vector3like.md)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</td><td>
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
</td></tr>
|
|
74
|
+
</tbody></table>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockRotation](./server.blockrotation.md)
|
|
4
|
+
|
|
5
|
+
## BlockRotation type
|
|
6
|
+
|
|
7
|
+
A block rotation from [BLOCK\_ROTATIONS](./server.block_rotations.md)<!-- -->.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
export type BlockRotation = typeof BLOCK_ROTATIONS[keyof typeof BLOCK_ROTATIONS];
|
|
13
|
+
```
|
|
14
|
+
**References:** [BLOCK\_ROTATIONS](./server.block_rotations.md)
|
|
15
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockType](./server.blocktype.md) > [isTrimesh](./server.blocktype.istrimesh.md)
|
|
4
|
+
|
|
5
|
+
## BlockType.isTrimesh property
|
|
6
|
+
|
|
7
|
+
Whether the block type is a trimesh block.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
get isTrimesh(): boolean;
|
|
13
|
+
```
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
2
|
|
|
3
|
-
[Home](./index.md) > [server](./server.md) > [BlockType](./server.blocktype.md) > [
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [BlockType](./server.blocktype.md) > [isVoxel](./server.blocktype.isvoxel.md)
|
|
4
4
|
|
|
5
|
-
## BlockType.
|
|
5
|
+
## BlockType.isVoxel property
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
Whether the block type is a voxel block.
|
|
8
8
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
get
|
|
12
|
+
get isVoxel(): boolean;
|
|
13
13
|
```
|
package/docs/server.blocktype.md
CHANGED
|
@@ -107,7 +107,7 @@ Description
|
|
|
107
107
|
|
|
108
108
|
</td><td>
|
|
109
109
|
|
|
110
|
-
[VoxelsColliderOptions](./server.voxelscollideroptions.md)
|
|
110
|
+
[VoxelsColliderOptions](./server.voxelscollideroptions.md) \| [TrimeshColliderOptions](./server.trimeshcollideroptions.md)
|
|
111
111
|
|
|
112
112
|
|
|
113
113
|
</td><td>
|
|
@@ -118,7 +118,7 @@ The collider options for the block type.
|
|
|
118
118
|
</td></tr>
|
|
119
119
|
<tr><td>
|
|
120
120
|
|
|
121
|
-
[
|
|
121
|
+
[id](./server.blocktype.id.md)
|
|
122
122
|
|
|
123
123
|
|
|
124
124
|
</td><td>
|
|
@@ -128,18 +128,18 @@ The collider options for the block type.
|
|
|
128
128
|
|
|
129
129
|
</td><td>
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
number
|
|
132
132
|
|
|
133
133
|
|
|
134
134
|
</td><td>
|
|
135
135
|
|
|
136
|
-
The
|
|
136
|
+
The unique identifier for the block type.
|
|
137
137
|
|
|
138
138
|
|
|
139
139
|
</td></tr>
|
|
140
140
|
<tr><td>
|
|
141
141
|
|
|
142
|
-
[
|
|
142
|
+
[isLiquid](./server.blocktype.isliquid.md)
|
|
143
143
|
|
|
144
144
|
|
|
145
145
|
</td><td>
|
|
@@ -149,18 +149,18 @@ The half extents size of the block type.
|
|
|
149
149
|
|
|
150
150
|
</td><td>
|
|
151
151
|
|
|
152
|
-
|
|
152
|
+
boolean
|
|
153
153
|
|
|
154
154
|
|
|
155
155
|
</td><td>
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
Whether the block type is a liquid.
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
</td></tr>
|
|
161
161
|
<tr><td>
|
|
162
162
|
|
|
163
|
-
[
|
|
163
|
+
[isMeshable](./server.blocktype.ismeshable.md)
|
|
164
164
|
|
|
165
165
|
|
|
166
166
|
</td><td>
|
|
@@ -175,13 +175,13 @@ boolean
|
|
|
175
175
|
|
|
176
176
|
</td><td>
|
|
177
177
|
|
|
178
|
-
Whether the block type is
|
|
178
|
+
Whether the block type is meshable.
|
|
179
179
|
|
|
180
180
|
|
|
181
181
|
</td></tr>
|
|
182
182
|
<tr><td>
|
|
183
183
|
|
|
184
|
-
[
|
|
184
|
+
[isTrimesh](./server.blocktype.istrimesh.md)
|
|
185
185
|
|
|
186
186
|
|
|
187
187
|
</td><td>
|
|
@@ -196,13 +196,13 @@ boolean
|
|
|
196
196
|
|
|
197
197
|
</td><td>
|
|
198
198
|
|
|
199
|
-
Whether the block type is
|
|
199
|
+
Whether the block type is a trimesh block.
|
|
200
200
|
|
|
201
201
|
|
|
202
202
|
</td></tr>
|
|
203
203
|
<tr><td>
|
|
204
204
|
|
|
205
|
-
[
|
|
205
|
+
[isVoxel](./server.blocktype.isvoxel.md)
|
|
206
206
|
|
|
207
207
|
|
|
208
208
|
</td><td>
|
|
@@ -212,18 +212,18 @@ Whether the block type is meshable.
|
|
|
212
212
|
|
|
213
213
|
</td><td>
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
boolean
|
|
216
216
|
|
|
217
217
|
|
|
218
218
|
</td><td>
|
|
219
219
|
|
|
220
|
-
|
|
220
|
+
Whether the block type is a voxel block.
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
</td></tr>
|
|
224
224
|
<tr><td>
|
|
225
225
|
|
|
226
|
-
[
|
|
226
|
+
[lightLevel](./server.blocktype.lightlevel.md)
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
</td><td>
|
|
@@ -233,18 +233,18 @@ The light emission level.
|
|
|
233
233
|
|
|
234
234
|
</td><td>
|
|
235
235
|
|
|
236
|
-
|
|
236
|
+
number
|
|
237
237
|
|
|
238
238
|
|
|
239
239
|
</td><td>
|
|
240
240
|
|
|
241
|
-
The
|
|
241
|
+
The light emission level.
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
</td></tr>
|
|
245
245
|
<tr><td>
|
|
246
246
|
|
|
247
|
-
[
|
|
247
|
+
[name](./server.blocktype.name.md)
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
</td><td>
|
|
@@ -254,12 +254,12 @@ The name of the block type.
|
|
|
254
254
|
|
|
255
255
|
</td><td>
|
|
256
256
|
|
|
257
|
-
|
|
257
|
+
string
|
|
258
258
|
|
|
259
259
|
|
|
260
260
|
</td><td>
|
|
261
261
|
|
|
262
|
-
The
|
|
262
|
+
The name of the block type.
|
|
263
263
|
|
|
264
264
|
|
|
265
265
|
</td></tr>
|
|
@@ -45,7 +45,7 @@ Description
|
|
|
45
45
|
|
|
46
46
|
</td><td>
|
|
47
47
|
|
|
48
|
-
[VoxelsColliderOptions](./server.voxelscollideroptions.md)
|
|
48
|
+
[VoxelsColliderOptions](./server.voxelscollideroptions.md) \| [TrimeshColliderOptions](./server.trimeshcollideroptions.md)
|
|
49
49
|
|
|
50
50
|
|
|
51
51
|
</td><td>
|
|
@@ -53,25 +53,6 @@ Description
|
|
|
53
53
|
_(Optional)_ The custom collider options for the block type.
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
</td></tr>
|
|
57
|
-
<tr><td>
|
|
58
|
-
|
|
59
|
-
[halfExtents?](./server.blocktypeoptions.halfextents.md)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</td><td>
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
</td><td>
|
|
66
|
-
|
|
67
|
-
[Vector3Like](./server.vector3like.md)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
</td><td>
|
|
71
|
-
|
|
72
|
-
_(Optional)_ The half extents size of the block type.
|
|
73
|
-
|
|
74
|
-
|
|
75
56
|
</td></tr>
|
|
76
57
|
<tr><td>
|
|
77
58
|
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Chunk](./server.chunk.md) > [blockRotations](./server.chunk.blockrotations.md)
|
|
4
|
+
|
|
5
|
+
## Chunk.blockRotations property
|
|
6
|
+
|
|
7
|
+
The rotations of the blocks in the chunk as a map of block index to rotation.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
get blockRotations(): Readonly<Map<number, BlockRotation>>;
|
|
13
|
+
```
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Chunk](./server.chunk.md) > [getBlockRotation](./server.chunk.getblockrotation.md)
|
|
4
|
+
|
|
5
|
+
## Chunk.getBlockRotation() method
|
|
6
|
+
|
|
7
|
+
Get the rotation of a block at a specific local coordinate.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
getBlockRotation(localCoordinate: Vector3Like): BlockRotation;
|
|
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
|
+
localCoordinate
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
</td><td>
|
|
39
|
+
|
|
40
|
+
[Vector3Like](./server.vector3like.md)
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
</td><td>
|
|
44
|
+
|
|
45
|
+
The local coordinate of the block to get the rotation of.
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
</td></tr>
|
|
49
|
+
</tbody></table>
|
|
50
|
+
**Returns:**
|
|
51
|
+
|
|
52
|
+
[BlockRotation](./server.blockrotation.md)
|
|
53
|
+
|
|
54
|
+
The rotation of the block, defaults to identity rotation.
|
|
55
|
+
|
package/docs/server.chunk.md
CHANGED
|
@@ -76,6 +76,27 @@ Description
|
|
|
76
76
|
</th></tr></thead>
|
|
77
77
|
<tbody><tr><td>
|
|
78
78
|
|
|
79
|
+
[blockRotations](./server.chunk.blockrotations.md)
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
</td><td>
|
|
83
|
+
|
|
84
|
+
`readonly`
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
</td><td>
|
|
88
|
+
|
|
89
|
+
Readonly<Map<number, [BlockRotation](./server.blockrotation.md)<!-- -->>>
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
</td><td>
|
|
93
|
+
|
|
94
|
+
The rotations of the blocks in the chunk as a map of block index to rotation.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
</td></tr>
|
|
98
|
+
<tr><td>
|
|
99
|
+
|
|
79
100
|
[blocks](./server.chunk.blocks.md)
|
|
80
101
|
|
|
81
102
|
|
|
@@ -165,6 +186,20 @@ Convert a block index to a local coordinate.
|
|
|
165
186
|
Get the block type id at a specific local coordinate.
|
|
166
187
|
|
|
167
188
|
|
|
189
|
+
</td></tr>
|
|
190
|
+
<tr><td>
|
|
191
|
+
|
|
192
|
+
[getBlockRotation(localCoordinate)](./server.chunk.getblockrotation.md)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
</td><td>
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
</td><td>
|
|
199
|
+
|
|
200
|
+
Get the rotation of a block at a specific local coordinate.
|
|
201
|
+
|
|
202
|
+
|
|
168
203
|
</td></tr>
|
|
169
204
|
<tr><td>
|
|
170
205
|
|
|
@@ -10,7 +10,7 @@ Initialize all blocks in the lattice in bulk, removing all previously existing b
|
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
12
|
initializeBlocks(blocks: {
|
|
13
|
-
[blockTypeId: number]:
|
|
13
|
+
[blockTypeId: number]: BlockPlacement[];
|
|
14
14
|
}): void;
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -39,7 +39,7 @@ blocks
|
|
|
39
39
|
|
|
40
40
|
</td><td>
|
|
41
41
|
|
|
42
|
-
{ \[blockTypeId: number\]: [
|
|
42
|
+
{ \[blockTypeId: number\]: [BlockPlacement](./server.blockplacement.md)<!-- -->\[\]; }
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
</td><td>
|
|
@@ -257,7 +257,7 @@ Initialize all blocks in the lattice in bulk, removing all previously existing b
|
|
|
257
257
|
</td></tr>
|
|
258
258
|
<tr><td>
|
|
259
259
|
|
|
260
|
-
[setBlock(globalCoordinate, blockTypeId)](./server.chunklattice.setblock.md)
|
|
260
|
+
[setBlock(globalCoordinate, blockTypeId, blockRotation)](./server.chunklattice.setblock.md)
|
|
261
261
|
|
|
262
262
|
|
|
263
263
|
</td><td>
|
|
@@ -9,7 +9,7 @@ Set the block at a global coordinate by block type id, automatically creating a
|
|
|
9
9
|
**Signature:**
|
|
10
10
|
|
|
11
11
|
```typescript
|
|
12
|
-
setBlock(globalCoordinate: Vector3Like, blockTypeId: number): void;
|
|
12
|
+
setBlock(globalCoordinate: Vector3Like, blockTypeId: number, blockRotation?: BlockRotation): void;
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
## Parameters
|
|
@@ -61,6 +61,22 @@ number
|
|
|
61
61
|
The block type id to set. Use 0 to remove the block and replace with air.
|
|
62
62
|
|
|
63
63
|
|
|
64
|
+
</td></tr>
|
|
65
|
+
<tr><td>
|
|
66
|
+
|
|
67
|
+
blockRotation
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
</td><td>
|
|
71
|
+
|
|
72
|
+
[BlockRotation](./server.blockrotation.md)
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
</td><td>
|
|
76
|
+
|
|
77
|
+
_(Optional)_
|
|
78
|
+
|
|
79
|
+
|
|
64
80
|
</td></tr>
|
|
65
81
|
</tbody></table>
|
|
66
82
|
**Returns:**
|
|
@@ -83,7 +83,7 @@ Emitted when a chunk is removed from the lattice.
|
|
|
83
83
|
|
|
84
84
|
</td><td>
|
|
85
85
|
|
|
86
|
-
{ chunkLattice: [ChunkLattice](./server.chunklattice.md)<!-- -->; chunk: [Chunk](./server.chunk.md)<!-- -->; globalCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; localCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; blockTypeId: number; }
|
|
86
|
+
{ chunkLattice: [ChunkLattice](./server.chunklattice.md)<!-- -->; chunk: [Chunk](./server.chunk.md)<!-- -->; globalCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; localCoordinate: [Vector3Like](./server.vector3like.md)<!-- -->; blockTypeId: number; blockRotation?: [BlockRotation](./server.blockrotation.md)<!-- -->; }
|
|
87
87
|
|
|
88
88
|
|
|
89
89
|
</td><td>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Collider](./server.collider.md) > [isBall](./server.collider.isball.md)
|
|
4
|
+
|
|
5
|
+
## Collider.isBall property
|
|
6
|
+
|
|
7
|
+
Whether the collider is a ball collider.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
get isBall(): boolean;
|
|
13
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
2
|
+
|
|
3
|
+
[Home](./index.md) > [server](./server.md) > [Collider](./server.collider.md) > [isBlock](./server.collider.isblock.md)
|
|
4
|
+
|
|
5
|
+
## Collider.isBlock property
|
|
6
|
+
|
|
7
|
+
Whether the collider is a block collider.
|
|
8
|
+
|
|
9
|
+
**Signature:**
|
|
10
|
+
|
|
11
|
+
```typescript
|
|
12
|
+
get isBlock(): boolean;
|
|
13
|
+
```
|