Interface FireworkEffectMeta

All Superinterfaces:
Cloneable, ConfigurationSerializable, ItemMeta, PersistentDataHolder, PersistentDataViewHolder

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

    • setEffect

      void setEffect(@Nullable @Nullable FireworkEffect effect)
      Sets the firework effect for this meta.
      Parameters:
      effect - the effect to set, or null to indicate none.
      Since:
      1.4.6
    • hasEffect

      boolean hasEffect()
      Checks if this meta has an effect.
      Returns:
      true if this meta has an effect, false otherwise
      Since:
      1.4.6
    • getEffect

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

      Specified by:
      clone in interface ItemMeta