mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
Fixed getArmorContents() return value
This commit is contained in:
parent
a83e58e462
commit
68f23c547c
2 changed files with 6 additions and 3 deletions
|
@ -126,6 +126,11 @@ public class ItemStack {
|
|||
return -1;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "ItemStack{"+getType().name()+" x "+getAmount()+"}";
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object object) {
|
||||
return false;
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
package org.bukkit;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
/**
|
||||
* Includes interface to the 4 armor slots
|
||||
*/
|
||||
|
@ -11,7 +9,7 @@ public interface PlayerInventory extends Inventory {
|
|||
*
|
||||
* @return All the ItemStacks from the armor slots
|
||||
*/
|
||||
public ArrayList<ItemStack> getArmorContents();
|
||||
public ItemStack[] getArmorContents();
|
||||
|
||||
/**
|
||||
* Return the ItemStack from the helmet slot
|
||||
|
|
Loading…
Add table
Reference in a new issue