/*
* This file is part of SpoutcraftPlugin.
*
* Copyright (c) 2011 SpoutcraftDev <http://spoutcraft.org//>
* SpoutcraftPlugin is licensed under the GNU Lesser General Public License.
*
* SpoutcraftPlugin 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.
*
* SpoutcraftPlugin 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.spoutapi.gui;
/**
* The GenericItemWidget class allows you to display a block or item as it
* would be in the player's inventory.
* <p/>
* Don't forget that most items are in fact 3d, so also need a depth to draw
* properly.
*/
public interface ItemWidget extends Widget {
/**
* Sets the type id of this item widget
* @param id
* @return ItemWidget
*/
public ItemWidget setTypeId(int id);
/**
* Gets the type id of this item widget
* @return type id
*/
public int getTypeId();
/**
* Sets the data of this item widget
* @param data to set
* @return ItemWidget
*/
public ItemWidget setData(short data);
/**
* Gets the data of this item widget, is zero by default
* @return data
*/
public short getData();
/**
* Sets the z render depth for this 3-d item widget
* @param depth to render at
* @return ItemWidget
*/
public ItemWidget setDepth(int depth);
/**
* Gets the z render depth for this 3-d item widget
* @return depth
*/
public int getDepth();
@Override
public ItemWidget setWidth(int width);
@Override
public ItemWidget setHeight(int height);
}