mirror of
https://github.com/Ellpeck/PrettyPipes.git
synced 2024-12-22 23:39:22 +01:00
didn't end up using this
This commit is contained in:
parent
0af5ccde77
commit
def337be85
1 changed files with 0 additions and 12 deletions
|
@ -114,18 +114,6 @@ public final class Utility {
|
|||
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 {
|
||||
boolean mergeItemStack(ItemStack stack, int startIndex, int endIndex, boolean reverseDirection);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue