Package alexiil.mc.lib.attributes.fluid
Interface LimitedFixedFluidInv
- All Superinterfaces:
- Convertible,- FixedFluidInv,- FixedFluidInvView
- All Known Implementing Classes:
- SimpleLimitedFixedFluidInv
A type of 
FixedFluidInv that wraps an existing FixedFluidInv and provides custom control over the
 actual modification of the wrapped FixedFluidInv.
 
 Note that it is never possible to get the wrapped FixedFluidInv from this class.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceA rule for a set of tanks.
- 
Method SummaryModifier and TypeMethodDescriptiondefault FixedFluidInvcopy()Creates a copy of thisLimitedFixedItemInv(with the same backing inventory and the same rules).getRule(int tank)getSubRule(int from, int to)Marks this object as final, and disallows any further changes to this.default LimitedFixedFluidInvreset()Completely clears all rules currently imposed.Methods inherited from interface alexiil.mc.lib.attributes.fluid.FixedFluidInvcreateLimitedFixedInv, extractFluid, forceSetInvFluid, getExtractable, getGroupedInv, getInsertable, getMappedInv, getSubInv, getTank, getTransferable, insertFluid, isFluidValidForTank, modifyTank, setInvFluid, tankIterableMethods inherited from interface alexiil.mc.lib.attributes.fluid.FixedFluidInvViewaddListener, convertTo, fluidIterable, getFilterForTank, getFixedView, getInvFluid, getMaxAmount, getMaxAmount_F, getTankCount, offerSelfAsAttribute
- 
Method Details- 
markFinalLimitedFixedFluidInv markFinal()Marks this object as final, and disallows any further changes to this. If this is called thenasUnmodifiable()will return this object.- Returns:
- this.
 
- 
copyLimitedFixedFluidInv copy()Creates a copy of thisLimitedFixedItemInv(with the same backing inventory and the same rules).
- 
resetCompletely clears all rules currently imposed.- Returns:
- This.
 
- 
asUnmodifiable- Returns:
- A new FixedFluidInvwith the current rules of this, but that cannot be modified.
 
- 
getRule- Returns:
- A rule for the single tank.
 
- 
getSubRule- Parameters:
- from- The first tank (inclusive)
- to- The last tank (exclusive).
- Returns:
- A rule that applies to every tank between from and to.
 
- 
getAllRule- Returns:
- A rule that applies to every tank in this inventory.
 
 
-