Class IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapper

java.lang.Object
org.cyclops.commoncapabilities.ingredient.storage.IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapper
All Implemented Interfaces:
net.neoforged.neoforge.fluids.capability.IFluidHandler
Direct Known Subclasses:
IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapperSlotted
Enclosing class:
IngredientComponentStorageWrapperHandlerFluidStack<C>

public static class IngredientComponentStorageWrapperHandlerFluidStack.FluidStorageWrapper extends Object implements net.neoforged.neoforge.fluids.capability.IFluidHandler
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.neoforged.neoforge.fluids.capability.IFluidHandler

    net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction
  • Constructor Summary

    Constructors
    Constructor
    Description
    FluidStorageWrapper(IIngredientComponentStorage<net.neoforged.neoforge.fluids.FluidStack,Integer> storage)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.neoforged.neoforge.fluids.FluidStack
    drain(int maxDrain, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
     
    net.neoforged.neoforge.fluids.FluidStack
    drain(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
     
    int
    fill(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
     
    net.neoforged.neoforge.fluids.FluidStack
    getFluidInTank(int tank)
     
    int
    getTankCapacity(int tank)
     
    int
     
    boolean
    isFluidValid(int tank, net.neoforged.neoforge.fluids.FluidStack stack)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • getTanks

      public int getTanks()
      Specified by:
      getTanks in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • getFluidInTank

      @Nonnull public net.neoforged.neoforge.fluids.FluidStack getFluidInTank(int tank)
      Specified by:
      getFluidInTank in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • getTankCapacity

      public int getTankCapacity(int tank)
      Specified by:
      getTankCapacity in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • isFluidValid

      public boolean isFluidValid(int tank, @Nonnull net.neoforged.neoforge.fluids.FluidStack stack)
      Specified by:
      isFluidValid in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • fill

      public int fill(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
      Specified by:
      fill in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • drain

      public net.neoforged.neoforge.fluids.FluidStack drain(net.neoforged.neoforge.fluids.FluidStack resource, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
      Specified by:
      drain in interface net.neoforged.neoforge.fluids.capability.IFluidHandler
    • drain

      public net.neoforged.neoforge.fluids.FluidStack drain(int maxDrain, net.neoforged.neoforge.fluids.capability.IFluidHandler.FluidAction action)
      Specified by:
      drain in interface net.neoforged.neoforge.fluids.capability.IFluidHandler