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, waitprocessprotected byte id
protected byte amplifier
protected int duration
protected byte ambient
protected byte showParticles
public TridentPotionEffect()
public PotionEffectType effectType()
PotionEffecteffectType in interface PotionEffectpublic void setEffectType(PotionEffectType type)
PotionEffectsetEffectType in interface PotionEffecttype - the effect type you wish to set it topublic byte amplifier()
PotionEffectamplifier in interface PotionEffectpublic void setAmplifier(byte b)
PotionEffectsetAmplifier in interface PotionEffectb - the amp you wish to set it topublic int duration()
PotionEffectduration in interface PotionEffectpublic void setDuration(int duration)
PotionEffectsetDuration in interface PotionEffectduration - duration you wish to set it topublic boolean isAmbient()
PotionEffectisAmbient in interface PotionEffectpublic void setAmbient(boolean ambient)
PotionEffectsetAmbient in interface PotionEffectpublic boolean showParticles()
PotionEffectshowParticles in interface PotionEffectpublic void setShowParticles(boolean showParticles)
PotionEffectsetShowParticles in interface PotionEffectshowParticles - if the particles should show to the clientCopyright © 2016. All rights reserved.