/* * This file is part of Spoutcraft (http://wiki.getspout.org/). * * Spoutcraft is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Spoutcraft is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ package org.getspout.spout.inventory; public interface ItemManager { /** * Gets notchian item name for the item, or the custom name if one overrides it * @param item to get the name of * @return name */ public String getItemName(int item); /** * Gets the custom name of the item, or null if none exists * @param item to get the name of * @return name */ public String getCustomItemName(int item); /** * Gets notchian item name for the item, or the custom name if one overrides it * @param item to get the name of * @param data for the item * @return name */ public String getItemName(int item, short data); /** * Gets the custom name of the item, or null if none exists * @param item to get the name of * @param data for the item * @return name */ public String getCustomItemName(int item, short data); /** * Sets the name of the item * @param item to name * @param name to set */ public void setItemName(int item, String name); /** * Sets the name of the item * @param item to name * @param data of the item * @param name to set */ public void setItemName(int item, short data, String name); /** * Resets the name of the item back to the notchian default * @param item to reset */ public void resetName(int item); /** * Resets the name of the item back to the notchian default * @param item to reset * @param data of the item */ public void resetName(int item, short data); /** * Resets the names of all items to the notchian defaults. Use with care. */ public void reset(); }