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