mirror of
https://github.com/GTNewHorizons/Mantle.git
synced 2026-11-18 11:19:20 +00:00
More itemstacklist utility
This commit is contained in:
1 parent
30c49e9f7b
commit
ffc8db9286
1 file changed
+2
-1
@@ -5,6 +5,7 @@ import net.minecraft.util.NonNullList;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
|
||||
public class ItemStackList extends NonNullList<ItemStack> {
|
||||
@@ -42,7 +43,7 @@ public class ItemStackList extends NonNullList<ItemStack> {
|
||||
/**
|
||||
* Create an ItemStackList from the given elements.
|
||||
*/
|
||||
public static ItemStackList of(NonNullList<ItemStack> boringList) {
|
||||
public static ItemStackList of(Collection<ItemStack> boringList) {
|
||||
ItemStackList itemStackList = create();
|
||||
itemStackList.addAll(boringList);
|
||||
return itemStackList;
|
||||
|
||||
Reference in new issue
Block a user