didn't end up using this

This commit is contained in:
Ellpeck 2020-05-09 20:13:16 +02:00
parent 0af5ccde77
commit def337be85

View file

@ -114,18 +114,6 @@ public final class Utility {
return items; return items;
} }
public static List<ItemStack> splitStackToFitMax(ItemStack stack) {
List<ItemStack> ret = new ArrayList<>();
int amount = stack.getCount();
while (amount > 0) {
ItemStack copy = stack.copy();
copy.setCount(Math.min(amount, stack.getMaxStackSize()));
ret.add(copy);
amount -= copy.getCount();
}
return ret;
}
public interface IMergeItemStack { public interface IMergeItemStack {
boolean mergeItemStack(ItemStack stack, int startIndex, int endIndex, boolean reverseDirection); boolean mergeItemStack(ItemStack stack, int startIndex, int endIndex, boolean reverseDirection);
} }