public interface PotionEffect extends NBTSerializable
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
|
process
PotionEffectType effectType()
void setEffectType(PotionEffectType type)
type
- the effect type you wish to set it tobyte amplifier()
void setAmplifier(byte b)
b
- the amp you wish to set it toint duration()
void setDuration(int duration)
duration
- duration you wish to set it toboolean isAmbient()
void setAmbient(boolean ambient)
boolean showParticles()
void setShowParticles(boolean showParticles)
showParticles
- if the particles should show to the clientCopyright © 2016. All rights reserved.