/*
 * This file is part of SpongeAPI, licensed under the MIT License (MIT).
 *
 * Copyright (c) SpongePowered <https://www.spongepowered.org>
 * Copyright (c) contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */
package org.spongepowered.api.data.meta;

import org.spongepowered.api.data.DataSerializable;
import org.spongepowered.api.data.manipulator.mutable.tileentity.BannerData;
import org.spongepowered.api.data.type.BannerPatternShape;
import org.spongepowered.api.data.type.DyeColor;

/**
 * A representation on a single layer of a {@link BannerData}'s pattern.
 */
public interface PatternLayer extends DataSerializable {

    /**
     * Gets the pattern shape for this layer.
     *
     * @return The shape
     */
    BannerPatternShape getShape();

    /**
     * Gets the color for this layer.
     *
     * @return The color
     */
    DyeColor getColor();

}

@@ -1286,16 +1286,53 @@
 .meta;%0A%0A
+import org.spongepowered.api.Sponge;%0A
 import o
@@ -1559,16 +1559,131 @@
 yeColor;
+%0Aimport org.spongepowered.api.service.persistence.DataBuilder;%0Aimport org.spongepowered.api.util.ResettableBuilder;
 %0A%0A/**%0A *
@@ -1834,233 +1834,1439 @@
   * 
-Gets the pattern shape for this layer.%0A     *%0A     * @return The shape%0A     */%0A    BannerPatternShape getShape();%0A%0A    /**%0A     * Gets the color for this layer.%0A     *%0A     * @return The color%0A     */%0A    DyeColor getColor();
+Creates a %7B@link PatternLayer%7D with the desired%0A     * %7B@link BannerPatternShape%7D and %7B@link DyeColor%7D.%0A     *%0A     * @param shape The shape%0A     * @param color The color%0A     * @return The new pattern layer%0A     */%0A    static PatternLayer of(BannerPatternShape shape, DyeColor color) %7B%0A        return Sponge.getRegistry()%0A            .createBuilder(Builder.class)%0A            .pattern(shape)%0A            .color(color)%0A            .build();%0A    %7D%0A%0A    /**%0A     * Gets the pattern shape for this layer.%0A     *%0A     * @return The shape%0A     */%0A    BannerPatternShape getShape();%0A%0A    /**%0A     * Gets the color for this layer.%0A     *%0A     * @return The color%0A     */%0A    DyeColor getColor();%0A%0A    interface Builder extends DataBuilder%3CPatternLayer%3E %7B%0A%0A        /**%0A         * Sets the %7B@link BannerPatternShape%7D to be used.%0A         *%0A         * @param shape The shape%0A         * @return This builder, for chaining%0A         */%0A        Builder pattern(BannerPatternShape shape);%0A%0A        /**%0A         * Sets the %7B@link DyeColor%7D to be used.%0A         *%0A         * @param color The color%0A         * @return This builder, for chaining%0A         */%0A        Builder color(DyeColor color);%0A%0A        /**%0A         * Builds a %7B@link PatternLayer%7D provided that the%0A         * color and pattern are set.%0A         *%0A         * @return The new pattern layer%0A         */%0A        PatternLayer build();%0A%0A        @Override%0A        Builder reset();%0A    %7D
 %0A%0A%7D%0A

Improve the usage of PatternLayer.