public interface ParticleEffect extends RemoteEffect<ParticleEffectType>
Modifier and Type | Method and Description |
---|---|
int |
count()
Returns the count of how many particles will be spawned
|
int[] |
data()
Returns the data of the particle
|
boolean |
longDistance()
Returns whether the particle should be long distance
|
Vector |
offset()
Returns the offset for each particle
|
void |
setCount(int count)
Set the count how many of the effects should be spawned
|
void |
setData(int[] data)
Set the data of the particle
Only used for ICON_CRACK, BLOCK_CRACK and BLOCK_DUST ICON_CRACK requires array of two integers BLOCK_CRACK and BLOCK_DUST requires an array of a single integer |
void |
setLongDistance(boolean longDistance)
Set the particle to be long distance
Increases distance from 256 to 65536 |
void |
setOffset(Vector offset)
The randomized offset for each particle
If multiple particles are spawned, this will be re-run for each |
setPosition
void setCount(int count)
count
- The count how many should be spawnedvoid setLongDistance(boolean longDistance)
longDistance
- Whether the particle should be long distancevoid setData(int[] data)
data
- Data of the particlevoid setOffset(Vector offset)
offset
- The offset for each particleint count()
boolean longDistance()
int[] data()
Copyright © 2016. All rights reserved.