Package alexiil.mc.lib.attributes.fluid
Interface LimitedGroupedFluidInv
- All Superinterfaces:
FluidExtractable
,FluidInsertable
,FluidTransferable
,GroupedFluidInv
,GroupedFluidInvView
,LimitedConsumer<FluidVolume>
- All Known Implementing Classes:
SimpleLimitedGroupedFluidInv
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A rule that is applied once for everyFluidKey
that matches theFluidFilter
that was used ingetRule(FluidFilter)
.Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInvView
GroupedFluidInvView.FluidInvStatistic
-
Method Summary
Modifier and TypeMethodDescriptiondefault GroupedFluidInv
copy()
Creates a copy of thisLimitedGroupedFluidInv
(with the same backing inventory and the same rules), but not marked as final.getRule(FluidFilter filter)
Marks this object as final, and disallows any further changes to this.default LimitedGroupedFluidInv
reset()
Completely clears all rules currently imposed.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
Methods inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInv
createLimitedGroupedInv, filtered
Methods inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInvView
addListener, addListener_F, getAmount, getAmount, getAmount_F, getAmount_F, getCapacity, getCapacity_F, getGroupedView, getSpace, getSpace_F, getStatistics, getStatistics, getStoredFluids, getTotalCapacity, getTotalCapacity_F
-
Method Details
-
markFinal
LimitedGroupedFluidInv markFinal()Marks this object as final, and disallows any further changes to this. If this is called thenasUnmodifiable()
will return this object.- Returns:
- this.
-
copy
LimitedGroupedFluidInv copy()Creates a copy of thisLimitedGroupedFluidInv
(with the same backing inventory and the same rules), but not marked as final. -
reset
Completely clears all rules currently imposed.- Returns:
- This.
-
asUnmodifiable
- Returns:
- A new
GroupedFluidInv
with the current rules of this, but that cannot be modified.
-
getAllRule
- Returns:
- An
LimitedGroupedFluidInv.FluidLimitRule
that applies to everything.
-
getRule
- Returns:
- A rule for the specific
FluidKey
given.
-
getRule
- Returns:
- An
LimitedGroupedFluidInv.FluidLimitRule
that applies to every fluid that matches the given filter.
-