@minecraft/server-graphics 1.0.0-beta.1.26.20-preview.20 → 1.0.0-beta.1.26.20-preview.23
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/index.d.ts +32 -121
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
import * as minecraftcommon from '@minecraft/common';
|
|
25
25
|
import * as minecraftserver from '@minecraft/server';
|
|
26
26
|
/**
|
|
27
|
-
* Used to affect atmospheric scattering for Vibrant
|
|
27
|
+
* Used to affect atmospheric scattering per biome for Vibrant
|
|
28
|
+
* Visuals
|
|
28
29
|
*/
|
|
29
|
-
export class
|
|
30
|
+
export class BiomeAtmospherics {
|
|
30
31
|
private constructor();
|
|
31
32
|
/**
|
|
32
33
|
* @remarks
|
|
@@ -35,16 +36,11 @@ export class Atmospherics {
|
|
|
35
36
|
*
|
|
36
37
|
* This function can't be called in restricted-execution mode.
|
|
37
38
|
*
|
|
38
|
-
* @param biomeIdentifier
|
|
39
|
-
* Biome Identifier. If the corresponding biome has had its
|
|
40
|
-
* horizon blend max overriden using scripting, then the
|
|
41
|
-
* override value will be removed and the biome will use the
|
|
42
|
-
* value provided by json
|
|
43
39
|
* @throws This function can throw errors.
|
|
44
40
|
*
|
|
45
41
|
* {@link minecraftcommon.EngineError}
|
|
46
42
|
*/
|
|
47
|
-
resetHorizonBlendMax(
|
|
43
|
+
resetHorizonBlendMax(): void;
|
|
48
44
|
/**
|
|
49
45
|
* @remarks
|
|
50
46
|
* Resets the horizon blend mie start to the value set by
|
|
@@ -52,16 +48,11 @@ export class Atmospherics {
|
|
|
52
48
|
*
|
|
53
49
|
* This function can't be called in restricted-execution mode.
|
|
54
50
|
*
|
|
55
|
-
* @param biomeIdentifier
|
|
56
|
-
* Biome Identifier. If the corresponding biome has had its
|
|
57
|
-
* horizon blend mie start overriden using scripting, then the
|
|
58
|
-
* override value will be removed and the biome will use the
|
|
59
|
-
* value provided by json
|
|
60
51
|
* @throws This function can throw errors.
|
|
61
52
|
*
|
|
62
53
|
* {@link minecraftcommon.EngineError}
|
|
63
54
|
*/
|
|
64
|
-
resetHorizonBlendMieStart(
|
|
55
|
+
resetHorizonBlendMieStart(): void;
|
|
65
56
|
/**
|
|
66
57
|
* @remarks
|
|
67
58
|
* Resets the horizon blend min to the value set by resource
|
|
@@ -69,16 +60,11 @@ export class Atmospherics {
|
|
|
69
60
|
*
|
|
70
61
|
* This function can't be called in restricted-execution mode.
|
|
71
62
|
*
|
|
72
|
-
* @param biomeIdentifier
|
|
73
|
-
* Biome Identifier. If the corresponding biome has had its
|
|
74
|
-
* horizon blend min overriden using scripting, then the
|
|
75
|
-
* override value will be removed and the biome will use the
|
|
76
|
-
* value provided by json
|
|
77
63
|
* @throws This function can throw errors.
|
|
78
64
|
*
|
|
79
65
|
* {@link minecraftcommon.EngineError}
|
|
80
66
|
*/
|
|
81
|
-
resetHorizonBlendMin(
|
|
67
|
+
resetHorizonBlendMin(): void;
|
|
82
68
|
/**
|
|
83
69
|
* @remarks
|
|
84
70
|
* Resets the horizon blend start to the value set by resource
|
|
@@ -86,16 +72,11 @@ export class Atmospherics {
|
|
|
86
72
|
*
|
|
87
73
|
* This function can't be called in restricted-execution mode.
|
|
88
74
|
*
|
|
89
|
-
* @param biomeIdentifier
|
|
90
|
-
* Biome Identifier. If the corresponding biome has had its
|
|
91
|
-
* horizon blend start overriden using scripting, then the
|
|
92
|
-
* override value will be removed and the biome will use the
|
|
93
|
-
* value provided by json
|
|
94
75
|
* @throws This function can throw errors.
|
|
95
76
|
*
|
|
96
77
|
* {@link minecraftcommon.EngineError}
|
|
97
78
|
*/
|
|
98
|
-
resetHorizonBlendStart(
|
|
79
|
+
resetHorizonBlendStart(): void;
|
|
99
80
|
/**
|
|
100
81
|
* @remarks
|
|
101
82
|
* Resets the moon mie strength to the value set by resource
|
|
@@ -103,16 +84,11 @@ export class Atmospherics {
|
|
|
103
84
|
*
|
|
104
85
|
* This function can't be called in restricted-execution mode.
|
|
105
86
|
*
|
|
106
|
-
* @param biomeIdentifier
|
|
107
|
-
* Biome Identifier. If the corresponding biome has had its
|
|
108
|
-
* moon mie strength overriden using scripting, then the
|
|
109
|
-
* override value will be removed and the biome will use the
|
|
110
|
-
* value provided by json
|
|
111
87
|
* @throws This function can throw errors.
|
|
112
88
|
*
|
|
113
89
|
* {@link minecraftcommon.EngineError}
|
|
114
90
|
*/
|
|
115
|
-
resetMoonMieStrength(
|
|
91
|
+
resetMoonMieStrength(): void;
|
|
116
92
|
/**
|
|
117
93
|
* @remarks
|
|
118
94
|
* Resets the rayleigh strength to the value set by resource
|
|
@@ -120,16 +96,11 @@ export class Atmospherics {
|
|
|
120
96
|
*
|
|
121
97
|
* This function can't be called in restricted-execution mode.
|
|
122
98
|
*
|
|
123
|
-
* @param biomeIdentifier
|
|
124
|
-
* Biome Identifier. If the corresponding biome has had its
|
|
125
|
-
* rayleigh strength overriden using scripting, then the
|
|
126
|
-
* override value will be removed and the biome will use the
|
|
127
|
-
* value provided by json
|
|
128
99
|
* @throws This function can throw errors.
|
|
129
100
|
*
|
|
130
101
|
* {@link minecraftcommon.EngineError}
|
|
131
102
|
*/
|
|
132
|
-
resetRayleighStrength(
|
|
103
|
+
resetRayleighStrength(): void;
|
|
133
104
|
/**
|
|
134
105
|
* @remarks
|
|
135
106
|
* Resets the sky horizon color to the color set by resource
|
|
@@ -137,16 +108,11 @@ export class Atmospherics {
|
|
|
137
108
|
*
|
|
138
109
|
* This function can't be called in restricted-execution mode.
|
|
139
110
|
*
|
|
140
|
-
* @param biomeIdentifier
|
|
141
|
-
* Biome Identifier. If the corresponding biome has had its sky
|
|
142
|
-
* horizon color overriden using scripting, then the override
|
|
143
|
-
* value will be removed and the biome will use the value
|
|
144
|
-
* provided by json
|
|
145
111
|
* @throws This function can throw errors.
|
|
146
112
|
*
|
|
147
113
|
* {@link minecraftcommon.EngineError}
|
|
148
114
|
*/
|
|
149
|
-
resetSkyHorizonColor(
|
|
115
|
+
resetSkyHorizonColor(): void;
|
|
150
116
|
/**
|
|
151
117
|
* @remarks
|
|
152
118
|
* Resets the sky zenith color to the color set by resource
|
|
@@ -154,16 +120,11 @@ export class Atmospherics {
|
|
|
154
120
|
*
|
|
155
121
|
* This function can't be called in restricted-execution mode.
|
|
156
122
|
*
|
|
157
|
-
* @param biomeIdentifier
|
|
158
|
-
* Biome Identifier. If the corresponding biome has had its sky
|
|
159
|
-
* zenith color overriden using scripting, then the override
|
|
160
|
-
* value will be removed and the biome will use the value
|
|
161
|
-
* provided by json
|
|
162
123
|
* @throws This function can throw errors.
|
|
163
124
|
*
|
|
164
125
|
* {@link minecraftcommon.EngineError}
|
|
165
126
|
*/
|
|
166
|
-
resetSkyZenithColor(
|
|
127
|
+
resetSkyZenithColor(): void;
|
|
167
128
|
/**
|
|
168
129
|
* @remarks
|
|
169
130
|
* Resets the sun glare shape to the value set by resource
|
|
@@ -171,16 +132,11 @@ export class Atmospherics {
|
|
|
171
132
|
*
|
|
172
133
|
* This function can't be called in restricted-execution mode.
|
|
173
134
|
*
|
|
174
|
-
* @param biomeIdentifier
|
|
175
|
-
* Biome Identifier. If the corresponding biome has had its sun
|
|
176
|
-
* glare shape overriden using scripting, then the override
|
|
177
|
-
* value will be removed and the biome will use the value
|
|
178
|
-
* provided by json
|
|
179
135
|
* @throws This function can throw errors.
|
|
180
136
|
*
|
|
181
137
|
* {@link minecraftcommon.EngineError}
|
|
182
138
|
*/
|
|
183
|
-
resetSunGlareShape(
|
|
139
|
+
resetSunGlareShape(): void;
|
|
184
140
|
/**
|
|
185
141
|
* @remarks
|
|
186
142
|
* Resets the sun mie strength to the value set by resource
|
|
@@ -188,16 +144,11 @@ export class Atmospherics {
|
|
|
188
144
|
*
|
|
189
145
|
* This function can't be called in restricted-execution mode.
|
|
190
146
|
*
|
|
191
|
-
* @param biomeIdentifier
|
|
192
|
-
* Biome Identifier. If the corresponding biome has had its sun
|
|
193
|
-
* mie strength overriden using scripting, then the override
|
|
194
|
-
* value will be removed and the biome will use the value
|
|
195
|
-
* provided by json
|
|
196
147
|
* @throws This function can throw errors.
|
|
197
148
|
*
|
|
198
149
|
* {@link minecraftcommon.EngineError}
|
|
199
150
|
*/
|
|
200
|
-
resetSunMieStrength(
|
|
151
|
+
resetSunMieStrength(): void;
|
|
201
152
|
/**
|
|
202
153
|
* @remarks
|
|
203
154
|
* Sets the horizon blend max for atmospheric scattering in
|
|
@@ -211,14 +162,11 @@ export class Atmospherics {
|
|
|
211
162
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
212
163
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
213
164
|
* sunrise). The value is also a number (range [0,1])
|
|
214
|
-
* @param biomeIdentifier
|
|
215
|
-
* Biome Identifier. The horizon blend max will be set for the
|
|
216
|
-
* specified biome.
|
|
217
165
|
* @throws This function can throw errors.
|
|
218
166
|
*
|
|
219
167
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
220
168
|
*/
|
|
221
|
-
setHorizonBlendMax(blendMax: number | Record<number, number
|
|
169
|
+
setHorizonBlendMax(blendMax: number | Record<number, number>): void;
|
|
222
170
|
/**
|
|
223
171
|
* @remarks
|
|
224
172
|
* Sets the horizon blend mie start for atmospheric scattering
|
|
@@ -232,17 +180,11 @@ export class Atmospherics {
|
|
|
232
180
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
233
181
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
234
182
|
* sunrise). The value is also a number (range [0,1.2])
|
|
235
|
-
* @param biomeIdentifier
|
|
236
|
-
* Biome Identifier. The horizon blend mie start will be set
|
|
237
|
-
* for the specified biome.
|
|
238
183
|
* @throws This function can throw errors.
|
|
239
184
|
*
|
|
240
185
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
241
186
|
*/
|
|
242
|
-
setHorizonBlendMieStart(
|
|
243
|
-
blendMieStart: number | Record<number, number>,
|
|
244
|
-
biomeIdentifier: minecraftserver.BiomeType,
|
|
245
|
-
): void;
|
|
187
|
+
setHorizonBlendMieStart(blendMieStart: number | Record<number, number>): void;
|
|
246
188
|
/**
|
|
247
189
|
* @remarks
|
|
248
190
|
* Sets the horizon blend min for atmospheric scattering in
|
|
@@ -256,14 +198,11 @@ export class Atmospherics {
|
|
|
256
198
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
257
199
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
258
200
|
* sunrise). The value is also a number (range [0,1])
|
|
259
|
-
* @param biomeIdentifier
|
|
260
|
-
* Biome Identifier. The horizon blend min will be set for the
|
|
261
|
-
* specified biome.
|
|
262
201
|
* @throws This function can throw errors.
|
|
263
202
|
*
|
|
264
203
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
265
204
|
*/
|
|
266
|
-
setHorizonBlendMin(blendMin: number | Record<number, number
|
|
205
|
+
setHorizonBlendMin(blendMin: number | Record<number, number>): void;
|
|
267
206
|
/**
|
|
268
207
|
* @remarks
|
|
269
208
|
* Sets the horizon blend start for atmospheric scattering in
|
|
@@ -277,14 +216,11 @@ export class Atmospherics {
|
|
|
277
216
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
278
217
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
279
218
|
* sunrise). The value is also a number (range [0,1])
|
|
280
|
-
* @param biomeIdentifier
|
|
281
|
-
* Biome Identifier. The horizon blend start will be set for
|
|
282
|
-
* the specified biome.
|
|
283
219
|
* @throws This function can throw errors.
|
|
284
220
|
*
|
|
285
221
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
286
222
|
*/
|
|
287
|
-
setHorizonBlendStart(blendStart: number | Record<number, number
|
|
223
|
+
setHorizonBlendStart(blendStart: number | Record<number, number>): void;
|
|
288
224
|
/**
|
|
289
225
|
* @remarks
|
|
290
226
|
* Sets the moon mie strength for atmospheric scattering in
|
|
@@ -298,17 +234,11 @@ export class Atmospherics {
|
|
|
298
234
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
299
235
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
300
236
|
* sunrise). The value is also a number (range [0,60])
|
|
301
|
-
* @param biomeIdentifier
|
|
302
|
-
* Biome Identifier. The moon mie strength will be set for the
|
|
303
|
-
* specified biome.
|
|
304
237
|
* @throws This function can throw errors.
|
|
305
238
|
*
|
|
306
239
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
307
240
|
*/
|
|
308
|
-
setMoonMieStrength(
|
|
309
|
-
moonMieStrength: number | Record<number, number>,
|
|
310
|
-
biomeIdentifier: minecraftserver.BiomeType,
|
|
311
|
-
): void;
|
|
241
|
+
setMoonMieStrength(moonMieStrength: number | Record<number, number>): void;
|
|
312
242
|
/**
|
|
313
243
|
* @remarks
|
|
314
244
|
* Sets the rayleigh strength for atmospheric scattering in
|
|
@@ -322,17 +252,11 @@ export class Atmospherics {
|
|
|
322
252
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
323
253
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
324
254
|
* sunrise). The value is also a number (range [0,11])
|
|
325
|
-
* @param biomeIdentifier
|
|
326
|
-
* Biome Identifier. The rayleigh strength will be set for the
|
|
327
|
-
* specified biome.
|
|
328
255
|
* @throws This function can throw errors.
|
|
329
256
|
*
|
|
330
257
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
331
258
|
*/
|
|
332
|
-
setRayleighStrength(
|
|
333
|
-
rayleighStrength: number | Record<number, number>,
|
|
334
|
-
biomeIdentifier: minecraftserver.BiomeType,
|
|
335
|
-
): void;
|
|
259
|
+
setRayleighStrength(rayleighStrength: number | Record<number, number>): void;
|
|
336
260
|
/**
|
|
337
261
|
* @remarks
|
|
338
262
|
* Sets the sky horizon color for atmospheric scattering in
|
|
@@ -346,17 +270,11 @@ export class Atmospherics {
|
|
|
346
270
|
* [0,1]) to signify a time of day (0.0 and 1.0 are noon, 0.25
|
|
347
271
|
* is sunset, 0.5 is midnight, and 0.75 is sunrise). The value
|
|
348
272
|
* is a RGB triplet
|
|
349
|
-
* @param biomeIdentifier
|
|
350
|
-
* Biome Identifier. The sky horizon color will be set for the
|
|
351
|
-
* specified biome.
|
|
352
273
|
* @throws This function can throw errors.
|
|
353
274
|
*
|
|
354
275
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
355
276
|
*/
|
|
356
|
-
setSkyHorizonColor(
|
|
357
|
-
color: Record<number, minecraftserver.RGB> | minecraftserver.RGB,
|
|
358
|
-
biomeIdentifier: minecraftserver.BiomeType,
|
|
359
|
-
): void;
|
|
277
|
+
setSkyHorizonColor(color: Record<number, minecraftserver.RGB> | minecraftserver.RGB): void;
|
|
360
278
|
/**
|
|
361
279
|
* @remarks
|
|
362
280
|
* Sets the sky zenith color for atmospheric scattering in
|
|
@@ -369,17 +287,11 @@ export class Atmospherics {
|
|
|
369
287
|
* are composed of key value pairs. The key is a float in the
|
|
370
288
|
* range 0-1 to signify a time of day and the value is a RGB
|
|
371
289
|
* triplet
|
|
372
|
-
* @param biomeIdentifier
|
|
373
|
-
* Biome Identifier. The sky zenith color will be set for the
|
|
374
|
-
* specified biome.
|
|
375
290
|
* @throws This function can throw errors.
|
|
376
291
|
*
|
|
377
292
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
378
293
|
*/
|
|
379
|
-
setSkyZenithColor(
|
|
380
|
-
color: Record<number, minecraftserver.RGB> | minecraftserver.RGB,
|
|
381
|
-
biomeIdentifier: minecraftserver.BiomeType,
|
|
382
|
-
): void;
|
|
294
|
+
setSkyZenithColor(color: Record<number, minecraftserver.RGB> | minecraftserver.RGB): void;
|
|
383
295
|
/**
|
|
384
296
|
* @remarks
|
|
385
297
|
* Sets the sun glare shape for atmospheric scattering in
|
|
@@ -393,14 +305,11 @@ export class Atmospherics {
|
|
|
393
305
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
394
306
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
395
307
|
* sunrise). The value is also a number (range [0,50])
|
|
396
|
-
* @param biomeIdentifier
|
|
397
|
-
* Biome Identifier. The sun glare shape will be set for the
|
|
398
|
-
* specified biome.
|
|
399
308
|
* @throws This function can throw errors.
|
|
400
309
|
*
|
|
401
310
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
402
311
|
*/
|
|
403
|
-
setSunGlareShape(sunGlareShape: number | Record<number, number
|
|
312
|
+
setSunGlareShape(sunGlareShape: number | Record<number, number>): void;
|
|
404
313
|
/**
|
|
405
314
|
* @remarks
|
|
406
315
|
* Sets the sun mie strength for atmospheric scattering in
|
|
@@ -414,17 +323,19 @@ export class Atmospherics {
|
|
|
414
323
|
* number (range [0,1]) to signify a time of day (0.0 and 1.0
|
|
415
324
|
* are noon, 0.25 is sunset, 0.5 is midnight, and 0.75 is
|
|
416
325
|
* sunrise). The value is also a number (range [0,60])
|
|
417
|
-
* @param biomeIdentifier
|
|
418
|
-
* Biome Identifier. The sun mie will be set for the specified
|
|
419
|
-
* biome.
|
|
420
326
|
* @throws This function can throw errors.
|
|
421
327
|
*
|
|
422
328
|
* {@link minecraftcommon.InvalidArgumentError}
|
|
423
329
|
*/
|
|
424
|
-
setSunMieStrength(
|
|
425
|
-
sunMieStrength: number | Record<number, number>,
|
|
426
|
-
biomeIdentifier: minecraftserver.BiomeType,
|
|
427
|
-
): void;
|
|
330
|
+
setSunMieStrength(sunMieStrength: number | Record<number, number>): void;
|
|
428
331
|
}
|
|
429
332
|
|
|
430
|
-
|
|
333
|
+
/**
|
|
334
|
+
* @remarks
|
|
335
|
+
* Retrieves the BiomeAtmospherics component to control
|
|
336
|
+
* atmoshperic scattering for Vibrant Visuals.
|
|
337
|
+
*
|
|
338
|
+
* This function can't be called in restricted-execution mode.
|
|
339
|
+
*
|
|
340
|
+
*/
|
|
341
|
+
export function getBiomeAtmospherics(biome: minecraftserver.BiomeType): BiomeAtmospherics;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@minecraft/server-graphics",
|
|
3
|
-
"version": "1.0.0-beta.1.26.20-preview.
|
|
3
|
+
"version": "1.0.0-beta.1.26.20-preview.23",
|
|
4
4
|
"description": "",
|
|
5
5
|
"contributors": [
|
|
6
6
|
{
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@minecraft/common": "^1.0.0",
|
|
17
|
-
"@minecraft/server": "^1.17.0 || ^2.0.0 || ^2.8.0-beta.1.26.20-preview.
|
|
17
|
+
"@minecraft/server": "^1.17.0 || ^2.0.0 || ^2.8.0-beta.1.26.20-preview.23"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT"
|
|
20
20
|
}
|