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 booleanequals(java.lang.Object obj)DyeColorgetColor()Returns the color of the patternPatternTypegetPattern()Returns the type of patterninthashCode()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:ConfigurationSerializableCreates a Map representation of this class.This class must provide a method to restore this class, as defined in the
ConfigurationSerializableinterface javadocs.- Specified by:
serializein 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:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-