Package net.minecraft.world
Class ContainerHelper
java.lang.Object
net.minecraft.world.ContainerHelper
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic intclearOrCountMatchingItems(Container p_18957_, Predicate<ItemStack> p_18958_, int p_18959_, boolean p_18960_) static intclearOrCountMatchingItems(ItemStack p_18962_, Predicate<ItemStack> p_18963_, int p_18964_, boolean p_18965_) static voidloadAllItems(CompoundTag p_18981_, NonNullList<ItemStack> p_18982_, HolderLookup.Provider p_334892_) static ItemStackremoveItem(List<ItemStack> p_18970_, int p_18971_, int p_18972_) static CompoundTagsaveAllItems(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_, boolean p_336339_, HolderLookup.Provider p_329730_) static CompoundTagsaveAllItems(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, HolderLookup.Provider p_333891_) static ItemStack
- 
Field Details- 
TAG_ITEMS- See Also:
 
 
- 
- 
Constructor Details- 
ContainerHelperpublic ContainerHelper()
 
- 
- 
Method Details- 
removeItem
- 
takeItem
- 
saveAllItemspublic static CompoundTag saveAllItems(CompoundTag p_18977_, NonNullList<ItemStack> p_18978_, HolderLookup.Provider p_333891_) 
- 
saveAllItemspublic static CompoundTag saveAllItems(CompoundTag p_18974_, NonNullList<ItemStack> p_18975_, boolean p_336339_, HolderLookup.Provider p_329730_) 
- 
loadAllItemspublic static void loadAllItems(CompoundTag p_18981_, NonNullList<ItemStack> p_18982_, HolderLookup.Provider p_334892_) 
- 
clearOrCountMatchingItems
- 
clearOrCountMatchingItems
 
-