Package net.minecraft.inventory
Class ItemStackHelper
- java.lang.Object
-
- net.minecraft.inventory.ItemStackHelper
-
public class ItemStackHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ItemStackHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
clearOrCountMatchingItems(IInventory p_233534_0_, java.util.function.Predicate<ItemStack> p_233534_1_, int p_233534_2_, boolean p_233534_3_)
static int
clearOrCountMatchingItems(ItemStack p_233535_0_, java.util.function.Predicate<ItemStack> p_233535_1_, int p_233535_2_, boolean p_233535_3_)
static void
loadAllItems(CompoundNBT p_191283_0_, NonNullList<ItemStack> p_191283_1_)
static ItemStack
removeItem(java.util.List<ItemStack> p_188382_0_, int p_188382_1_, int p_188382_2_)
static CompoundNBT
saveAllItems(CompoundNBT p_191282_0_, NonNullList<ItemStack> p_191282_1_)
static CompoundNBT
saveAllItems(CompoundNBT p_191281_0_, NonNullList<ItemStack> p_191281_1_, boolean p_191281_2_)
static ItemStack
takeItem(java.util.List<ItemStack> p_188383_0_, int p_188383_1_)
-
-
-
Method Detail
-
removeItem
public static ItemStack removeItem(java.util.List<ItemStack> p_188382_0_, int p_188382_1_, int p_188382_2_)
-
saveAllItems
public static CompoundNBT saveAllItems(CompoundNBT p_191282_0_, NonNullList<ItemStack> p_191282_1_)
-
saveAllItems
public static CompoundNBT saveAllItems(CompoundNBT p_191281_0_, NonNullList<ItemStack> p_191281_1_, boolean p_191281_2_)
-
loadAllItems
public static void loadAllItems(CompoundNBT p_191283_0_, NonNullList<ItemStack> p_191283_1_)
-
clearOrCountMatchingItems
public static int clearOrCountMatchingItems(IInventory p_233534_0_, java.util.function.Predicate<ItemStack> p_233534_1_, int p_233534_2_, boolean p_233534_3_)
-
-