Package org.bukkit.block.banner
Class Pattern
java.lang.Object
org.bukkit.block.banner.Pattern
- All Implemented Interfaces:
ConfigurationSerializable
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Pattern
Creates a new pattern from the specified color and pattern type- Parameters:
color
- the pattern colorpattern
- the pattern type
-
Pattern
Constructor for deserialization.- Parameters:
map
- the map to deserialize from
-
-
Method Details
-
serialize
Description copied from interface:ConfigurationSerializable
Creates a Map representation of this class.This class must provide a method to restore this class, as defined in the
ConfigurationSerializable
interface javadocs.- Specified by:
serialize
in interfaceConfigurationSerializable
- Returns:
- Map containing the current state of this class
-
getColor
Returns the color of the pattern- Returns:
- the color of the pattern
-
getPattern
Returns the type of pattern- Returns:
- the pattern type
-
hashCode
public int hashCode() -
equals
-