public final class FireworkEffect extends Object implements ConfigurationSerializable
Modifier and Type | Class and 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 and Description |
---|---|
static @NotNull FireworkEffect.Builder |
builder()
Construct a firework effect.
|
static @NotNull ConfigurationSerializable |
deserialize(@NotNull Map<String,Object> map) |
boolean |
equals(Object obj) |
@NotNull List<Color> |
getColors()
Get the primary colors of the firework effect.
|
@NotNull List<Color> |
getFadeColors()
Get the fade colors of the firework effect.
|
@NotNull 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.
|
@NotNull Map<String,Object> |
serialize()
Creates a Map representation of this class.
|
String |
toString() |
@NotNull public static @NotNull FireworkEffect.Builder builder()
public boolean hasFlicker()
public boolean hasTrail()
@NotNull public @NotNull List<Color> getColors()
@NotNull public @NotNull List<Color> getFadeColors()
@NotNull public @NotNull FireworkEffect.Type getType()
@NotNull public static @NotNull ConfigurationSerializable deserialize(@NotNull @NotNull Map<String,Object> map)
map
- the map to deserializeConfigurationSerializable
@NotNull public @NotNull 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 ConfigurationSerializable
Copyright © 2021. All rights reserved.