Package org.bukkit.inventory.meta
Interface FireworkEffectMeta
-
- All Superinterfaces:
Cloneable
,ConfigurationSerializable
,ItemMeta
,PersistentDataHolder
public interface FireworkEffectMeta extends ItemMeta
Represents a meta that can store a single FireworkEffect. An example includesMaterial.FIREWORK_STAR
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.bukkit.inventory.meta.ItemMeta
ItemMeta.Spigot
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FireworkEffectMeta
clone()
FireworkEffect
getEffect()
Gets the firework effect for this meta.boolean
hasEffect()
Checks if this meta has an effect.void
setEffect(FireworkEffect effect)
Sets the firework effect for this meta.-
Methods inherited from interface org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
-
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersion, spigot
-
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
-
-
-
Method Detail
-
setEffect
void setEffect(@Nullable FireworkEffect effect)
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
@Nullable FireworkEffect getEffect()
Gets the firework effect for this meta.- Returns:
- the current effect, or null if none
-
clone
@NotNull FireworkEffectMeta clone()
-
-