public class GlowMetaFireworkEffect extends GlowMetaItem implements org.bukkit.inventory.meta.FireworkEffectMeta
Constructor and Description |
---|
GlowMetaFireworkEffect(org.bukkit.inventory.meta.ItemMeta meta)
Creates an instance by copying from the given
ItemMeta . |
Modifier and Type | Method and Description |
---|---|
GlowMetaFireworkEffect |
clone() |
org.bukkit.FireworkEffect |
getEffect() |
boolean |
hasEffect() |
boolean |
isApplicable(org.bukkit.Material material)
Check whether this ItemMeta can be applied to the given material.
|
Map<String,Object> |
serialize() |
void |
setEffect(org.bukkit.FireworkEffect effect) |
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 GlowMetaFireworkEffect(org.bukkit.inventory.meta.ItemMeta meta)
ItemMeta
. If that item is another
FireworkEffectMeta
, it is copied fully; otherwise, the FireworkEffect
is
null.meta
- the ItemMeta
to copypublic boolean isApplicable(org.bukkit.Material material)
GlowMetaItem
isApplicable
in class GlowMetaItem
material
- The Material.public GlowMetaFireworkEffect clone()
clone
in interface org.bukkit.inventory.meta.FireworkEffectMeta
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 boolean hasEffect()
hasEffect
in interface org.bukkit.inventory.meta.FireworkEffectMeta
public org.bukkit.FireworkEffect getEffect()
getEffect
in interface org.bukkit.inventory.meta.FireworkEffectMeta
public void setEffect(org.bukkit.FireworkEffect effect)
setEffect
in interface org.bukkit.inventory.meta.FireworkEffectMeta
Copyright © 2021. All rights reserved.