public final class FireworkEffect extends java.lang.Object implements ConfigurationSerializable
限定符和类型 | 类和说明 |
---|---|
static class |
FireworkEffect.Builder
这是一个烟花效果的生成器。
|
static class |
FireworkEffect.Type
效果的类型或形状。
|
限定符和类型 | 方法和说明 |
---|---|
static FireworkEffect.Builder |
builder()
构建一个烟花效果。
|
static ConfigurationSerializable |
deserialize(java.util.Map<java.lang.String,java.lang.Object> map) |
boolean |
equals(java.lang.Object obj) |
java.util.List<Color> |
getColors()
获取烟花效果的主颜色。
|
java.util.List<Color> |
getFadeColors()
获取烟花效果的淡出颜色。
|
FireworkEffect.Type |
getType()
获取烟花效果的类型。
|
boolean |
hasFlicker()
获取烟花是否具有闪烁效果。
|
int |
hashCode() |
boolean |
hasTrail()
获取烟花是否具有尾迹效果。
|
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()
原文: Construct a firework effect.
public boolean hasFlicker()
原文: Get whether the firework effect flickers.
public boolean hasTrail()
原文: Get whether the firework effect has a trail.
public java.util.List<Color> getColors()
原文: Get the primary colors of the firework effect.
public java.util.List<Color> getFadeColors()
原文: Get the fade colors of the firework effect.
public FireworkEffect.Type getType()
原文: Get the type of the firework effect.
public static ConfigurationSerializable deserialize(java.util.Map<java.lang.String,java.lang.Object> map)
map
- 用于反序列化的MapConfigurationSerializable
public 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
在接口中 ConfigurationSerializable
public java.lang.String toString()
toString
在类中 java.lang.Object
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object