public class Pattern extends java.lang.Object implements ConfigurationSerializable
构造器和说明 |
---|
Pattern(DyeColor color,
PatternType pattern)
从指定的颜色和图案类型创建一个新的图案.
|
Pattern(java.util.Map<java.lang.String,java.lang.Object> map)
反序列化构造函数.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object obj) |
DyeColor |
getColor()
返回图案的颜色.
|
PatternType |
getPattern()
返回图案的类型.
|
int |
hashCode() |
java.util.Map<java.lang.String,java.lang.Object> |
serialize()
Creates a Map representation of this class.
|
public Pattern(DyeColor color, PatternType pattern)
原文: Creates a new pattern from the specified color and pattern type
color
- 图案的颜色pattern
- 图案的类型public Pattern(java.util.Map<java.lang.String,java.lang.Object> map)
原文: Constructor for deserialization.
map
- 从地图反序列化public java.util.Map<java.lang.String,java.lang.Object> serialize()
ConfigurationSerializable
This class must provide a method to restore this class, as defined in
the ConfigurationSerializable
interface javadocs.
serialize
在接口中 ConfigurationSerializable
public DyeColor getColor()
原文: Returns the color of the pattern
public PatternType getPattern()
原文: Returns the type of pattern
public int hashCode()
hashCode
在类中 java.lang.Object
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object