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, applyToEveryoneExcept
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, applyToEveryoneExcept
public TridentVisualEffect(World world, VisualEffectType type)
public VisualEffectType type()
Effect
type
in interface Effect<VisualEffectType>
public void setType(VisualEffectType type)
Effect
setType
in interface Effect<VisualEffectType>
type
- The type of the effectpublic void setData(int data)
VisualEffect
setData
in interface VisualEffect
data
- Data of the effectpublic int data()
VisualEffect
data
in interface VisualEffect
public void setPosition(Vector vector)
RemoteEffect
setPosition
in interface RemoteEffect<VisualEffectType>
vector
- The vector of the effectpublic OutPacket getPacket()
getPacket
in class TridentEffect<VisualEffectType>
Copyright © 2016. All rights reserved.