Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
FireworkEffectMeta.java
1 package org.bukkit.inventory.meta;
2 
4 import org.bukkit.Material;
5 
6 /**
7  * Represents a meta that can store a single FireworkEffect. An example
8  * includes {@link Material#FIREWORK_CHARGE}.
9  */
10 public interface FireworkEffectMeta extends ItemMeta {
11 
12  /**
13  * Sets the firework effect for this meta.
14  *
15  * @param effect the effect to set, or null to indicate none.
16  */
17  void setEffect(FireworkEffect effect);
18 
19  /**
20  * Checks if this meta has an effect.
21  *
22  * @return true if this meta has an effect, false otherwise
23  */
24  boolean hasEffect();
25 
26  /**
27  * Gets the firework effect for this meta.
28  *
29  * @return the current effect, or null if none
30  */
32 
33  FireworkEffectMeta clone();
34 }
void setEffect(FireworkEffect effect)