From def337be8575dd3f19a75b7ce2f343594914f6a9 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Sat, 9 May 2020 20:13:16 +0200 Subject: [PATCH] didn't end up using this --- src/main/java/de/ellpeck/prettypipes/Utility.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/main/java/de/ellpeck/prettypipes/Utility.java b/src/main/java/de/ellpeck/prettypipes/Utility.java index bc2a204..c1ca0da 100644 --- a/src/main/java/de/ellpeck/prettypipes/Utility.java +++ b/src/main/java/de/ellpeck/prettypipes/Utility.java @@ -114,18 +114,6 @@ public final class Utility { return items; } - public static List splitStackToFitMax(ItemStack stack) { - List 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 { boolean mergeItemStack(ItemStack stack, int startIndex, int endIndex, boolean reverseDirection); }