Package alexiil.mc.lib.attributes.fluid
Interface FluidTransferable
- All Superinterfaces:
FluidExtractable
,FluidInsertable
,LimitedConsumer<FluidVolume>
- All Known Subinterfaces:
GroupedFluidInv
,LimitedGroupedFluidInv
- All Known Implementing Classes:
CombinedGroupedFluidInv
,DelegatingGroupedFluidInv
,EmptyFluidTransferable
,EmptyGroupedFluidInv
,FilteredFluidTransferable
,GroupedFluidInvFixedWrapper
,ItemBasedSingleFluidInv
,JumboFixedFluidInv
,SimpleFixedFluidInv
,SimpleLimitedGroupedFluidInv
,SingleFluidTank
Combined interface for
FluidInsertable
and FluidExtractable
. (This is provided for simplicity when
exposing inventories for modification but when you don't want to implement the full set of methods that
GroupedFluidInv
provides).-
Method Summary
Modifier and TypeMethodDescriptiondefault FluidTransferable
filtered(FluidFilter filter)
static FluidTransferable
from(FluidExtractable extractable)
static FluidTransferable
from(FluidInsertable insertable)
static FluidTransferable
from(FluidInsertable insertable, FluidExtractable extractable)
Methods inherited from interface alexiil.mc.lib.attributes.fluid.FluidExtractable
attemptAnyExtraction, attemptAnyExtraction, attemptExtraction, attemptExtraction, couldExtractAnything, extract, extract, extract, extract, extract, extract, getPureExtractable
Methods inherited from interface alexiil.mc.lib.attributes.fluid.FluidInsertable
attemptInsertion, getInsertionFilter, getMinimumAcceptedAmount, getPureInsertable, insert, offer, offer, wouldAccept
-
Method Details
-
filtered
- Specified by:
filtered
in interfaceFluidExtractable
- Specified by:
filtered
in interfaceFluidInsertable
- Returns:
- A new
FluidTransferable
that has an additional filter applied to the fluid extracted from it or inserted into it.
-
from
- Returns:
- A new
FluidTransferable
that will insert into the given insertable, and never return any Fluids fromFluidExtractable.attemptExtraction(FluidFilter, int, Simulation)
.
-
from
- Returns:
- A new
FluidTransferable
that will extract from the given extractable, and reject every inserted stack.
-
from
- Returns:
- A new
FluidTransferable
that will extract from the given extractable, and insert into the given extractable.
-