Class GlowMetaFireworkEffect

java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaFireworkEffect
All Implemented Interfaces:
Cloneable, org.bukkit.configuration.serialization.ConfigurationSerializable, org.bukkit.inventory.meta.FireworkEffectMeta, org.bukkit.inventory.meta.ItemMeta, org.bukkit.persistence.PersistentDataHolder

public class GlowMetaFireworkEffect extends GlowMetaItem implements org.bukkit.inventory.meta.FireworkEffectMeta
  • Constructor Details

    • GlowMetaFireworkEffect

      public GlowMetaFireworkEffect(org.bukkit.inventory.meta.ItemMeta meta)
      Creates an instance by copying from the given ItemMeta. If that item is another FireworkEffectMeta, it is copied fully; otherwise, the FireworkEffect is null.
      Parameters:
      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.
      Overrides:
      isApplicable in class GlowMetaItem
      Parameters:
      material - The Material.
      Returns:
      True if this ItemMeta is applicable.
    • clone

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

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

      public boolean hasEffect()
      Specified by:
      hasEffect in interface org.bukkit.inventory.meta.FireworkEffectMeta
    • getEffect

      public org.bukkit.FireworkEffect getEffect()
      Specified by:
      getEffect in interface org.bukkit.inventory.meta.FireworkEffectMeta
    • setEffect

      public void setEffect(org.bukkit.FireworkEffect effect)
      Specified by:
      setEffect in interface org.bukkit.inventory.meta.FireworkEffectMeta