/*
 * Copyright (c) 2013 Andrew Crocker
 *
 * 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 invtweaks.api;

import net.minecraft.item.ItemStack;

public interface InvTweaksAPI {
    void addOnLoadListener(IItemTreeListener listener);

    boolean removeOnLoadListener(IItemTreeListener listener);

    void setSortKeyEnabled(boolean enabled);

    void setTextboxMode(boolean enabled);

    int compareItems(ItemStack i, ItemStack j);
}

@@ -1179,248 +1179,1372 @@
 k;%0A%0A
-public interface InvTweaksAPI %7B%0A    void addOnLoadListener(IItemTreeListener listener);%0A%0A    boolean removeOnLoadListener(IItemTreeListener listener);%0A%0A    void setSortKeyEnabled(boolean enabled);%0A%0A    void setTextboxMode(boolean enabled);%0A
+/**%0A * Interface to access functions exposed by Inventory Tweaks%0A *%0A * The main @Mod instance of the mod implements this interface, so a refernce to it can%0A * be obtained via @Instance(%22inventorytweaks%22) or methods in cpw.mods.fml.common.Loader%0A *%0A * All of these functions currently have no effect if called on a dedicated server.%0A */%0Apublic interface InvTweaksAPI %7B%0A    /**%0A     * Add a listener for ItemTree load events%0A     *%0A     * @param listener%0A     */%0A    void addOnLoadListener(IItemTreeListener listener);%0A%0A    /**%0A     * Remove a listener for ItemTree load events%0A     *%0A     * @param listener%0A     * @return true if the listener was previously added%0A     */%0A    boolean removeOnLoadListener(IItemTreeListener listener);%0A%0A    /**%0A     * Toggle sorting shortcut state.%0A     *%0A     * @param enabled%0A     */%0A    void setSortKeyEnabled(boolean enabled);%0A%0A    /**%0A     * Toggle sorting shortcut supression.%0A     * Unlike setSortKeyEnabled, this flag is automatically cleared when GUIs are closed.%0A     *%0A     * @param enabled%0A     */%0A    void setTextboxMode(boolean enabled);%0A%0A    /**%0A     * Compare two items using the default (non-rule based) algorithm,%0A     * sutable for an implementation of Comparator&lt;ItemStack&gt;.%0A     *%0A     * @param i%0A     * @param j%0A     * @return A value with a sign representing the relative order of the item stacks%0A     */
 %0A   

Add some comments to the main API file.