Class IndexedSlotlessItemHandlerWrapper.IndexIterator

java.lang.Object
org.cyclops.cyclopscore.inventory.IndexedSlotlessItemHandlerWrapper.IndexIterator
All Implemented Interfaces:
it.unimi.dsi.fastutil.ints.IntIterator, Iterator<Integer>, PrimitiveIterator<Integer,IntConsumer>, PrimitiveIterator.OfInt
Enclosing class:
IndexedSlotlessItemHandlerWrapper

public static class IndexedSlotlessItemHandlerWrapper.IndexIterator extends Object implements it.unimi.dsi.fastutil.ints.IntIterator
  • Constructor Details

    • IndexIterator

      public IndexIterator(Iterator<it.unimi.dsi.fastutil.ints.Int2ObjectMap.Entry<net.minecraft.world.item.ItemStack>> slotIterator, net.minecraft.world.item.ItemStack prototype, int matchFlags)
  • Method Details

    • findNext

      protected int findNext()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Integer>
    • next

      public Integer next()
      Specified by:
      next in interface it.unimi.dsi.fastutil.ints.IntIterator
      Specified by:
      next in interface Iterator<Integer>
      Specified by:
      next in interface PrimitiveIterator.OfInt
    • nextInt

      public int nextInt()
      Specified by:
      nextInt in interface it.unimi.dsi.fastutil.ints.IntIterator
      Specified by:
      nextInt in interface PrimitiveIterator.OfInt
    • skip

      public int skip(int n)
      Specified by:
      skip in interface it.unimi.dsi.fastutil.ints.IntIterator