Interface IFluidHandlerCapacity

All Superinterfaces:
net.neoforged.neoforge.transfer.ResourceHandler<net.neoforged.neoforge.transfer.fluid.FluidResource>
All Known Implementing Classes:
FluidHandlerItemCapacity, SingleUseTank, Tank

public interface IFluidHandlerCapacity extends net.neoforged.neoforge.transfer.ResourceHandler<net.neoforged.neoforge.transfer.fluid.FluidResource>
A fluid handler with a mutable capacity.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getTankCapacity(int tank)
     
    default void
    setTankCapacity(int tank, int capacity)
    Deprecated.
    void
    setTankCapacity(int tank, int capacity, net.neoforged.neoforge.transfer.transaction.TransactionContext transaction)
     

    Methods inherited from interface net.neoforged.neoforge.transfer.ResourceHandler

    extract, extract, getAmountAsInt, getAmountAsLong, getCapacityAsInt, getCapacityAsLong, getResource, insert, insert, isValid, size
  • Method Details

    • setTankCapacity

      void setTankCapacity(int tank, int capacity, net.neoforged.neoforge.transfer.transaction.TransactionContext transaction)
    • setTankCapacity

      @Deprecated default void setTankCapacity(int tank, int capacity)
      Deprecated.
    • getTankCapacity

      int getTankCapacity(int tank)