ConfigurationSerializablepublic final class FireworkEffect extends java.lang.Object implements ConfigurationSerializable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
FireworkEffect.Builder |
This is a builder for FireworkEffects.
|
static class |
FireworkEffect.Type |
The type or shape of the effect.
|
| Modifier and Type | Method | Description |
|---|---|---|
static FireworkEffect.Builder |
builder() |
Construct a firework effect.
|
static ConfigurationSerializable |
deserialize(java.util.Map<java.lang.String,java.lang.Object> map) |
|
boolean |
equals(java.lang.Object obj) |
|
java.util.List<Color> |
getColors() |
Get the primary colors of the firework effect.
|
java.util.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.
|
java.util.Map<java.lang.String,java.lang.Object> |
serialize() |
Creates a Map representation of this class.
|
java.lang.String |
toString() |
public static FireworkEffect.Builder builder()
public boolean hasFlicker()
public boolean hasTrail()
public java.util.List<Color> getColors()
public java.util.List<Color> getFadeColors()
public FireworkEffect.Type getType()
public static ConfigurationSerializable deserialize(java.util.Map<java.lang.String,java.lang.Object> map)
map - the map to deserializeConfigurationSerializablepublic java.util.Map<java.lang.String,java.lang.Object> serialize()
ConfigurationSerializable
This class must provide a method to restore this class, as defined in
the ConfigurationSerializable interface javadocs.
serialize in interface ConfigurationSerializablepublic java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018. All rights reserved.