mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fixed CIP
By: Taylor Kelly <tkelly910@gmail.com>
This commit is contained in:
parent
3b1844601a
commit
8ae8293fa8
1 changed files with 10 additions and 11 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue