|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.bukkit.FireworkEffect
public final class FireworkEffect
Represents a single firework effect.
| Nested Class Summary | |
|---|---|
static class |
FireworkEffect.Builder
This is a builder for FireworkEffects. |
static class |
FireworkEffect.Type
The type or shape of the effect. |
| Method Summary | |
|---|---|
static FireworkEffect.Builder |
builder()
Construct a firework effect. |
static ConfigurationSerializable |
deserialize(Map<String,Object> map)
|
boolean |
equals(Object obj)
|
List<Color> |
getColors()
Get the primary colors of the firework effect. |
List<Color> |
getFadeColors()
Get the fade colors of the firework effect. |
FireworkEffect.Type |
getType()
Get the type of the firework effect. |
boolean |
hasFlicker()
Get whether the firework effect flickers. |
int |
hashCode()
|
boolean |
hasTrail()
Get whether the firework effect has a trail. |
Map<String,Object> |
serialize()
Creates a Map representation of this class. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static FireworkEffect.Builder builder()
public boolean hasFlicker()
public boolean hasTrail()
public List<Color> getColors()
public List<Color> getFadeColors()
public FireworkEffect.Type getType()
public static ConfigurationSerializable deserialize(Map<String,Object> map)
ConfigurationSerializablepublic Map<String,Object> serialize()
ConfigurationSerializable
This class must provide a method to restore this class, as defined in the
ConfigurationSerializable interface javadocs.
serialize in interface ConfigurationSerializablepublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||