Fixed CIP

By: Taylor Kelly <tkelly910@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-01-10 11:03:53 +08:00
parent 3b1844601a
commit 8ae8293fa8

View file

@ -15,17 +15,6 @@ public class CraftInventoryPlayer extends CraftInventory implements PlayerInvent
return (InventoryPlayer) inventory; return (InventoryPlayer) inventory;
} }
public ArrayList<ItemStack> getArmorContents() {
net.minecraft.server.ItemStack[] mcItems = getInventory().getArmorContents();
ArrayList<ItemStack> ret = new ArrayList<ItemStack>();
for (int i = 0; i < mcItems.length; i++ ) {
ret.add(new CraftItemStack(mcItems[i]));
}
return ret;
}
public int getSize() { public int getSize() {
return super.getSize() - 4; return super.getSize() - 4;
} }
@ -65,4 +54,14 @@ public class CraftInventoryPlayer extends CraftInventory implements PlayerInvent
public void setBoots(ItemStack boots) { public void setBoots(ItemStack boots) {
setItem( getSize() + 3, boots ); setItem( getSize() + 3, boots );
} }
public ItemStack[] getArmorContents() {
net.minecraft.server.ItemStack[] mcItems = getInventory().getArmorContents();
ItemStack[] ret = new ItemStack[mcItems.length];
for (int i = 0; i < mcItems.length; i++ ) {
ret[i] = new CraftItemStack(mcItems[i]);
}
return ret;
}
} }