Package org.bukkit.block.banner
Class Pattern
java.lang.Object
org.bukkit.block.banner.Pattern
- All Implemented Interfaces:
ConfigurationSerializable
public class Pattern extends java.lang.Object implements ConfigurationSerializable
-
Constructor Summary
Constructors 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 -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
DyeColor
getColor()
Returns the color of the patternPatternType
getPattern()
Returns the type of patternint
hashCode()
java.util.Map<java.lang.String,java.lang.Object>
serialize()
Creates a Map representation of this class.
-
Constructor Details
-
Method Details
-
serialize
public java.util.Map<java.lang.String,java.lang.Object> 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()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-