public class GlowMetaFirework extends GlowMetaItem implements org.bukkit.inventory.meta.FireworkMeta
Constructor and Description |
---|
GlowMetaFirework(org.bukkit.inventory.meta.ItemMeta meta)
Creates an instance by copying from the given
ItemMeta . |
Modifier and Type | Method and Description |
---|---|
void |
addEffect(org.bukkit.FireworkEffect effect) |
void |
addEffects(org.bukkit.FireworkEffect... effects) |
void |
addEffects(Iterable<org.bukkit.FireworkEffect> effects) |
void |
clearEffects() |
GlowMetaFirework |
clone() |
List<org.bukkit.FireworkEffect> |
getEffects() |
int |
getEffectsSize() |
int |
getPower() |
boolean |
hasEffects() |
boolean |
isApplicable(org.bukkit.Material material)
Check whether this ItemMeta can be applied to the given material.
|
void |
removeEffect(int index) |
Map<String,Object> |
serialize() |
void |
setPower(int power) |
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, writeNbtEnchants
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable, spigot
public GlowMetaFirework(org.bukkit.inventory.meta.ItemMeta meta)
ItemMeta
. If that item is another
FireworkMeta
, its effects and power are copied; otherwise, the new firework has no
effects and zero power.meta
- the ItemMeta
to copypublic boolean isApplicable(org.bukkit.Material material)
GlowMetaItem
isApplicable
in class GlowMetaItem
material
- The Material.public GlowMetaFirework clone()
clone
in interface org.bukkit.inventory.meta.FireworkMeta
clone
in interface org.bukkit.inventory.meta.ItemMeta
clone
in class GlowMetaItem
public Map<String,Object> serialize()
serialize
in interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
in class GlowMetaItem
public void addEffect(org.bukkit.FireworkEffect effect)
addEffect
in interface org.bukkit.inventory.meta.FireworkMeta
public void addEffects(org.bukkit.FireworkEffect... effects)
addEffects
in interface org.bukkit.inventory.meta.FireworkMeta
public void addEffects(Iterable<org.bukkit.FireworkEffect> effects)
addEffects
in interface org.bukkit.inventory.meta.FireworkMeta
public List<org.bukkit.FireworkEffect> getEffects()
getEffects
in interface org.bukkit.inventory.meta.FireworkMeta
public int getEffectsSize()
getEffectsSize
in interface org.bukkit.inventory.meta.FireworkMeta
public void removeEffect(int index)
removeEffect
in interface org.bukkit.inventory.meta.FireworkMeta
public void clearEffects()
clearEffects
in interface org.bukkit.inventory.meta.FireworkMeta
public boolean hasEffects()
hasEffects
in interface org.bukkit.inventory.meta.FireworkMeta
public void setPower(int power)
setPower
in interface org.bukkit.inventory.meta.FireworkMeta
public int getPower()
getPower
in interface org.bukkit.inventory.meta.FireworkMeta
Copyright © 2021. All rights reserved.