Uses of Interface
net.neoforged.neoforge.fluids.capability.IFluidHandler
Packages that use IFluidHandler
Package
Description
-
Uses of IFluidHandler in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids that return IFluidHandlerModifier and TypeMethodDescriptionprivate static IFluidHandlerFluidUtil.getFluidBlockHandler(Fluid fluid, Level level, BlockPos pos) Deprecated, for removal: This API element is subject to removal in a future version.Internal method for getting a fluid block handler for placing a fluid.Methods in net.neoforged.neoforge.fluids that return types with arguments of type IFluidHandlerModifier and TypeMethodDescriptionstatic Optional<IFluidHandler> FluidUtil.getFluidHandler(Level level, BlockPos blockPos, @Nullable Direction side) Deprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.fluids with parameters of type IFluidHandlerModifier and TypeMethodDescriptionstatic booleanFluidUtil.interactWithFluidHandler(Player player, InteractionHand hand, IFluidHandler handler) Deprecated, for removal: This API element is subject to removal in a future version.static FluidActionResultFluidUtil.tryEmptyContainer(ItemStack container, IFluidHandler fluidDestination, int maxAmount, @Nullable Player player, boolean doDrain) Deprecated, for removal: This API element is subject to removal in a future version.static FluidActionResultFluidUtil.tryEmptyContainerAndStow(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doDrain) Deprecated, for removal: This API element is subject to removal in a future version.static FluidActionResultFluidUtil.tryFillContainer(ItemStack container, IFluidHandler fluidSource, int maxAmount, @Nullable Player player, boolean doFill) Deprecated, for removal: This API element is subject to removal in a future version.static FluidActionResultFluidUtil.tryFillContainerAndStow(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doFill) Deprecated, for removal: This API element is subject to removal in a future version.static FluidStackFluidUtil.tryFluidTransfer(IFluidHandler fluidDestination, IFluidHandler fluidSource, int maxAmount, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.UseResourceHandlerUtil.move(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)orResourceHandlerUtil.moveFirst(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)instead.static FluidStackFluidUtil.tryFluidTransfer(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack resource, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.UseResourceHandlerUtil.move(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)orResourceHandlerUtil.moveFirst(net.neoforged.neoforge.transfer.ResourceHandler<T>, net.neoforged.neoforge.transfer.ResourceHandler<T>, java.util.function.Predicate<T>, int, net.neoforged.neoforge.transfer.transaction.TransactionContext)instead.private static FluidStackFluidUtil.tryFluidTransfer_Internal(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack drainable, boolean doTransfer) Deprecated, for removal: This API element is subject to removal in a future version.Internal method for filling a destination fluid handler from a source fluid handler using a specific fluid.static booleanFluidUtil.tryPlaceFluid(@Nullable Player player, Level level, InteractionHand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of IFluidHandler in net.neoforged.neoforge.fluids.capability
Subinterfaces of IFluidHandler in net.neoforged.neoforge.fluids.capabilityModifier and TypeInterfaceDescriptioninterfaceDeprecated, for removal: This API element is subject to removal in a future version.UseResourceHandlerwith aFluidResourceinstead.Classes in net.neoforged.neoforge.fluids.capability that implement IFluidHandlerModifier and TypeClassDescription(package private) classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.Methods in net.neoforged.neoforge.fluids.capability that return IFluidHandlerModifier and TypeMethodDescriptionstatic IFluidHandlerIFluidHandler.of(ResourceHandler<FluidResource> handler) Deprecated, for removal: This API element is subject to removal in a future version.Creates a wrapper around aResourceHandler, to present it as a legacyIFluidHandler. -
Uses of IFluidHandler in net.neoforged.neoforge.fluids.capability.templates
Classes in net.neoforged.neoforge.fluids.capability.templates that implement IFluidHandlerModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.UseEmptyResourceHandlerinstead.classDeprecated, for removal: This API element is subject to removal in a future version.UseItemAccessFluidHandlerinstead.static classDeprecated, for removal: This API element is subject to removal in a future version.Deprecated with no direct equivalent, howeverItemAccessFluidHandlercan serve as inspiration.static classDeprecated, for removal: This API element is subject to removal in a future version.UseItemAccessFluidHandlerinstead, with an override ofItemAccessFluidHandler.update(net.neoforged.neoforge.transfer.item.ItemResource, int, net.neoforged.neoforge.transfer.fluid.FluidResource, int)to return a different item resource if the fluid amount is 0.classDeprecated, for removal: This API element is subject to removal in a future version.UseItemAccessFluidHandler, with an override ofItemAccessFluidHandler.update(net.neoforged.neoforge.transfer.item.ItemResource, int, net.neoforged.neoforge.transfer.fluid.FluidResource, int)to return an empty resource if the fluid amount is not exactly 0 or the capacity of the handler.static classDeprecated, for removal: This API element is subject to removal in a future version.Deprecated with no direct equivalent, howeverItemAccessFluidHandlercan serve as inspiration.static classDeprecated, for removal: This API element is subject to removal in a future version.UseItemAccessFluidHandlerinstead, with an override ofItemAccessFluidHandler.update(net.neoforged.neoforge.transfer.item.ItemResource, int, net.neoforged.neoforge.transfer.fluid.FluidResource, int)to return a different item resource if the fluid amount is 0.classDeprecated, for removal: This API element is subject to removal in a future version.UseFluidStacksResourceHandlerinstead.classDeprecated, for removal: This API element is subject to removal in a future version.UseVoidingResourceHandlerinstead. -
Uses of IFluidHandler in net.neoforged.neoforge.fluids.capability.wrappers
Classes in net.neoforged.neoforge.fluids.capability.wrappers that implement IFluidHandlerModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.static classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.classDeprecated, for removal: This API element is subject to removal in a future version.UseBucketResourceHandlerinstead.
Capabilities.Fluid.BLOCKcapability directly.