类 Pattern

java.lang.Object
org.bukkit.block.banner.Pattern
所有已实现的接口:
ConfigurationSerializable

public class Pattern extends Object implements ConfigurationSerializable
  • 构造器详细资料

    • Pattern

      public Pattern(DyeColor color, PatternType pattern)
      从指定的颜色和图案类型创建一个新的图案.

      原文: Creates a new pattern from the specified color and pattern type

      参数:
      color - 图案的颜色
      pattern - 图案的类型
    • Pattern

      public Pattern(Map<String,Object> map)
      反序列化构造函数.

      原文: Constructor for deserialization.

      参数:
      map - 从地图反序列化
  • 方法详细资料

    • serialize

      public Map<String,Object> serialize()
      从接口复制的说明: 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.

      指定者:
      serialize 在接口中 ConfigurationSerializable
      返回:
      Map containing the current state of this class
    • getColor

      public DyeColor getColor()
      返回图案的颜色.

      原文: Returns the color of the pattern

      返回:
      图案的颜色.
    • getPattern

      public PatternType getPattern()
      返回图案的类型.

      原文: Returns the type of pattern

      返回:
      图案的类型
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object