Interface IAdvancedItemHandlerModifiable

All Superinterfaces:
IAdvancedItemHandler, net.minecraftforge.items.IItemHandler, net.minecraftforge.items.IItemHandlerModifiable
All Known Implementing Classes:
BaseItemStackHandler

public interface IAdvancedItemHandlerModifiable extends net.minecraftforge.items.IItemHandlerModifiable, IAdvancedItemHandler
Rich interface that provides some default methods to an IItemHandlerModifiable. Just implement this together with IItemHandlerModifiable.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Clears all slots from the item handler.
    default int
    clear(Predicate<net.minecraft.world.item.ItemStack> predicate)
    Clears all stacks from the item handler that match a predicate.
    wrap(net.minecraftforge.items.IItemHandlerModifiable handler)
    Creates a new IAdvancedItemHandlerModifiable from an IItemHandlerModifiable.

    Methods inherited from interface org.moddingx.libx.inventory.IAdvancedItemHandler

    extractItem, extractItem, hasSpaceFor, hasSpaceFor, insertItem

    Methods inherited from interface net.minecraftforge.items.IItemHandler

    extractItem, getSlotLimit, getSlots, getStackInSlot, insertItem, isItemValid

    Methods inherited from interface net.minecraftforge.items.IItemHandlerModifiable

    setStackInSlot
  • Method Details

    • clear

      default void clear()
      Clears all slots from the item handler.
    • clear

      default int clear(Predicate<net.minecraft.world.item.ItemStack> predicate)
      Clears all stacks from the item handler that match a predicate.
      Returns:
      The amount of items cleared.
    • wrap

      static IAdvancedItemHandlerModifiable wrap(net.minecraftforge.items.IItemHandlerModifiable handler)
      Creates a new IAdvancedItemHandlerModifiable from an IItemHandlerModifiable.