mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 02:19:41 -05:00
Fixed getArmorContents() return value
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
1 parent
83dea7c90f
commit
c97111ca58
2 files changed
+6
-3
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user