AntiCheatBase/src/main/java/utils/ItemBuilder.java
/**
     * Sets the {@link Color} of a part of leather armor
     *
     * @param color the {@link Color} to use
     * @return this builder for chaining
     * @since 1.1
     */
Sets the  Color of a part of leather armor
@param color the  Color to use
@return this builder for chaining
@since 1.1
Sets the Color of a part of leather armor @param color the Color to use @return this builder for chaining @since 1 . 1
public ItemBuilder color(Color color) {
        if (is.getType() == XMaterial.LEATHER_BOOTS.parseMaterial()
                || is.getType() == XMaterial.LEATHER_CHESTPLATE .parseMaterial()
                || is.getType() == XMaterial.LEATHER_HELMET.parseMaterial()
                || is.getType() == XMaterial.LEATHER_LEGGINGS.parseMaterial()) {
            LeatherArmorMeta meta = (LeatherArmorMeta) is.getItemMeta();
            meta.setColor(color);
            is.setItemMeta(meta);
            return this;
        } else {
            throw new IllegalArgumentException("color() only applicable for leather armor!");
        }
    }
public ItemBuilder color ( Color color ) { if ( is . getType ( ) == XMaterial . LEATHER_BOOTS . parseMaterial ( ) || is . getType ( ) == XMaterial . LEATHER_CHESTPLATE . parseMaterial ( ) || is . getType ( ) == XMaterial . LEATHER_HELMET . parseMaterial ( ) || is . getType ( ) == XMaterial . LEATHER_LEGGINGS . parseMaterial ( ) ) { LeatherArmorMeta meta = ( LeatherArmorMeta ) is . getItemMeta ( ) ; meta . setColor ( color ) ; is . setItemMeta ( meta ) ; return this ; } else { throw new IllegalArgumentException ( "color() only applicable for leather armor!" ) ; } }
Sets the {@link Color} of a part of leather armor
 @param color the {@link Color} to use
 @return this builder for chaining
 @since 1.1
Sets the { @link Color } of a part of leather armor @param color the { @link Color } to use @return this builder for chaining @since 1 . 1