Package org.bukkit.block.banner
Class Pattern
- java.lang.Object
-
- org.bukkit.block.banner.Pattern
-
- All Implemented Interfaces:
ConfigurationSerializable
public class Pattern extends Object implements ConfigurationSerializable
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DyeColorgetColor()Returns the color of the patternPatternTypegetPattern()Returns the type of patterninthashCode()Map<String,Object>serialize()Creates a Map representation of this class.
-
-
-
Constructor Detail
-
Pattern
public Pattern(@NotNull DyeColor color, @NotNull PatternType pattern)Creates a new pattern from the specified color and pattern type- Parameters:
color- the pattern colorpattern- the pattern type
-
-
Method Detail
-
serialize
@NotNull public Map<String,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
@NotNull public DyeColor getColor()
Returns the color of the pattern- Returns:
- the color of the pattern
-
getPattern
@NotNull public PatternType getPattern()
Returns the type of pattern- Returns:
- the pattern type
-
-