ConfigurationSerializable
public class Pattern extends Object implements ConfigurationSerializable
Constructor | Description |
---|---|
Pattern(@NotNull Map<String,Object> map) |
Constructor for deserialization.
|
Pattern(@NotNull DyeColor color,
@NotNull PatternType pattern) |
Creates a new pattern from the specified color and
pattern type
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
|
@NotNull DyeColor |
getColor() |
Returns the color of the pattern
|
@NotNull PatternType |
getPattern() |
Returns the type of pattern
|
int |
hashCode() |
|
@NotNull Map<String,Object> |
serialize() |
Creates a Map representation of this class.
|
public Pattern(@NotNull @NotNull DyeColor color, @NotNull @NotNull PatternType pattern)
color
- the pattern colorpattern
- the pattern type@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
@NotNull public @NotNull DyeColor getColor()
@NotNull public @NotNull PatternType getPattern()
Copyright © 2020. All rights reserved.