/*
 * Trident - A Multithreaded Server Alternative
 * Copyright 2014 The TridentSDK Team
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package net.tridentsdk.meta.item;

import net.tridentsdk.meta.nbt.NBTSerializable;

import java.util.Arrays;
import java.util.List;

/**
 * Represents the display properties of an Item
 */
public interface ItemDisplayProperties extends NBTSerializable {
    /**
     * Returns display name of the item, {@code null} if non-existent
     * @return display name of the item
     */
    String displayName();

    /**
     * Sets the display name
     * @param displayName Display name you wish to set the item to
     */
    void setDisplayName(String displayName);

    /**
     * Returns lore of the item, {@code null} if non-existent
     * @return lore of the item
     */
    List<String> lore();

    /**
     * Sets the lore of the item
     * @param lore Lore you wish to set the item to
     */
    void setLore(List<String> lore);

    /**
     * Set the lore of the item
     * @param lore Lore you wish to set it to
     */
    default void setLore(String... lore) {
        setLore(Arrays.asList(lore));
    }
}

@@ -689,96 +689,137 @@
 ort 
-net.tridentsdk.meta.nbt.NBTSerializable;%0A%0Aimport java.util.Array
+java.util.Arrays;%0Aimport java.util.List;%0A%0Aimport com.google.common.collect.List
 s;%0A
+%0A
 import 
-java.util.List
+net.tridentsdk.meta.nbt.NBTSerializable
 ;%0A%0A/
@@ -938,16 +938,17 @@
 zable %7B%0A
+%0A
     /**%0A
@@ -1706,10 +1706,863 @@
 ;%0A    %7D%0A
+%0A    /**%0A     * Adds lore to the item starting from a specific index.    %0A     * %0A     * @param index Index to begin insertion at. If equal to number of lore, it appends.%0A     * @param lore Lore to be added.%0A     * %0A     * @see #addLore(String...)%0A     */%0A    default void addLore(int index, String... lore) %7B%0A        List%3CString%3E curr = lore();%0A        if (curr == null)%0A            curr = Lists.newArrayList();%0A        if (curr.isEmpty() %7C%7C index == curr.size()) %7B%0A            curr.addAll(Arrays.asList(lore));%0A        %7D else %7B%0A            curr.addAll(index, Arrays.asList(lore));%0A        %7D%0A        setLore(curr);%0A    %7D%0A%0A    /**%0A     * Appends lore to the item.%0A     * %0A     * @param lore Lore to be appended.%0A     * %0A     * @see #addLore(int, String...)%0A     */%0A    default void addLore(String... lore) %7B%0A        addLore(lore().size(), lore);%0A    %7D%0A%0A
 %7D%0A

Add ItemDisplayProperties#addLore(int, String...) and #addLore(String...)