Workaround methods are static

This commit is contained in:
snowleo 2011-06-12 22:57:43 +02:00
parent 46cba7a9a7
commit 631c7f30b6

View File

@ -43,7 +43,7 @@ public final class InventoryWorkaround
return -1; return -1;
} }
public int firstPartial(final Inventory cinventory, final ItemStack item, final boolean forceDurability) public static int firstPartial(final Inventory cinventory, final ItemStack item, final boolean forceDurability)
{ {
if (item == null) if (item == null)
{ {
@ -65,7 +65,7 @@ public final class InventoryWorkaround
return -1; return -1;
} }
public Map<Integer, ItemStack> addItem(final Inventory cinventory, final boolean forceDurability, final ItemStack... items) public static Map<Integer, ItemStack> addItem(final Inventory cinventory, final boolean forceDurability, final ItemStack... items)
{ {
final Map<Integer, ItemStack> leftover = new HashMap<Integer, ItemStack>(); final Map<Integer, ItemStack> leftover = new HashMap<Integer, ItemStack>();