程序包 org.bukkit.inventory.meta

# 接口 FireworkEffectMeta

所有超级接口:
  `Cloneable`, `ConfigurationSerializable`, `ItemMeta`, `PersistentDataHolder`

public interface FireworkEffectMeta extends ItemMeta
代表可以存储单个FireworkEffect的meta.例如包含`Material.FIREWORK_STAR`.

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull FireworkEffectMeta`
  `clone()`
  `@Nullable FireworkEffect`
  `getEffect()`
  获取这个meta的烟花效果.
  `boolean`
  `hasEffect()`
  检测这个meta是否拥有烟花效果.
  `void`
  `setEffect(@Nullable FireworkEffect effect)`
  设置这个meta的烟花效果.

  ### 从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable

  `serialize`

  ### 从接口继承的方法 org.bukkit.inventory.meta.ItemMeta

  `addAttributeModifier, addEnchant, addItemFlags, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersion`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

- ## 方法详细资料

  - ### setEffect

    void setEffect(@Nullable @Nullable FireworkEffect effect)
    设置这个meta的烟花效果.

    原文:Sets the firework effect for this meta.

    参数:
      `effect` - 要设置的效果，或者设置null来清空效果

  - ### hasEffect

    boolean hasEffect()
    检测这个meta是否拥有烟花效果.

    原文：Checks if this meta has an effect.

    返回:
      true表示这个meta拥有烟花效果,否则为false

  - ### getEffect

    @Nullable @Nullable FireworkEffect getEffect()
    获取这个meta的烟花效果.

    原文:Gets the firework effect for this meta.

    返回:
      当前的效果,如果没有则为null

  - ### clone

    @NotNull @NotNull FireworkEffectMeta clone()
    指定者:
      `clone` 在接口中 `ItemMeta`