mirror of
https://github.com/GTNewHorizons/ModTweaker.git
synced 2026-11-12 16:27:27 +00:00
17 lines
330 B
Java
17 lines
330 B
Java
package modtweaker.util;
|
|||
|
|
|
||
|
|
import java.util.ArrayList;
|
||
|
|
|
||
|
|
import net.minecraft.item.ItemStack;
|
||
|
|
|
||
|
|
public class ArrayUtils {
|
||
|
|
|
||
|
|
|
||
|
|
public static ArrayList<ItemStack> toArrayList(ItemStack[] array){
|
||
|
|
ArrayList<ItemStack> stacks = new ArrayList<ItemStack>();
|
||
|
|
for(ItemStack stack : array){
|
||
|
|
stacks.add(stack);
|
||
|
|
}
|
||
|
|
return stacks;
|
||
|
|
}
|
||
|
|
}
|