Java Code Examples for org.bukkit.potion.PotionEffect#hasParticles()
The following examples show how to use
org.bukkit.potion.PotionEffect#hasParticles() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CraftPotionUtil.java From Kettle with GNU General Public License v3.0 | 4 votes |
public static net.minecraft.potion.PotionEffect fromBukkit(PotionEffect effect) { Potion type = Potion.getPotionById(effect.getType().getId()); return new net.minecraft.potion.PotionEffect(type, effect.getDuration(), effect.getAmplifier(), effect.isAmbient(), effect.hasParticles()); }
Example 2
Source File: PotionEffectFlag.java From WorldGuardExtraFlagsPlugin with MIT License | 4 votes |
@Override public Object marshal(PotionEffect o) { return o.getType().getName() + " " + o.getAmplifier() + " " + o.hasParticles(); }