Class GlowMetaFirework

All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.inventory.meta.FireworkMeta, org.bukkit.inventory.meta.ItemMeta, org.bukkit.persistence.PersistentDataHolder

public class GlowMetaFirework extends GlowMetaItem implements org.bukkit.inventory.meta.FireworkMeta
  • Constructor Details

    • GlowMetaFirework

      public GlowMetaFirework(org.bukkit.inventory.meta.ItemMeta meta)
      Creates an instance by copying from the given 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 copy
  • Method Details

    • isApplicable

      public boolean isApplicable(org.bukkit.Material material)
      Description copied from class: GlowMetaItem
      Check whether this ItemMeta can be applied to the given material.
      isApplicable in class GlowMetaItem
      material - The Material.
      True if this ItemMeta is applicable.
    • clone

      @NotNull public @NotNull GlowMetaFirework clone()
      Specified by:
      clone in interface org.bukkit.inventory.meta.FireworkMeta
      Specified by:
      clone in interface org.bukkit.inventory.meta.ItemMeta
      clone in class GlowMetaItem
    • serialize

      @NotNull public @NotNull Map<String,Object> serialize()
      Specified by:
      serialize in interface org.bukkit.configuration.serialization.ConfigurationSerializable
      serialize in class GlowMetaItem
    • addEffect

      public void addEffect(@NotNull @NotNull org.bukkit.FireworkEffect effect)
      Specified by:
      addEffect in interface org.bukkit.inventory.meta.FireworkMeta
    • addEffects

      public void addEffects(org.bukkit.FireworkEffect... effects)
      Specified by:
      addEffects in interface org.bukkit.inventory.meta.FireworkMeta
    • addEffects

      public void addEffects(@NotNull @NotNull Iterable<org.bukkit.FireworkEffect> effects)
      Specified by:
      addEffects in interface org.bukkit.inventory.meta.FireworkMeta
    • getEffects

      @NotNull public @NotNull List<org.bukkit.FireworkEffect> getEffects()
      Specified by:
      getEffects in interface org.bukkit.inventory.meta.FireworkMeta
    • getEffectsSize

      public int getEffectsSize()
      Specified by:
      getEffectsSize in interface org.bukkit.inventory.meta.FireworkMeta
    • removeEffect

      public void removeEffect(int index)
      Specified by:
      removeEffect in interface org.bukkit.inventory.meta.FireworkMeta
    • clearEffects

      public void clearEffects()
      Specified by:
      clearEffects in interface org.bukkit.inventory.meta.FireworkMeta
    • hasEffects

      public boolean hasEffects()
      Specified by:
      hasEffects in interface org.bukkit.inventory.meta.FireworkMeta
    • setPower

      public void setPower(int power)
      Specified by:
      setPower in interface org.bukkit.inventory.meta.FireworkMeta
    • getPower

      public int getPower()
      Specified by:
      getPower in interface org.bukkit.inventory.meta.FireworkMeta