2014-05-03 18:59:52 +02:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
|
|
|
|
* http://www.mod-buildcraft.com
|
|
|
|
*
|
2014-12-09 21:09:14 +01:00
|
|
|
* The BuildCraft API is distributed under the terms of the MIT License.
|
|
|
|
* Please check the contents of the license, which should be located
|
|
|
|
* as "LICENSE.API" in the BuildCraft source code distribution.
|
2014-05-03 18:59:52 +02:00
|
|
|
*/
|
2014-04-30 14:46:04 +02:00
|
|
|
package buildcraft.api.core;
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public interface IInvSlot {
|
|
|
|
/**
|
|
|
|
* Returns the slot number of the underlying Inventory.
|
|
|
|
*
|
|
|
|
* @return the slot number
|
|
|
|
*/
|
|
|
|
int getIndex();
|
|
|
|
|
|
|
|
boolean canPutStackInSlot(ItemStack stack);
|
|
|
|
|
|
|
|
boolean canTakeStackFromSlot(ItemStack stack);
|
|
|
|
|
2014-06-28 17:15:34 +02:00
|
|
|
ItemStack decreaseStackInSlot(int amount);
|
2014-04-30 14:46:04 +02:00
|
|
|
|
|
|
|
ItemStack getStackInSlot();
|
|
|
|
|
|
|
|
void setStackInSlot(ItemStack stack);
|
|
|
|
}
|