/** * Create an ItemStackList from the given elements. */ public static ItemStackList of(ItemStack... element) { ItemStackList itemStackList = create(); itemStackList.addAll(Arrays.asList(element)); return itemStackList; }
/** * Create an ItemStackList from the given elements. */ public static ItemStackList of(Collection<ItemStack> boringList) { ItemStackList itemStackList = create(); itemStackList.addAll(boringList); return itemStackList; }