Interface FireworkEffectMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder

public interface FireworkEffectMeta extends ItemMeta
Represents a meta that can store a single FireworkEffect. An example includes Material.FIREWORK_STAR.
  • Method Details

    • 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

      Gets the firework effect for this meta.
      Returns:
      the current effect, or null if none
    • clone

      Specified by:
      clone in interface ItemMeta