public final class PotionHelper extends Object
Constructor and Description |
---|
PotionHelper() |
Modifier and Type | Method and Description |
---|---|
static org.bukkit.potion.PotionEffectType |
getPotionEffectType(String name)
Try to get a
PotionEffectType object by the name |
static List<String> |
getPotionNames() |
static PotionWrapper |
getPotionWrapper(String potion)
Try to get a
PotionWrapper from a string which synthax must be 'potion:level' |
@Nullable public static org.bukkit.potion.PotionEffectType getPotionEffectType(@NotNull String name)
PotionEffectType
object by the namename
- name of the potion effect type@Nullable public static PotionWrapper getPotionWrapper(@NotNull String potion)
PotionWrapper
from a string which synthax must be 'potion:level'potion
- the stringCopyright © 2021. All rights reserved.