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, applyToEveryoneExcept
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, applyToEveryoneExcept
public TridentParticleEffect(World world, ParticleEffectType type)
public ParticleEffectType type()
Effect
type
in interface Effect<ParticleEffectType>
public void setType(ParticleEffectType type)
Effect
setType
in interface Effect<ParticleEffectType>
type
- The type of the effectpublic void setPosition(Vector vector)
RemoteEffect
setPosition
in interface RemoteEffect<ParticleEffectType>
vector
- The vector of the effectpublic void setCount(int count)
ParticleEffect
setCount
in interface ParticleEffect
count
- The count how many should be spawnedpublic void setLongDistance(boolean longDistance)
ParticleEffect
setLongDistance
in interface ParticleEffect
longDistance
- Whether the particle should be long distancepublic void setData(int[] data)
ParticleEffect
setData
in interface ParticleEffect
data
- Data of the particlepublic void setOffset(Vector offset)
ParticleEffect
setOffset
in interface ParticleEffect
offset
- The offset for each particlepublic int count()
ParticleEffect
count
in interface ParticleEffect
public boolean longDistance()
ParticleEffect
longDistance
in interface ParticleEffect
public int[] data()
ParticleEffect
data
in interface ParticleEffect
public Vector offset()
ParticleEffect
offset
in interface ParticleEffect
public OutPacket getPacket()
getPacket
in class TridentEffect<ParticleEffectType>
Copyright © 2016. All rights reserved.