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.
|
public Pattern(DyeColor color, PatternType pattern)
color
- the pattern colorpattern
- the pattern typepublic 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
public DyeColor getColor()
public PatternType getPattern()
Copyright © 2016. All rights reserved.