Class CombinedFixedFluidInv<InvType extends FixedFluidInv>
java.lang.Object
alexiil.mc.lib.attributes.misc.AbstractCombined<InvType>
alexiil.mc.lib.attributes.fluid.impl.CombinedFixedFluidInvView<InvType>
alexiil.mc.lib.attributes.fluid.impl.CombinedFixedFluidInv<InvType>
- All Implemented Interfaces:
Convertible
,FixedFluidInv
,FixedFluidInvView
,Combined
public class CombinedFixedFluidInv<InvType extends FixedFluidInv> extends CombinedFixedFluidInvView<InvType> implements FixedFluidInv
An
FixedFluidInv
that delegates to a list of them instead of storing items directly.-
Field Summary
-
Constructor Summary
Constructors Constructor Description CombinedFixedFluidInv(java.util.List<? extends InvType> views)
-
Method Summary
Modifier and Type Method Description boolean
setInvFluid(int tank, FluidVolume to, Simulation simulation)
Sets the fluid in the given tank to the given fluid.Methods inherited from class alexiil.mc.lib.attributes.fluid.impl.CombinedFixedFluidInvView
addListener, getFilterForTank, getInv, getInvFluid, getMaxAmount, getMaxAmount_F, getSubTank, getTankCount, isFluidValidForTank
Methods inherited from class alexiil.mc.lib.attributes.misc.AbstractCombined
equals, getSubObject, getSubObjectCount, hashCode, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface alexiil.mc.lib.attributes.fluid.FixedFluidInv
createLimitedFixedInv, extractFluid, forceSetInvFluid, getExtractable, getGroupedInv, getInsertable, getMappedInv, getSubInv, getTank, getTransferable, insertFluid, isFluidValidForTank, modifyTank, tankIterable
Methods inherited from interface alexiil.mc.lib.attributes.fluid.FixedFluidInvView
addListener, convertTo, fluidIterable, getFilterForTank, getFixedView, getInvFluid, getMaxAmount, getMaxAmount_F, getTankCount, offerSelfAsAttribute
-
Constructor Details
-
Method Details
-
setInvFluid
Description copied from interface:FixedFluidInv
Sets the fluid in the given tank to the given fluid.- Specified by:
setInvFluid
in interfaceFixedFluidInv
- Returns:
- True if the modification was allowed, false otherwise. (For example if the given stack doesn't pass the
FixedFluidInvView.isFluidValidForTank(int, FluidKey)
test).
-