Class MappedFixedFluidInv
java.lang.Object
alexiil.mc.lib.attributes.fluid.impl.AbstractPartialFixedFluidInvView
alexiil.mc.lib.attributes.fluid.impl.MappedFixedFluidInvView
alexiil.mc.lib.attributes.fluid.impl.MappedFixedFluidInv
- All Implemented Interfaces:
Convertible
,FixedFluidInv
,FixedFluidInvView
public class MappedFixedFluidInv extends MappedFixedFluidInvView implements FixedFluidInv
-
Field Summary
Fields inherited from class alexiil.mc.lib.attributes.fluid.impl.AbstractPartialFixedFluidInvView
inv
-
Constructor Summary
Constructors Constructor Description MappedFixedFluidInv(FixedFluidInv inv, int[] tanks)
-
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.MappedFixedFluidInvView
addListener, getInternalTank, getTankCount
Methods inherited from class alexiil.mc.lib.attributes.fluid.impl.AbstractPartialFixedFluidInvView
getFilterForTank, getInvFluid, getMaxAmount, getMaxAmount_F, isFluidValidForTank
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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).
-