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