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
Fields inherited from class alexiil.mc.lib.attributes.fluid.impl.CombinedFixedFluidInvView
viewsFields inherited from class alexiil.mc.lib.attributes.misc.AbstractCombined
list -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleansetInvFluid(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, isFluidValidForTankMethods inherited from class alexiil.mc.lib.attributes.misc.AbstractCombined
equals, getSubObject, getSubObjectCount, hashCode, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface alexiil.mc.lib.attributes.fluid.FixedFluidInv
createLimitedFixedInv, extractFluid, forceSetInvFluid, getExtractable, getGroupedInv, getInsertable, getMappedInv, getSubInv, getTank, getTransferable, insertFluid, isFluidValidForTank, modifyTank, tankIterableMethods inherited from interface alexiil.mc.lib.attributes.fluid.FixedFluidInvView
addListener, convertTo, fluidIterable, getFilterForTank, getFixedView, getInvFluid, getMaxAmount, getMaxAmount_F, getTankCount, offerSelfAsAttribute
-
Constructor Details
-
CombinedFixedFluidInv
-
-
Method Details
-
setInvFluid
Description copied from interface:FixedFluidInvSets the fluid in the given tank to the given fluid.- Specified by:
setInvFluidin 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).
-