2011-01-29 22:50:29 +01:00
|
|
|
package net.minecraft.server;
|
|
|
|
|
2012-07-22 08:18:00 +02:00
|
|
|
import org.bukkit.craftbukkit.entity.CraftHumanEntity; // CraftBukkit
|
2012-02-29 19:56:35 +01:00
|
|
|
|
2011-01-29 22:50:29 +01:00
|
|
|
public interface IInventory {
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
int getSize();
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
ItemStack getItem(int i);
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2011-06-27 00:25:01 +02:00
|
|
|
ItemStack splitStack(int i, int j);
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2012-03-01 11:49:23 +01:00
|
|
|
ItemStack splitWithoutUpdate(int i);
|
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
void setItem(int i, ItemStack itemstack);
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
String getInventoryName();
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
boolean k_();
|
2013-03-13 23:33:27 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
int getMaxStackSize();
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2011-04-20 19:05:14 +02:00
|
|
|
void update();
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2013-03-13 23:33:27 +01:00
|
|
|
boolean a(EntityHuman entityhuman);
|
2011-09-15 02:23:52 +02:00
|
|
|
|
2012-07-29 09:33:13 +02:00
|
|
|
void startOpen();
|
2011-09-15 02:23:52 +02:00
|
|
|
|
2013-11-04 14:07:38 +01:00
|
|
|
void l_();
|
2013-03-13 23:33:27 +01:00
|
|
|
|
|
|
|
boolean b(int i, ItemStack itemstack);
|
2011-01-29 22:50:29 +01:00
|
|
|
|
2012-02-29 19:56:35 +01:00
|
|
|
// CraftBukkit start
|
|
|
|
ItemStack[] getContents();
|
2012-03-14 15:00:54 +01:00
|
|
|
|
2012-02-29 19:56:35 +01:00
|
|
|
void onOpen(CraftHumanEntity who);
|
2012-03-14 15:00:54 +01:00
|
|
|
|
2012-02-29 19:56:35 +01:00
|
|
|
void onClose(CraftHumanEntity who);
|
2012-03-14 15:00:54 +01:00
|
|
|
|
2012-07-22 08:18:00 +02:00
|
|
|
java.util.List<org.bukkit.entity.HumanEntity> getViewers();
|
2012-03-14 15:00:54 +01:00
|
|
|
|
2012-07-22 08:18:00 +02:00
|
|
|
org.bukkit.inventory.InventoryHolder getOwner();
|
2012-03-14 15:00:54 +01:00
|
|
|
|
|
|
|
void setMaxStackSize(int size);
|
|
|
|
|
|
|
|
int MAX_STACK = 64;
|
2012-07-22 08:18:00 +02:00
|
|
|
// CraftBukkit end
|
2011-01-29 22:50:29 +01:00
|
|
|
}
|