Package alexiil.mc.lib.attributes.fluid
Class FluidVolumeUtil.FluidTankInteraction
java.lang.Object
alexiil.mc.lib.attributes.fluid.FluidVolumeUtil.FluidTankInteraction
- Enclosing class:
- FluidVolumeUtil
- 
Field SummaryFieldsModifier and TypeFieldDescriptionA copy of the fluid moved.booleanIf true then the interaction drained fluid from theItemStack, and inserted it into theFluidInsertabletank.
- 
Constructor SummaryConstructorsConstructorDescriptionFluidTankInteraction(FluidVolume fluidMoved, boolean intoTank)Deprecated, for removal: This API element is subject to removal in a future version.FluidTankInteraction(FluidVolume fluidMoved, boolean intoTank, FluidVolumeUtil.ItemContainerStatus intoTankStatus, FluidVolumeUtil.ItemContainerStatus fromTankStatus)Constructs a newFluidVolumeUtil.FluidTankInteractionobject.
- 
Method SummaryModifier and TypeMethodDescriptionintDeprecated, for removal: This API element is subject to removal in a future version.net.minecraft.util.ActionResultConverts this interaction result into a vanilla minecraftActionResult, suitable for normal block or item "use" methods.booleanbooleanChecks to see if any fluid was moved in the interaction.fromTank(FluidVolume fluid)Deprecated, for removal: This API element is subject to removal in a future version.intoTank(FluidVolume fluid)Deprecated, for removal: This API element is subject to removal in a future version.none(FluidVolumeUtil.ItemContainerStatus intoTankStatus, FluidVolumeUtil.ItemContainerStatus fromTankStatus)boolean
- 
Field Details- 
NONE
- 
fluidMovedA copy of the fluid moved.
- 
intoTankpublic final boolean intoTankIf true then the interaction drained fluid from theItemStack, and inserted it into theFluidInsertabletank. Otherwise this will be false.
- 
intoTankStatus
- 
fromTankStatus
 
- 
- 
Constructor Details- 
FluidTankInteraction@Deprecated(since="0.6.4", forRemoval=true) public FluidTankInteraction(FluidVolume fluidMoved, boolean intoTank)Deprecated, for removal: This API element is subject to removal in a future version.
- 
FluidTankInteractionpublic FluidTankInteraction(FluidVolume fluidMoved, boolean intoTank, FluidVolumeUtil.ItemContainerStatus intoTankStatus, FluidVolumeUtil.ItemContainerStatus fromTankStatus)Constructs a newFluidVolumeUtil.FluidTankInteractionobject.Generally it is not expected that this be called by any method other than FluidInvUtil.interactItemWithTank(FluidInsertable, FluidExtractable, Reference, LimitedConsumer, FluidAmount)
 
- 
- 
Method Details- 
intoTank@Deprecated(since="0.6.4", forRemoval=true) public static FluidVolumeUtil.FluidTankInteraction intoTank(FluidVolume fluid)Deprecated, for removal: This API element is subject to removal in a future version.
- 
fromTank@Deprecated(since="0.6.4", forRemoval=true) public static FluidVolumeUtil.FluidTankInteraction fromTank(FluidVolume fluid)Deprecated, for removal: This API element is subject to removal in a future version.
- 
nonepublic static FluidVolumeUtil.FluidTankInteraction none(FluidVolumeUtil.ItemContainerStatus intoTankStatus, FluidVolumeUtil.ItemContainerStatus fromTankStatus)
- 
didMoveAnypublic boolean didMoveAny()Checks to see if any fluid was moved in the interaction.- Returns:
- The inverse of fluidMoved.isEmpty()
 
- 
wasContainerValidpublic boolean wasContainerValid()- Returns:
- true if either of intoTankStatusorfromTankStatusis#VALID.
 
- 
didCheckItemStackpublic boolean didCheckItemStack()- Returns:
- true if either of intoTankStatusorfromTankStatusis different toFluidVolumeUtil.ItemContainerStatus.NOT_CHECKED.
 
- 
asActionResultpublic net.minecraft.util.ActionResult asActionResult()Converts this interaction result into a vanilla minecraftActionResult, suitable for normal block or item "use" methods.- Returns:
- ActionResult.SUCCESSif- didMoveAny()returns true.
- ActionResult.FAILif- wasContainerValid()returns true.
- ActionResult.PASSotherwise.
 - ActionResult.FAIL, but using an unrelated item - such as an iron ingot - should return- ActionResult.PASS)
 
- 
amountMovedDeprecated, for removal: This API element is subject to removal in a future version.
- 
amountMoved_F
 
-