public class TridentVisualEffect extends TridentRemoteEffect<VisualEffectType> implements VisualEffect
| Constructor and Description |
|---|
TridentVisualEffect(World world,
VisualEffectType type) |
| Modifier and Type | Method and Description |
|---|---|
int |
data()
Returns the data of the effect
|
OutPacket |
getPacket() |
void |
setData(int data)
Set the data of the effect
Only used for FIRE_SMOKE, BLOCK_BREAK and SPLASH_POTION FIRE_SMOKE requires direction of the smoke 0 = South-East, 1 = South, 2 = South-West, 3 = East, 4 = Up/Middle, 5 = West, 6 = North-East, 7 = North, 8 = North-West BLOCK_BREAK requires block ID SPLASH_POTION requires potion ID (refer to This List) |
void |
setPosition(Vector vector)
Set the position of the effect
|
void |
setType(VisualEffectType type)
Set the type of the effect
|
VisualEffectType |
type()
The type of the effect
|
apply, apply, applyToEveryoneExceptclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, apply, applyToEveryoneExceptpublic TridentVisualEffect(World world, VisualEffectType type)
public VisualEffectType type()
Effecttype in interface Effect<VisualEffectType>public void setType(VisualEffectType type)
EffectsetType in interface Effect<VisualEffectType>type - The type of the effectpublic void setData(int data)
VisualEffectsetData in interface VisualEffectdata - Data of the effectpublic int data()
VisualEffectdata in interface VisualEffectpublic void setPosition(Vector vector)
RemoteEffectsetPosition in interface RemoteEffect<VisualEffectType>vector - The vector of the effectpublic OutPacket getPacket()
getPacket in class TridentEffect<VisualEffectType>Copyright © 2016. All rights reserved.