mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 19:52:55 +01:00
Fixed CIP
This commit is contained in:
parent
750cc107ae
commit
0a15f98a2e
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