Added getContents() to IInventory and implemented it.

Implemented Inventory and PlayerInventory and updated StorageMinecart and Slot.
Added getMaxStackSize to CraftItemStack.
This commit is contained in:
Erik Broes
2011-01-09 18:27:46 +01:00
parent b72dad0a61
commit e8a565e6cf
15 changed files with 1557 additions and 35 deletions

View File

@@ -0,0 +1,24 @@
package net.minecraft.server;
public interface IInventory {
public abstract int a();
public abstract ItemStack a(int i);
public abstract ItemStack a(int i, int j);
public abstract void a(int i, ItemStack itemstack);
public abstract String b();
public abstract int c();
public abstract void d();
public abstract boolean a_(EntityPlayer entityplayer);
public abstract ItemStack[] getContents(); // CraftBukkit
}