public class TridentParticleEffect extends TridentRemoteEffect<ParticleEffectType> implements ParticleEffect
| Constructor and Description |
|---|
TridentParticleEffect(World world,
ParticleEffectType type) |
| 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
|
OutPacket |
getPacket() |
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 |
void |
setPosition(Vector vector)
Set the position of the effect
|
void |
setType(ParticleEffectType type)
Set the type of the effect
|
ParticleEffectType |
type()
The type of the effect
|
apply, apply, applyToEveryoneExceptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, apply, applyToEveryoneExceptpublic TridentParticleEffect(World world, ParticleEffectType type)
public ParticleEffectType type()
Effecttype in interface Effect<ParticleEffectType>public void setType(ParticleEffectType type)
EffectsetType in interface Effect<ParticleEffectType>type - The type of the effectpublic void setPosition(Vector vector)
RemoteEffectsetPosition in interface RemoteEffect<ParticleEffectType>vector - The vector of the effectpublic void setCount(int count)
ParticleEffectsetCount in interface ParticleEffectcount - The count how many should be spawnedpublic void setLongDistance(boolean longDistance)
ParticleEffectsetLongDistance in interface ParticleEffectlongDistance - Whether the particle should be long distancepublic void setData(int[] data)
ParticleEffectsetData in interface ParticleEffectdata - Data of the particlepublic void setOffset(Vector offset)
ParticleEffectsetOffset in interface ParticleEffectoffset - The offset for each particlepublic int count()
ParticleEffectcount in interface ParticleEffectpublic boolean longDistance()
ParticleEffectlongDistance in interface ParticleEffectpublic int[] data()
ParticleEffectdata in interface ParticleEffectpublic Vector offset()
ParticleEffectoffset in interface ParticleEffectpublic OutPacket getPacket()
getPacket in class TridentEffect<ParticleEffectType>Copyright © 2016. All rights reserved.