/FileExtraction/Java_unseen/Wind-Development_WindSpigot/WindSpigot-API/src/main/java/org/bukkit/inventory/meta/FireworkEffectMeta.java
package org.bukkit.inventory.meta;

import org.bukkit.FireworkEffect;
import org.bukkit.Material;

/**
 * Represents a meta that can store a single FireworkEffect. An example includes
 * {@link Material#FIREWORK_CHARGE}.
 */
public interface FireworkEffectMeta extends ItemMeta {

	/**
	 * Sets the firework effect for this meta.
	 *
	 * @param effect the effect to set, or null to indicate none.
	 */
	void setEffect(FireworkEffect effect);

	/**
	 * Checks if this meta has an effect.
	 *
	 * @return true if this meta has an effect, false otherwise
	 */
	boolean hasEffect();

	/**
	 * Gets the firework effect for this meta.
	 *
	 * @return the current effect, or null if none
	 */
	FireworkEffect getEffect();

	FireworkEffectMeta clone();
}
