Hey.
I've been trying to figure out how to do this for a few hours now. I have this sort of code:
new InventoryBuilder().add("Item").empty(8).add("Item");
Now, if I would want, say 8 times item:
new InventoryBuilder().add("Item", 8).empty(8).add("Item", 8);
The issue with this is that I end up with a crap ton of methods, considering it might have up to 3 arguments. I figured I could do something like this:
new InventoryBuilder().repeat(8, new Repeater() { add("Item") }).empty(8);
But I have no idea how would I implement this