Package org.bukkit.inventory.meta
Interface FireworkEffectMeta
- All Superinterfaces:
java.lang.Cloneable,ConfigurationSerializable,ItemMeta
public interface FireworkEffectMeta extends ItemMeta
Represents a meta that can store a single FireworkEffect. An example
includes
Material.FIREWORK_CHARGE.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.bukkit.inventory.meta.ItemMeta
ItemMeta.Spigot -
Method Summary
Modifier and Type Method Description FireworkEffectMetaclone()FireworkEffectgetEffect()Gets the firework effect for this meta.booleanhasEffect()Checks if this meta has an effect.voidsetEffect(FireworkEffect effect)Sets the firework effect for this meta.Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serializeMethods inherited from interface org.bukkit.inventory.meta.ItemMeta
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLore, removeEnchant, removeItemFlags, setDisplayName, setLore, spigot
-
Method Details
-
setEffect
Sets the firework effect for this meta.- Parameters:
effect- the effect to set, or null to indicate none.
-
hasEffect
boolean hasEffect()Checks if this meta has an effect.- Returns:
- true if this meta has an effect, false otherwise
-
getEffect
FireworkEffect getEffect()Gets the firework effect for this meta.- Returns:
- the current effect, or null if none
-
clone
FireworkEffectMeta clone()
-