public class TridentPotionEffect extends Object implements PotionEffect
Modifier and Type | Field and Description |
---|---|
protected byte |
ambient |
protected byte |
amplifier |
protected int |
duration |
protected byte |
id |
protected byte |
showParticles |
Constructor and Description |
---|
TridentPotionEffect() |
Modifier and Type | Method and Description |
---|---|
byte |
amplifier()
Returns the amplifier of this potion
|
int |
duration()
Returns the duration of the potion, in ticks
|
PotionEffectType |
effectType()
Returns the effect type of this potion
|
boolean |
isAmbient()
Returns whether or not if the potion is ambient
|
void |
setAmbient(boolean ambient)
Sets if the potion is ambient or not
|
void |
setAmplifier(byte b)
Sets the amplifier of the potion
|
void |
setDuration(int duration)
Sets the duration of the potion, measured in ticks
|
void |
setEffectType(PotionEffectType type)
Sets the effect type of this potion
|
void |
setShowParticles(boolean showParticles)
Sets if the particles should show to the client
|
boolean |
showParticles()
Returns whether the potion will show particles to the client
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
protected byte id
protected byte amplifier
protected int duration
protected byte ambient
protected byte showParticles
public TridentPotionEffect()
public PotionEffectType effectType()
PotionEffect
effectType
in interface PotionEffect
public void setEffectType(PotionEffectType type)
PotionEffect
setEffectType
in interface PotionEffect
type
- the effect type you wish to set it topublic byte amplifier()
PotionEffect
amplifier
in interface PotionEffect
public void setAmplifier(byte b)
PotionEffect
setAmplifier
in interface PotionEffect
b
- the amp you wish to set it topublic int duration()
PotionEffect
duration
in interface PotionEffect
public void setDuration(int duration)
PotionEffect
setDuration
in interface PotionEffect
duration
- duration you wish to set it topublic boolean isAmbient()
PotionEffect
isAmbient
in interface PotionEffect
public void setAmbient(boolean ambient)
PotionEffect
setAmbient
in interface PotionEffect
public boolean showParticles()
PotionEffect
showParticles
in interface PotionEffect
public void setShowParticles(boolean showParticles)
PotionEffect
setShowParticles
in interface PotionEffect
showParticles
- if the particles should show to the clientCopyright © 2016. All rights reserved.