Class Pattern

    • 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 color
        pattern - the pattern type
      • Pattern

        public Pattern​(@NotNull
                       Map<String,​Object> map)
        Constructor for deserialization.
        Parameters:
        map - the map to deserialize from
    • Method Detail

      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object