Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 12:30:06 +01:00
Fixed CIP
Dieser Commit ist enthalten in:
Ursprung
750cc107ae
Commit
0a15f98a2e
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren