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
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA rule that is applied once for everyFluidKeythat matches theFluidFilterthat was used ingetRule(FluidFilter).Nested classes/interfaces inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInvView
GroupedFluidInvView.FluidInvStatistic -
Method Summary
Modifier and TypeMethodDescriptiondefault GroupedFluidInvcopy()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 LimitedGroupedFluidInvreset()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, getPureExtractableMethods inherited from interface alexiil.mc.lib.attributes.fluid.FluidInsertable
attemptInsertion, getInsertionFilter, getMinimumAcceptedAmount, getPureInsertable, insert, offer, offer, wouldAcceptMethods inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInv
createLimitedGroupedInv, filteredMethods 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
GroupedFluidInvwith the current rules of this, but that cannot be modified.
-
getAllRule
- Returns:
- An
LimitedGroupedFluidInv.FluidLimitRulethat applies to everything.
-
getRule
- Returns:
- A rule for the specific
FluidKeygiven.
-
getRule
- Returns:
- An
LimitedGroupedFluidInv.FluidLimitRulethat applies to every fluid that matches the given filter.
-