Package net.minecraft.world
Class ContainerHelper
java.lang.Object
net.minecraft.world.ContainerHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
clearOrCountMatchingItems
(Container p_18957_, Predicate<ItemStack> p_18958_, int p_18959_, boolean p_18960_) static int
clearOrCountMatchingItems
(ItemStack p_18962_, Predicate<ItemStack> p_18963_, int p_18964_, boolean p_18965_) static void
loadAllItems
(CompoundTag p_18981_, NonNullList<ItemStack> p_18982_) static ItemStack
removeItem
(List<ItemStack> p_18970_, int p_18971_, int p_18972_) static CompoundTag
saveAllItems
(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_) static CompoundTag
saveAllItems
(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, boolean p_18979_) static ItemStack
-
Constructor Details
-
ContainerHelper
public ContainerHelper()
-
-
Method Details
-
removeItem
-
takeItem
-
saveAllItems
-
saveAllItems
public static CompoundTag saveAllItems(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, boolean p_18979_) -
loadAllItems
-
clearOrCountMatchingItems
-
clearOrCountMatchingItems
-