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.
      effect - the effect to set, or null to indicate none.
    • hasEffect

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

      @Nullable FireworkEffect getEffect()
      Gets the firework effect for this meta.
      the current effect, or null if none
    • clone

      @NotNull FireworkEffectMeta clone()
      Specified by:
      clone in interface ItemMeta