Class ItemHandlerItemStackIterator

java.lang.Object
org.cyclops.commoncapabilities.api.capability.itemhandler.ItemHandlerItemStackIterator
All Implemented Interfaces:
Iterator<net.minecraft.world.item.ItemStack>

public class ItemHandlerItemStackIterator extends Object implements Iterator<net.minecraft.world.item.ItemStack>
An iterator over all slots in an item handler.
  • Constructor Details

    • ItemHandlerItemStackIterator

      public ItemHandlerItemStackIterator(net.neoforged.neoforge.items.IItemHandler itemHandler, int offset)
    • ItemHandlerItemStackIterator

      public ItemHandlerItemStackIterator(net.neoforged.neoforge.items.IItemHandler itemHandler)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<net.minecraft.world.item.ItemStack>
    • next

      public net.minecraft.world.item.ItemStack next()
      Specified by:
      next in interface Iterator<net.minecraft.world.item.ItemStack>