Update CraftBukkit to 1.6.1

This commit is contained in:
Nate Mortensen
2013-07-01 06:03:00 -05:00
committed by Wesley Wolfe
parent f887b76a25
commit 6c09066e22
228 changed files with 6426 additions and 5442 deletions

View File

@@ -1,5 +1,6 @@
package net.minecraft.server;
import java.util.ArrayList;
import java.util.List;
public abstract class InventorySubcontainer implements IInventory { // CraftBukkit - abstract
@@ -17,6 +18,18 @@ public abstract class InventorySubcontainer implements IInventory { // CraftBukk
this.items = new ItemStack[i];
}
public void a(IInventoryListener iinventorylistener) {
if (this.d == null) {
this.d = new ArrayList();
}
this.d.add(iinventorylistener);
}
public void b(IInventoryListener iinventorylistener) {
this.d.remove(iinventorylistener);
}
public ItemStack getItem(int i) {
return this.items[i];
}
@@ -76,6 +89,11 @@ public abstract class InventorySubcontainer implements IInventory { // CraftBukk
return this.e;
}
public void a(String s) {
this.e = true;
this.a = s;
}
public int getMaxStackSize() {
return 64;
}