hytopia 0.6.31 → 0.6.32

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 (130) hide show
  1. package/bun-server.mjs +162 -162
  2. package/docs/server.eventpayloads.md +2 -2
  3. package/docs/server.light.md +1 -1
  4. package/docs/server.light.spawn.md +2 -2
  5. package/docs/server.md +55 -0
  6. package/docs/server.particleemitter._constructor_.md +47 -0
  7. package/docs/server.particleemitter.alphatest.md +13 -0
  8. package/docs/server.particleemitter.attachedtoentity.md +13 -0
  9. package/docs/server.particleemitter.colorend.md +13 -0
  10. package/docs/server.particleemitter.colorendvariance.md +13 -0
  11. package/docs/server.particleemitter.colorstart.md +13 -0
  12. package/docs/server.particleemitter.colorstartvariance.md +13 -0
  13. package/docs/server.particleemitter.despawn.md +17 -0
  14. package/docs/server.particleemitter.gravity.md +13 -0
  15. package/docs/server.particleemitter.id.md +13 -0
  16. package/docs/server.particleemitter.isspawned.md +13 -0
  17. package/docs/server.particleemitter.isstopped.md +13 -0
  18. package/docs/server.particleemitter.lifetime.md +13 -0
  19. package/docs/server.particleemitter.lifetimevariance.md +13 -0
  20. package/docs/server.particleemitter.maxparticles.md +13 -0
  21. package/docs/server.particleemitter.md +1125 -0
  22. package/docs/server.particleemitter.offset.md +13 -0
  23. package/docs/server.particleemitter.opacityend.md +13 -0
  24. package/docs/server.particleemitter.opacityendvariance.md +13 -0
  25. package/docs/server.particleemitter.opacitystart.md +13 -0
  26. package/docs/server.particleemitter.opacitystartvariance.md +13 -0
  27. package/docs/server.particleemitter.position.md +13 -0
  28. package/docs/server.particleemitter.positionvariance.md +13 -0
  29. package/docs/server.particleemitter.rate.md +13 -0
  30. package/docs/server.particleemitter.ratevariance.md +13 -0
  31. package/docs/server.particleemitter.restart.md +17 -0
  32. package/docs/server.particleemitter.setalphatest.md +53 -0
  33. package/docs/server.particleemitter.setattachedtoentity.md +53 -0
  34. package/docs/server.particleemitter.setcolorend.md +53 -0
  35. package/docs/server.particleemitter.setcolorendvariance.md +53 -0
  36. package/docs/server.particleemitter.setcolorstart.md +53 -0
  37. package/docs/server.particleemitter.setcolorstartvariance.md +53 -0
  38. package/docs/server.particleemitter.setgravity.md +53 -0
  39. package/docs/server.particleemitter.setlifetime.md +53 -0
  40. package/docs/server.particleemitter.setlifetimevariance.md +53 -0
  41. package/docs/server.particleemitter.setmaxparticles.md +53 -0
  42. package/docs/server.particleemitter.setoffset.md +53 -0
  43. package/docs/server.particleemitter.setopacityend.md +53 -0
  44. package/docs/server.particleemitter.setopacityendvariance.md +53 -0
  45. package/docs/server.particleemitter.setopacitystart.md +53 -0
  46. package/docs/server.particleemitter.setopacitystartvariance.md +53 -0
  47. package/docs/server.particleemitter.setposition.md +53 -0
  48. package/docs/server.particleemitter.setpositionvariance.md +53 -0
  49. package/docs/server.particleemitter.setrate.md +53 -0
  50. package/docs/server.particleemitter.setratevariance.md +53 -0
  51. package/docs/server.particleemitter.setsize.md +53 -0
  52. package/docs/server.particleemitter.setsizevariance.md +53 -0
  53. package/docs/server.particleemitter.settextureuri.md +53 -0
  54. package/docs/server.particleemitter.settransparent.md +53 -0
  55. package/docs/server.particleemitter.setvelocity.md +53 -0
  56. package/docs/server.particleemitter.setvelocityvariance.md +53 -0
  57. package/docs/server.particleemitter.size.md +13 -0
  58. package/docs/server.particleemitter.sizevariance.md +13 -0
  59. package/docs/server.particleemitter.spawn.md +53 -0
  60. package/docs/server.particleemitter.stop.md +17 -0
  61. package/docs/server.particleemitter.textureuri.md +13 -0
  62. package/docs/server.particleemitter.transparent.md +13 -0
  63. package/docs/server.particleemitter.velocity.md +13 -0
  64. package/docs/server.particleemitter.velocityvariance.md +13 -0
  65. package/docs/server.particleemitter.world.md +13 -0
  66. package/docs/server.particleemitterevent.md +411 -0
  67. package/docs/server.particleemittereventpayloads._particle_emitter.despawn_.md +15 -0
  68. package/docs/server.particleemittereventpayloads._particle_emitter.set_alpha_test_.md +16 -0
  69. package/docs/server.particleemittereventpayloads._particle_emitter.set_attached_to_entity_.md +16 -0
  70. package/docs/server.particleemittereventpayloads._particle_emitter.set_color_end_.md +16 -0
  71. package/docs/server.particleemittereventpayloads._particle_emitter.set_color_end_variance_.md +16 -0
  72. package/docs/server.particleemittereventpayloads._particle_emitter.set_color_start_.md +16 -0
  73. package/docs/server.particleemittereventpayloads._particle_emitter.set_color_start_variance_.md +16 -0
  74. package/docs/server.particleemittereventpayloads._particle_emitter.set_gravity_.md +16 -0
  75. package/docs/server.particleemittereventpayloads._particle_emitter.set_lifetime_.md +16 -0
  76. package/docs/server.particleemittereventpayloads._particle_emitter.set_lifetime_variance_.md +16 -0
  77. package/docs/server.particleemittereventpayloads._particle_emitter.set_max_particles_.md +16 -0
  78. package/docs/server.particleemittereventpayloads._particle_emitter.set_offset_.md +16 -0
  79. package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_end_.md +16 -0
  80. package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_end_variance_.md +16 -0
  81. package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_start_.md +16 -0
  82. package/docs/server.particleemittereventpayloads._particle_emitter.set_opacity_start_variance_.md +16 -0
  83. package/docs/server.particleemittereventpayloads._particle_emitter.set_position_.md +16 -0
  84. package/docs/server.particleemittereventpayloads._particle_emitter.set_position_variance_.md +16 -0
  85. package/docs/server.particleemittereventpayloads._particle_emitter.set_rate_.md +16 -0
  86. package/docs/server.particleemittereventpayloads._particle_emitter.set_rate_variance_.md +16 -0
  87. package/docs/server.particleemittereventpayloads._particle_emitter.set_size_.md +16 -0
  88. package/docs/server.particleemittereventpayloads._particle_emitter.set_size_variance_.md +16 -0
  89. package/docs/server.particleemittereventpayloads._particle_emitter.set_texture_uri_.md +16 -0
  90. package/docs/server.particleemittereventpayloads._particle_emitter.set_transparent_.md +16 -0
  91. package/docs/server.particleemittereventpayloads._particle_emitter.set_velocity_.md +16 -0
  92. package/docs/server.particleemittereventpayloads._particle_emitter.set_velocity_variance_.md +16 -0
  93. package/docs/server.particleemittereventpayloads._particle_emitter.spawn_.md +15 -0
  94. package/docs/server.particleemittereventpayloads.md +551 -0
  95. package/docs/server.particleemittermanager.getallentityattachedparticleemitters.md +55 -0
  96. package/docs/server.particleemittermanager.getallparticleemitters.md +19 -0
  97. package/docs/server.particleemittermanager.md +109 -0
  98. package/docs/server.particleemittermanager.world.md +13 -0
  99. package/docs/server.particleemitteroptions.alphatest.md +13 -0
  100. package/docs/server.particleemitteroptions.attachedtoentity.md +13 -0
  101. package/docs/server.particleemitteroptions.colorend.md +13 -0
  102. package/docs/server.particleemitteroptions.colorendvariance.md +13 -0
  103. package/docs/server.particleemitteroptions.colorstart.md +13 -0
  104. package/docs/server.particleemitteroptions.colorstartvariance.md +13 -0
  105. package/docs/server.particleemitteroptions.gravity.md +13 -0
  106. package/docs/server.particleemitteroptions.lifetime.md +13 -0
  107. package/docs/server.particleemitteroptions.lifetimevariance.md +13 -0
  108. package/docs/server.particleemitteroptions.maxparticles.md +13 -0
  109. package/docs/server.particleemitteroptions.md +511 -0
  110. package/docs/server.particleemitteroptions.offset.md +13 -0
  111. package/docs/server.particleemitteroptions.opacityend.md +13 -0
  112. package/docs/server.particleemitteroptions.opacityendvariance.md +13 -0
  113. package/docs/server.particleemitteroptions.opacitystart.md +13 -0
  114. package/docs/server.particleemitteroptions.opacitystartvariance.md +13 -0
  115. package/docs/server.particleemitteroptions.position.md +13 -0
  116. package/docs/server.particleemitteroptions.positionvariance.md +13 -0
  117. package/docs/server.particleemitteroptions.rate.md +13 -0
  118. package/docs/server.particleemitteroptions.ratevariance.md +13 -0
  119. package/docs/server.particleemitteroptions.size.md +13 -0
  120. package/docs/server.particleemitteroptions.sizevariance.md +13 -0
  121. package/docs/server.particleemitteroptions.textureuri.md +13 -0
  122. package/docs/server.particleemitteroptions.transparent.md +13 -0
  123. package/docs/server.particleemitteroptions.velocity.md +13 -0
  124. package/docs/server.particleemitteroptions.velocityvariance.md +13 -0
  125. package/docs/server.world.md +21 -0
  126. package/docs/server.world.particleemittermanager.md +13 -0
  127. package/node-server.mjs +154 -154
  128. package/package.json +1 -1
  129. package/server.api.json +5386 -220
  130. package/server.d.ts +533 -3
@@ -0,0 +1,1125 @@
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)
4
+
5
+ ## ParticleEmitter class
6
+
7
+ Represents a particle emitter in the world. Particle emitters emit 2D particles in a world that always face the camera.
8
+
9
+ <h2>Events</h2>
10
+
11
+ This class is an EventRouter, and instance of it emit events with payloads listed under [ParticleEmitterEventPayloads](./server.particleemittereventpayloads.md)<!-- -->.
12
+
13
+ **Signature:**
14
+
15
+ ```typescript
16
+ export default class ParticleEmitter extends EventRouter implements protocol.Serializable
17
+ ```
18
+ **Extends:** [EventRouter](./server.eventrouter.md)
19
+
20
+ **Implements:** protocol.Serializable
21
+
22
+ ## Example
23
+
24
+
25
+ ```typescript
26
+ const particleEmitter = new ParticleEmitter({
27
+ textureUri: 'textures/particles/smoke.png',
28
+ });
29
+
30
+ particleEmitter.spawn(world);
31
+ ```
32
+
33
+ ## Constructors
34
+
35
+ <table><thead><tr><th>
36
+
37
+ Constructor
38
+
39
+
40
+ </th><th>
41
+
42
+ Modifiers
43
+
44
+
45
+ </th><th>
46
+
47
+ Description
48
+
49
+
50
+ </th></tr></thead>
51
+ <tbody><tr><td>
52
+
53
+ [(constructor)(options)](./server.particleemitter._constructor_.md)
54
+
55
+
56
+ </td><td>
57
+
58
+
59
+ </td><td>
60
+
61
+ Constructs a new instance of the `ParticleEmitter` class
62
+
63
+
64
+ </td></tr>
65
+ </tbody></table>
66
+
67
+ ## Properties
68
+
69
+ <table><thead><tr><th>
70
+
71
+ Property
72
+
73
+
74
+ </th><th>
75
+
76
+ Modifiers
77
+
78
+
79
+ </th><th>
80
+
81
+ Type
82
+
83
+
84
+ </th><th>
85
+
86
+ Description
87
+
88
+
89
+ </th></tr></thead>
90
+ <tbody><tr><td>
91
+
92
+ [alphaTest](./server.particleemitter.alphatest.md)
93
+
94
+
95
+ </td><td>
96
+
97
+ `readonly`
98
+
99
+
100
+ </td><td>
101
+
102
+ number \| undefined
103
+
104
+
105
+ </td><td>
106
+
107
+ The alpha test value, discards particle texture pixels with alpha opacity less than this value.
108
+
109
+
110
+ </td></tr>
111
+ <tr><td>
112
+
113
+ [attachedToEntity](./server.particleemitter.attachedtoentity.md)
114
+
115
+
116
+ </td><td>
117
+
118
+ `readonly`
119
+
120
+
121
+ </td><td>
122
+
123
+ [Entity](./server.entity.md) \| undefined
124
+
125
+
126
+ </td><td>
127
+
128
+ The entity to which the ParticleEmitter is attached if explicitly set.
129
+
130
+
131
+ </td></tr>
132
+ <tr><td>
133
+
134
+ [colorEnd](./server.particleemitter.colorend.md)
135
+
136
+
137
+ </td><td>
138
+
139
+ `readonly`
140
+
141
+
142
+ </td><td>
143
+
144
+ [RgbColor](./server.rgbcolor.md) \| undefined
145
+
146
+
147
+ </td><td>
148
+
149
+ The color of an emitted particle at the end of its lifetime.
150
+
151
+
152
+ </td></tr>
153
+ <tr><td>
154
+
155
+ [colorEndVariance](./server.particleemitter.colorendvariance.md)
156
+
157
+
158
+ </td><td>
159
+
160
+ `readonly`
161
+
162
+
163
+ </td><td>
164
+
165
+ [RgbColor](./server.rgbcolor.md) \| undefined
166
+
167
+
168
+ </td><td>
169
+
170
+ The color variance of an emitted particle at the end of its lifetime.
171
+
172
+
173
+ </td></tr>
174
+ <tr><td>
175
+
176
+ [colorStart](./server.particleemitter.colorstart.md)
177
+
178
+
179
+ </td><td>
180
+
181
+ `readonly`
182
+
183
+
184
+ </td><td>
185
+
186
+ [RgbColor](./server.rgbcolor.md) \| undefined
187
+
188
+
189
+ </td><td>
190
+
191
+ The color of an emitted particle at the start of its lifetime.
192
+
193
+
194
+ </td></tr>
195
+ <tr><td>
196
+
197
+ [colorStartVariance](./server.particleemitter.colorstartvariance.md)
198
+
199
+
200
+ </td><td>
201
+
202
+ `readonly`
203
+
204
+
205
+ </td><td>
206
+
207
+ [RgbColor](./server.rgbcolor.md) \| undefined
208
+
209
+
210
+ </td><td>
211
+
212
+ The color variance of an emitted particle at the start of its lifetime.
213
+
214
+
215
+ </td></tr>
216
+ <tr><td>
217
+
218
+ [gravity](./server.particleemitter.gravity.md)
219
+
220
+
221
+ </td><td>
222
+
223
+ `readonly`
224
+
225
+
226
+ </td><td>
227
+
228
+ [Vector3Like](./server.vector3like.md) \| undefined
229
+
230
+
231
+ </td><td>
232
+
233
+ The gravity vector for an emitted particle.
234
+
235
+
236
+ </td></tr>
237
+ <tr><td>
238
+
239
+ [id](./server.particleemitter.id.md)
240
+
241
+
242
+ </td><td>
243
+
244
+ `readonly`
245
+
246
+
247
+ </td><td>
248
+
249
+ number \| undefined
250
+
251
+
252
+ </td><td>
253
+
254
+ The unique identifier for the ParticlEmitter.
255
+
256
+
257
+ </td></tr>
258
+ <tr><td>
259
+
260
+ [isSpawned](./server.particleemitter.isspawned.md)
261
+
262
+
263
+ </td><td>
264
+
265
+ `readonly`
266
+
267
+
268
+ </td><td>
269
+
270
+ boolean
271
+
272
+
273
+ </td><td>
274
+
275
+ Whether the ParticleEmitter is spawned in the world.
276
+
277
+
278
+ </td></tr>
279
+ <tr><td>
280
+
281
+ [isStopped](./server.particleemitter.isstopped.md)
282
+
283
+
284
+ </td><td>
285
+
286
+ `readonly`
287
+
288
+
289
+ </td><td>
290
+
291
+ boolean
292
+
293
+
294
+ </td><td>
295
+
296
+ Whether the ParticleEmitter is stopped.
297
+
298
+
299
+ </td></tr>
300
+ <tr><td>
301
+
302
+ [lifetime](./server.particleemitter.lifetime.md)
303
+
304
+
305
+ </td><td>
306
+
307
+ `readonly`
308
+
309
+
310
+ </td><td>
311
+
312
+ number \| undefined
313
+
314
+
315
+ </td><td>
316
+
317
+ The lifetime of an emitted particle in seconds.
318
+
319
+
320
+ </td></tr>
321
+ <tr><td>
322
+
323
+ [lifetimeVariance](./server.particleemitter.lifetimevariance.md)
324
+
325
+
326
+ </td><td>
327
+
328
+ `readonly`
329
+
330
+
331
+ </td><td>
332
+
333
+ number \| undefined
334
+
335
+
336
+ </td><td>
337
+
338
+ The lifetime variance of an emitted particle in seconds.
339
+
340
+
341
+ </td></tr>
342
+ <tr><td>
343
+
344
+ [maxParticles](./server.particleemitter.maxparticles.md)
345
+
346
+
347
+ </td><td>
348
+
349
+ `readonly`
350
+
351
+
352
+ </td><td>
353
+
354
+ number \| undefined
355
+
356
+
357
+ </td><td>
358
+
359
+ The maximum number of live particles.
360
+
361
+
362
+ </td></tr>
363
+ <tr><td>
364
+
365
+ [offset](./server.particleemitter.offset.md)
366
+
367
+
368
+ </td><td>
369
+
370
+ `readonly`
371
+
372
+
373
+ </td><td>
374
+
375
+ [Vector3Like](./server.vector3like.md) \| undefined
376
+
377
+
378
+ </td><td>
379
+
380
+ The offset of the particle emitter from the attached entity or position.
381
+
382
+
383
+ </td></tr>
384
+ <tr><td>
385
+
386
+ [opacityEnd](./server.particleemitter.opacityend.md)
387
+
388
+
389
+ </td><td>
390
+
391
+ `readonly`
392
+
393
+
394
+ </td><td>
395
+
396
+ number \| undefined
397
+
398
+
399
+ </td><td>
400
+
401
+ The opacity of an emitted particle at the end of its lifetime.
402
+
403
+
404
+ </td></tr>
405
+ <tr><td>
406
+
407
+ [opacityEndVariance](./server.particleemitter.opacityendvariance.md)
408
+
409
+
410
+ </td><td>
411
+
412
+ `readonly`
413
+
414
+
415
+ </td><td>
416
+
417
+ number \| undefined
418
+
419
+
420
+ </td><td>
421
+
422
+ The opacity variance of an emitted particle at the end of its lifetime.
423
+
424
+
425
+ </td></tr>
426
+ <tr><td>
427
+
428
+ [opacityStart](./server.particleemitter.opacitystart.md)
429
+
430
+
431
+ </td><td>
432
+
433
+ `readonly`
434
+
435
+
436
+ </td><td>
437
+
438
+ number \| undefined
439
+
440
+
441
+ </td><td>
442
+
443
+ The opacity of an emitted particle at the start of its lifetime.
444
+
445
+
446
+ </td></tr>
447
+ <tr><td>
448
+
449
+ [opacityStartVariance](./server.particleemitter.opacitystartvariance.md)
450
+
451
+
452
+ </td><td>
453
+
454
+ `readonly`
455
+
456
+
457
+ </td><td>
458
+
459
+ number \| undefined
460
+
461
+
462
+ </td><td>
463
+
464
+ The opacity variance of an emitted particle at the start of its lifetime.
465
+
466
+
467
+ </td></tr>
468
+ <tr><td>
469
+
470
+ [position](./server.particleemitter.position.md)
471
+
472
+
473
+ </td><td>
474
+
475
+ `readonly`
476
+
477
+
478
+ </td><td>
479
+
480
+ [Vector3Like](./server.vector3like.md) \| undefined
481
+
482
+
483
+ </td><td>
484
+
485
+ The position of the particle emitter in the world if explicitly set.
486
+
487
+
488
+ </td></tr>
489
+ <tr><td>
490
+
491
+ [positionVariance](./server.particleemitter.positionvariance.md)
492
+
493
+
494
+ </td><td>
495
+
496
+ `readonly`
497
+
498
+
499
+ </td><td>
500
+
501
+ [Vector3Like](./server.vector3like.md) \| undefined
502
+
503
+
504
+ </td><td>
505
+
506
+ The position variance of an emitted particle.
507
+
508
+
509
+ </td></tr>
510
+ <tr><td>
511
+
512
+ [rate](./server.particleemitter.rate.md)
513
+
514
+
515
+ </td><td>
516
+
517
+ `readonly`
518
+
519
+
520
+ </td><td>
521
+
522
+ number \| undefined
523
+
524
+
525
+ </td><td>
526
+
527
+ The rate per second at which particles are emitted.
528
+
529
+
530
+ </td></tr>
531
+ <tr><td>
532
+
533
+ [rateVariance](./server.particleemitter.ratevariance.md)
534
+
535
+
536
+ </td><td>
537
+
538
+ `readonly`
539
+
540
+
541
+ </td><td>
542
+
543
+ number \| undefined
544
+
545
+
546
+ </td><td>
547
+
548
+ The rate per second variance of the particle emission rate.
549
+
550
+
551
+ </td></tr>
552
+ <tr><td>
553
+
554
+ [size](./server.particleemitter.size.md)
555
+
556
+
557
+ </td><td>
558
+
559
+ `readonly`
560
+
561
+
562
+ </td><td>
563
+
564
+ number \| undefined
565
+
566
+
567
+ </td><td>
568
+
569
+ The size of an emitted particle.
570
+
571
+
572
+ </td></tr>
573
+ <tr><td>
574
+
575
+ [sizeVariance](./server.particleemitter.sizevariance.md)
576
+
577
+
578
+ </td><td>
579
+
580
+ `readonly`
581
+
582
+
583
+ </td><td>
584
+
585
+ number \| undefined
586
+
587
+
588
+ </td><td>
589
+
590
+ The size variance of an emitted particle.
591
+
592
+
593
+ </td></tr>
594
+ <tr><td>
595
+
596
+ [textureUri](./server.particleemitter.textureuri.md)
597
+
598
+
599
+ </td><td>
600
+
601
+ `readonly`
602
+
603
+
604
+ </td><td>
605
+
606
+ string
607
+
608
+
609
+ </td><td>
610
+
611
+ The URI or path to the texture to be used for the particles.
612
+
613
+
614
+ </td></tr>
615
+ <tr><td>
616
+
617
+ [transparent](./server.particleemitter.transparent.md)
618
+
619
+
620
+ </td><td>
621
+
622
+ `readonly`
623
+
624
+
625
+ </td><td>
626
+
627
+ boolean \| undefined
628
+
629
+
630
+ </td><td>
631
+
632
+ Whether an emitted particle is transparent, resulting in smoother transparency blending.
633
+
634
+
635
+ </td></tr>
636
+ <tr><td>
637
+
638
+ [velocity](./server.particleemitter.velocity.md)
639
+
640
+
641
+ </td><td>
642
+
643
+ `readonly`
644
+
645
+
646
+ </td><td>
647
+
648
+ [Vector3Like](./server.vector3like.md) \| undefined
649
+
650
+
651
+ </td><td>
652
+
653
+ The velocity of an emitted particle.
654
+
655
+
656
+ </td></tr>
657
+ <tr><td>
658
+
659
+ [velocityVariance](./server.particleemitter.velocityvariance.md)
660
+
661
+
662
+ </td><td>
663
+
664
+ `readonly`
665
+
666
+
667
+ </td><td>
668
+
669
+ [Vector3Like](./server.vector3like.md) \| undefined
670
+
671
+
672
+ </td><td>
673
+
674
+ The velocity variance of an emitted particle.
675
+
676
+
677
+ </td></tr>
678
+ <tr><td>
679
+
680
+ [world](./server.particleemitter.world.md)
681
+
682
+
683
+ </td><td>
684
+
685
+ `readonly`
686
+
687
+
688
+ </td><td>
689
+
690
+ [World](./server.world.md) \| undefined
691
+
692
+
693
+ </td><td>
694
+
695
+ The world the ParticleEmitter is in.
696
+
697
+
698
+ </td></tr>
699
+ </tbody></table>
700
+
701
+ ## Methods
702
+
703
+ <table><thead><tr><th>
704
+
705
+ Method
706
+
707
+
708
+ </th><th>
709
+
710
+ Modifiers
711
+
712
+
713
+ </th><th>
714
+
715
+ Description
716
+
717
+
718
+ </th></tr></thead>
719
+ <tbody><tr><td>
720
+
721
+ [despawn()](./server.particleemitter.despawn.md)
722
+
723
+
724
+ </td><td>
725
+
726
+
727
+ </td><td>
728
+
729
+ Despawns the ParticleEmitter from the world.
730
+
731
+
732
+ </td></tr>
733
+ <tr><td>
734
+
735
+ [restart()](./server.particleemitter.restart.md)
736
+
737
+
738
+ </td><td>
739
+
740
+
741
+ </td><td>
742
+
743
+ Restarts the particle emission if it was previously stopped. Internally, this sets the rate to the value it was before being stopped.
744
+
745
+
746
+ </td></tr>
747
+ <tr><td>
748
+
749
+ [setAlphaTest(alphaTest)](./server.particleemitter.setalphatest.md)
750
+
751
+
752
+ </td><td>
753
+
754
+
755
+ </td><td>
756
+
757
+ Sets the alpha test value, discards particle texture pixels with alpha opacity less than this value.
758
+
759
+
760
+ </td></tr>
761
+ <tr><td>
762
+
763
+ [setAttachedToEntity(entity)](./server.particleemitter.setattachedtoentity.md)
764
+
765
+
766
+ </td><td>
767
+
768
+
769
+ </td><td>
770
+
771
+ Sets the entity to which the ParticleEmitter is attached.
772
+
773
+
774
+ </td></tr>
775
+ <tr><td>
776
+
777
+ [setColorEnd(colorEnd)](./server.particleemitter.setcolorend.md)
778
+
779
+
780
+ </td><td>
781
+
782
+
783
+ </td><td>
784
+
785
+ Sets the color of an emitted particle at the end of its lifetime.
786
+
787
+
788
+ </td></tr>
789
+ <tr><td>
790
+
791
+ [setColorEndVariance(colorEndVariance)](./server.particleemitter.setcolorendvariance.md)
792
+
793
+
794
+ </td><td>
795
+
796
+
797
+ </td><td>
798
+
799
+ Sets the color variance of an emitted particle at the end of its lifetime.
800
+
801
+
802
+ </td></tr>
803
+ <tr><td>
804
+
805
+ [setColorStart(colorStart)](./server.particleemitter.setcolorstart.md)
806
+
807
+
808
+ </td><td>
809
+
810
+
811
+ </td><td>
812
+
813
+ Sets the color of an emitted particle at the start of its lifetime.
814
+
815
+
816
+ </td></tr>
817
+ <tr><td>
818
+
819
+ [setColorStartVariance(colorStartVariance)](./server.particleemitter.setcolorstartvariance.md)
820
+
821
+
822
+ </td><td>
823
+
824
+
825
+ </td><td>
826
+
827
+ Sets the color variance of an emitted particle at the start of its lifetime.
828
+
829
+
830
+ </td></tr>
831
+ <tr><td>
832
+
833
+ [setGravity(gravity)](./server.particleemitter.setgravity.md)
834
+
835
+
836
+ </td><td>
837
+
838
+
839
+ </td><td>
840
+
841
+ Sets the gravity vector for an emitted particle.
842
+
843
+
844
+ </td></tr>
845
+ <tr><td>
846
+
847
+ [setLifetime(lifetime)](./server.particleemitter.setlifetime.md)
848
+
849
+
850
+ </td><td>
851
+
852
+
853
+ </td><td>
854
+
855
+ Sets the lifetime of an emitted particle in seconds.
856
+
857
+
858
+ </td></tr>
859
+ <tr><td>
860
+
861
+ [setLifetimeVariance(lifetimeVariance)](./server.particleemitter.setlifetimevariance.md)
862
+
863
+
864
+ </td><td>
865
+
866
+
867
+ </td><td>
868
+
869
+ Sets the lifetime variance of an emitted particle in seconds.
870
+
871
+
872
+ </td></tr>
873
+ <tr><td>
874
+
875
+ [setMaxParticles(maxParticles)](./server.particleemitter.setmaxparticles.md)
876
+
877
+
878
+ </td><td>
879
+
880
+
881
+ </td><td>
882
+
883
+ Sets the maximum number of live particles.
884
+
885
+
886
+ </td></tr>
887
+ <tr><td>
888
+
889
+ [setOffset(offset)](./server.particleemitter.setoffset.md)
890
+
891
+
892
+ </td><td>
893
+
894
+
895
+ </td><td>
896
+
897
+ Sets the offset of the particle emitter from the attached entity or position.
898
+
899
+
900
+ </td></tr>
901
+ <tr><td>
902
+
903
+ [setOpacityEnd(opacityEnd)](./server.particleemitter.setopacityend.md)
904
+
905
+
906
+ </td><td>
907
+
908
+
909
+ </td><td>
910
+
911
+ Sets the opacity of an emitted particle at the end of its lifetime.
912
+
913
+
914
+ </td></tr>
915
+ <tr><td>
916
+
917
+ [setOpacityEndVariance(opacityEndVariance)](./server.particleemitter.setopacityendvariance.md)
918
+
919
+
920
+ </td><td>
921
+
922
+
923
+ </td><td>
924
+
925
+ Sets the opacity variance of an emitted particle at the end of its lifetime.
926
+
927
+
928
+ </td></tr>
929
+ <tr><td>
930
+
931
+ [setOpacityStart(opacityStart)](./server.particleemitter.setopacitystart.md)
932
+
933
+
934
+ </td><td>
935
+
936
+
937
+ </td><td>
938
+
939
+ Sets the opacity of an emitted particle at the start of its lifetime.
940
+
941
+
942
+ </td></tr>
943
+ <tr><td>
944
+
945
+ [setOpacityStartVariance(opacityStartVariance)](./server.particleemitter.setopacitystartvariance.md)
946
+
947
+
948
+ </td><td>
949
+
950
+
951
+ </td><td>
952
+
953
+ Sets the opacity variance of an emitted particle at the start of its lifetime.
954
+
955
+
956
+ </td></tr>
957
+ <tr><td>
958
+
959
+ [setPosition(position)](./server.particleemitter.setposition.md)
960
+
961
+
962
+ </td><td>
963
+
964
+
965
+ </td><td>
966
+
967
+ Sets the position of the particle emitter.
968
+
969
+
970
+ </td></tr>
971
+ <tr><td>
972
+
973
+ [setPositionVariance(positionVariance)](./server.particleemitter.setpositionvariance.md)
974
+
975
+
976
+ </td><td>
977
+
978
+
979
+ </td><td>
980
+
981
+ Sets the position variance of an emitted particle.
982
+
983
+
984
+ </td></tr>
985
+ <tr><td>
986
+
987
+ [setRate(rate)](./server.particleemitter.setrate.md)
988
+
989
+
990
+ </td><td>
991
+
992
+
993
+ </td><td>
994
+
995
+ Sets the rate per second at which particles are emitted.
996
+
997
+
998
+ </td></tr>
999
+ <tr><td>
1000
+
1001
+ [setRateVariance(rateVariance)](./server.particleemitter.setratevariance.md)
1002
+
1003
+
1004
+ </td><td>
1005
+
1006
+
1007
+ </td><td>
1008
+
1009
+ Sets the rate variance of the particle emission rate.
1010
+
1011
+
1012
+ </td></tr>
1013
+ <tr><td>
1014
+
1015
+ [setSize(size)](./server.particleemitter.setsize.md)
1016
+
1017
+
1018
+ </td><td>
1019
+
1020
+
1021
+ </td><td>
1022
+
1023
+ Sets the size of an emitted particle.
1024
+
1025
+
1026
+ </td></tr>
1027
+ <tr><td>
1028
+
1029
+ [setSizeVariance(sizeVariance)](./server.particleemitter.setsizevariance.md)
1030
+
1031
+
1032
+ </td><td>
1033
+
1034
+
1035
+ </td><td>
1036
+
1037
+ Sets the size variance of an emitted particle.
1038
+
1039
+
1040
+ </td></tr>
1041
+ <tr><td>
1042
+
1043
+ [setTextureUri(textureUri)](./server.particleemitter.settextureuri.md)
1044
+
1045
+
1046
+ </td><td>
1047
+
1048
+
1049
+ </td><td>
1050
+
1051
+ Sets the texture URI of the particles emitted.
1052
+
1053
+
1054
+ </td></tr>
1055
+ <tr><td>
1056
+
1057
+ [setTransparent(transparent)](./server.particleemitter.settransparent.md)
1058
+
1059
+
1060
+ </td><td>
1061
+
1062
+
1063
+ </td><td>
1064
+
1065
+ Sets the transparency of the particle emitter.
1066
+
1067
+
1068
+ </td></tr>
1069
+ <tr><td>
1070
+
1071
+ [setVelocity(velocity)](./server.particleemitter.setvelocity.md)
1072
+
1073
+
1074
+ </td><td>
1075
+
1076
+
1077
+ </td><td>
1078
+
1079
+ Sets the velocity of an emitted particle.
1080
+
1081
+
1082
+ </td></tr>
1083
+ <tr><td>
1084
+
1085
+ [setVelocityVariance(velocityVariance)](./server.particleemitter.setvelocityvariance.md)
1086
+
1087
+
1088
+ </td><td>
1089
+
1090
+
1091
+ </td><td>
1092
+
1093
+ Sets the velocity variance of an emitted particle.
1094
+
1095
+
1096
+ </td></tr>
1097
+ <tr><td>
1098
+
1099
+ [spawn(world)](./server.particleemitter.spawn.md)
1100
+
1101
+
1102
+ </td><td>
1103
+
1104
+
1105
+ </td><td>
1106
+
1107
+ Spawns the ParticleEmitter in the world.
1108
+
1109
+
1110
+ </td></tr>
1111
+ <tr><td>
1112
+
1113
+ [stop()](./server.particleemitter.stop.md)
1114
+
1115
+
1116
+ </td><td>
1117
+
1118
+
1119
+ </td><td>
1120
+
1121
+ Stops the particle emission if it was previously started. Internally, this sets the rate to 0.
1122
+
1123
+
1124
+ </td></tr>
1125
+ </tbody></table>