Uses of Class
net.minecraftforge.fluids.FluidActionResult
-
Uses of FluidActionResult in net.minecraftforge.fluids
Modifier and TypeMethodDescriptionstatic @NotNull FluidActionResult
FluidUtil.tryEmptyContainer
(@NotNull ItemStack container, IFluidHandler fluidDestination, int maxAmount, @Nullable Player player, boolean doDrain) Takes a filled container and tries to empty it into the given tank.static @NotNull FluidActionResult
FluidUtil.tryEmptyContainerAndStow
(@NotNull ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doDrain) Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.static @NotNull FluidActionResult
FluidUtil.tryFillContainer
(@NotNull ItemStack container, IFluidHandler fluidSource, int maxAmount, @Nullable Player player, boolean doFill) Fill a container from the given fluidSource.static @NotNull FluidActionResult
FluidUtil.tryFillContainerAndStow
(@NotNull ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank.static @NotNull FluidActionResult
FluidUtil.tryPickUpFluid
(@NotNull ItemStack emptyContainer, @Nullable Player playerIn, Level level, BlockPos pos, Direction side) Attempts to pick up a fluid in the level and put it in an empty container item.static @NotNull FluidActionResult
FluidUtil.tryPlaceFluid
(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, @NotNull ItemStack container, FluidStack resource)