Package alexiil.mc.lib.attributes.fluid
Interface LimitedGroupedFluidInv
- All Superinterfaces:
- FluidExtractable,- FluidInsertable,- FluidTransferable,- GroupedFluidInv,- GroupedFluidInvView,- LimitedConsumer<FluidVolume>
- All Known Implementing Classes:
- SimpleLimitedGroupedFluidInv
- 
Nested Class SummaryNested 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.GroupedFluidInvViewGroupedFluidInvView.FluidInvStatistic
- 
Method SummaryModifier 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.FluidExtractableattemptAnyExtraction, attemptAnyExtraction, attemptExtraction, attemptExtraction, couldExtractAnything, extract, extract, extract, extract, extract, extract, getPureExtractableMethods inherited from interface alexiil.mc.lib.attributes.fluid.FluidInsertableattemptInsertion, getInsertionFilter, getMinimumAcceptedAmount, getPureInsertable, insert, offer, offer, wouldAcceptMethods inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInvcreateLimitedGroupedInv, filteredMethods inherited from interface alexiil.mc.lib.attributes.fluid.GroupedFluidInvViewaddListener, addListener_F, getAmount, getAmount, getAmount_F, getAmount_F, getCapacity, getCapacity_F, getGroupedView, getSpace, getSpace_F, getStatistics, getStatistics, getStoredFluids, getTotalCapacity, getTotalCapacity_F
- 
Method Details- 
markFinalLimitedGroupedFluidInv markFinal()Marks this object as final, and disallows any further changes to this. If this is called thenasUnmodifiable()will return this object.- Returns:
- this.
 
- 
copyLimitedGroupedFluidInv copy()Creates a copy of thisLimitedGroupedFluidInv(with the same backing inventory and the same rules), but not marked as final.
- 
resetCompletely 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.
 
 
-