public final class GlowPotionEffect
extends org.bukkit.potion.PotionEffectType
ABSORPTION, BLINDNESS, CONFUSION, DAMAGE_RESISTANCE, FAST_DIGGING, FIRE_RESISTANCE, GLOWING, HARM, HEAL, HEALTH_BOOST, HUNGER, INCREASE_DAMAGE, INVISIBILITY, JUMP, LEVITATION, LUCK, NIGHT_VISION, POISON, REGENERATION, SATURATION, SLOW, SLOW_DIGGING, SPEED, UNLUCK, WATER_BREATHING, WEAKNESS, WITHER| Modifier and Type | Method and Description |
|---|---|
static org.bukkit.potion.PotionEffectType |
getByVanillaId(String vanillaId) |
org.bukkit.Color |
getColor() |
double |
getDurationModifier() |
static GlowPotionEffect |
getEffect(org.bukkit.potion.PotionEffectType type)
Get a GlowPotionEffect from a PotionEffectType if possible.
|
String |
getName() |
String |
getVanillaId()
Returns the vanilla id of a PotionEffect.
|
static List<String> |
getVanillaIds() |
boolean |
isInstant() |
static org.bukkit.potion.PotionEffectType |
parsePotionEffectId(String effectName)
Parses a PotionEffect id or name if possible.
|
void |
pulse(org.bukkit.entity.LivingEntity entity,
org.bukkit.potion.PotionEffect effect)
Pulse this potion effect on a specified entity.
|
static void |
register()
Register all potion effect types with PotionEffectType.
|
public static void register()
public static GlowPotionEffect getEffect(org.bukkit.potion.PotionEffectType type)
type - The PotionEffectType.public static org.bukkit.potion.PotionEffectType parsePotionEffectId(String effectName)
effectName - The PotionEffectType name.public static org.bukkit.potion.PotionEffectType getByVanillaId(String vanillaId)
public String getName()
getName in class org.bukkit.potion.PotionEffectTypepublic String getVanillaId()
public boolean isInstant()
isInstant in class org.bukkit.potion.PotionEffectTypepublic org.bukkit.Color getColor()
getColor in class org.bukkit.potion.PotionEffectTypepublic double getDurationModifier()
getDurationModifier in class org.bukkit.potion.PotionEffectTypepublic void pulse(org.bukkit.entity.LivingEntity entity,
org.bukkit.potion.PotionEffect effect)
If the potion effect is not applicable, nothing happens. For instant effects, will only have an effect if 'ticks' is 0.
entity - The entity to pulse on.effect - Information on the effect's state.Copyright © 2021. All rights reserved.