public class Inventories extends Object
Constructor and Description |
---|
Inventories() |
Modifier and Type | Method and Description |
---|---|
static void |
fromTag(CompoundTag tag,
DefaultedList<ItemStack> stacks) |
static ItemStack |
removeStack(List<ItemStack> stacks,
int slot) |
static ItemStack |
splitStack(List<ItemStack> stacks,
int slot,
int amount) |
static CompoundTag |
toTag(CompoundTag tag,
DefaultedList<ItemStack> stacks) |
static CompoundTag |
toTag(CompoundTag tag,
DefaultedList<ItemStack> stacks,
boolean setIfEmpty) |
public static CompoundTag toTag(CompoundTag tag, DefaultedList<ItemStack> stacks)
public static CompoundTag toTag(CompoundTag tag, DefaultedList<ItemStack> stacks, boolean setIfEmpty)
public static void fromTag(CompoundTag tag, DefaultedList<ItemStack> stacks)