public class GlowMetaPotion extends GlowMetaItem implements org.bukkit.inventory.meta.PotionMeta
| Constructor and Description |
|---|
GlowMetaPotion(org.bukkit.inventory.meta.ItemMeta meta)
Creates an instance by copying from the given
ItemMeta. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addCustomEffect(org.bukkit.potion.PotionEffect effect,
boolean overwrite) |
boolean |
clearCustomEffects() |
void |
clearCustomEffects0() |
GlowMetaPotion |
clone() |
static String |
dataToString(org.bukkit.potion.PotionData basePotionData)
Converts a PotionData to a Potion ID string.
|
static org.bukkit.potion.PotionEffect |
fromNbt(CompoundTag tag)
Reads a
PotionEffect from an NBT compound tag. |
org.bukkit.potion.PotionData |
getBasePotionData() |
org.bukkit.Color |
getColor() |
List<org.bukkit.potion.PotionEffect> |
getCustomEffects() |
boolean |
hasColor() |
boolean |
hasCustomEffect(org.bukkit.potion.PotionEffectType type) |
boolean |
hasCustomEffects() |
boolean |
isApplicable(org.bukkit.Material material)
Check whether this ItemMeta can be applied to the given material.
|
boolean |
removeCustomEffect(org.bukkit.potion.PotionEffectType type) |
Map<String,Object> |
serialize() |
void |
setBasePotionData(org.bukkit.potion.PotionData basePotionData) |
void |
setColor(org.bukkit.Color color) |
boolean |
setMainEffect(org.bukkit.potion.PotionEffectType type) |
static CompoundTag |
toNbt(org.bukkit.potion.PotionEffect effect)
Converts a
PotionEffect to an NBT compound tag. |
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, readNbtEnchants, removeEnchant, removeItemFlags, serializeEnchants, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot, toString, writeNbtEnchantsequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigotpublic GlowMetaPotion(org.bukkit.inventory.meta.ItemMeta meta)
ItemMeta. If that item is another
PotionMeta, its color, PotionData and PotionEffects are copied;
otherwise, the new potion has no effects.meta - the ItemMeta to copypublic static org.bukkit.potion.PotionEffect fromNbt(CompoundTag tag)
PotionEffect from an NBT compound tag.tag - a potion effect NBT compound tagtag as a PotionEffectpublic static CompoundTag toNbt(org.bukkit.potion.PotionEffect effect)
PotionEffect to an NBT compound tag.effect - the potion effecteffect as an NBT compound tagpublic boolean isApplicable(org.bukkit.Material material)
GlowMetaItemisApplicable in class GlowMetaItemmaterial - The Material.public GlowMetaPotion clone()
clone in interface org.bukkit.inventory.meta.ItemMetaclone in interface org.bukkit.inventory.meta.PotionMetaclone in class GlowMetaItempublic Map<String,Object> serialize()
serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializableserialize in class GlowMetaItempublic boolean hasCustomEffects()
hasCustomEffects in interface org.bukkit.inventory.meta.PotionMetahasCustomEffects in interface org.bukkit.potion.PotionDataHolderpublic List<org.bukkit.potion.PotionEffect> getCustomEffects()
getCustomEffects in interface org.bukkit.inventory.meta.PotionMetagetCustomEffects in interface org.bukkit.potion.PotionDataHolderpublic boolean addCustomEffect(org.bukkit.potion.PotionEffect effect,
boolean overwrite)
addCustomEffect in interface org.bukkit.inventory.meta.PotionMetaaddCustomEffect in interface org.bukkit.potion.PotionDataHolderpublic boolean removeCustomEffect(org.bukkit.potion.PotionEffectType type)
removeCustomEffect in interface org.bukkit.inventory.meta.PotionMetaremoveCustomEffect in interface org.bukkit.potion.PotionDataHolderpublic boolean hasCustomEffect(org.bukkit.potion.PotionEffectType type)
hasCustomEffect in interface org.bukkit.inventory.meta.PotionMetahasCustomEffect in interface org.bukkit.potion.PotionDataHolderpublic void clearCustomEffects0()
clearCustomEffects0 in interface org.bukkit.potion.PotionDataHolderpublic boolean setMainEffect(org.bukkit.potion.PotionEffectType type)
setMainEffect in interface org.bukkit.inventory.meta.PotionMetapublic boolean clearCustomEffects()
clearCustomEffects in interface org.bukkit.inventory.meta.PotionMetapublic boolean hasColor()
hasColor in interface org.bukkit.inventory.meta.PotionMetahasColor in interface org.bukkit.potion.PotionDataHolderpublic static String dataToString(org.bukkit.potion.PotionData basePotionData)
basePotionData - the PotionData to convertpublic org.bukkit.potion.PotionData getBasePotionData()
getBasePotionData in interface org.bukkit.inventory.meta.PotionMetagetBasePotionData in interface org.bukkit.potion.PotionDataHolderpublic void setBasePotionData(org.bukkit.potion.PotionData basePotionData)
setBasePotionData in interface org.bukkit.inventory.meta.PotionMetasetBasePotionData in interface org.bukkit.potion.PotionDataHolderpublic org.bukkit.Color getColor()
getColor in interface org.bukkit.inventory.meta.PotionMetagetColor in interface org.bukkit.potion.PotionDataHolderpublic void setColor(org.bukkit.Color color)
setColor in interface org.bukkit.inventory.meta.PotionMetasetColor in interface org.bukkit.potion.PotionDataHolderCopyright © 2021. All rights reserved.