public class ItemStackHelper
extends java.lang.Object
Constructor and Description |
---|
ItemStackHelper() |
Modifier and Type | Method and Description |
---|---|
static ItemStack |
getAndRemove(java.util.List<ItemStack> stacks,
int index) |
static ItemStack |
getAndSplit(java.util.List<ItemStack> stacks,
int index,
int amount) |
static void |
loadAllItems(NBTTagCompound tag,
NonNullList<ItemStack> list) |
static NBTTagCompound |
saveAllItems(NBTTagCompound tag,
NonNullList<ItemStack> list) |
static NBTTagCompound |
saveAllItems(NBTTagCompound tag,
NonNullList<ItemStack> list,
boolean p_191281_2_) |
public static ItemStack getAndSplit(java.util.List<ItemStack> stacks, int index, int amount)
public static NBTTagCompound saveAllItems(NBTTagCompound tag, NonNullList<ItemStack> list)
public static NBTTagCompound saveAllItems(NBTTagCompound tag, NonNullList<ItemStack> list, boolean p_191281_2_)
public static void loadAllItems(NBTTagCompound tag, NonNullList<ItemStack> list)