Class FluidHandlerFluidStackIterator

java.lang.Object
org.cyclops.commoncapabilities.api.capability.fluidhandler.FluidHandlerFluidStackIterator
All Implemented Interfaces:
Iterator<net.neoforged.neoforge.fluids.FluidStack>

public class FluidHandlerFluidStackIterator extends Object implements Iterator<net.neoforged.neoforge.fluids.FluidStack>
An iterator over all slots in a fluid handler.
  • Constructor Details

    • FluidHandlerFluidStackIterator

      public FluidHandlerFluidStackIterator(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidHandler, int offset)
    • FluidHandlerFluidStackIterator

      public FluidHandlerFluidStackIterator(net.neoforged.neoforge.fluids.capability.IFluidHandler fluidHandler)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<net.neoforged.neoforge.fluids.FluidStack>
    • next

      public net.neoforged.neoforge.fluids.FluidStack next()
      Specified by:
      next in interface Iterator<net.neoforged.neoforge.fluids.FluidStack>