blob: f3af4bcc505669a97b348db6001e00506c19697f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
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_STAR}.
*/
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();
}
|