Uses of Interface
net.neoforged.neoforge.fluids.capability.IFluidHandler
Packages that use IFluidHandler
Package
Description
- 
Uses of IFluidHandler in net.neoforged.neoforge.capabilitiesFields in net.neoforged.neoforge.capabilities with type parameters of type IFluidHandlerModifier and TypeFieldDescriptionstatic final BlockCapability<IFluidHandler, @Nullable Direction> Capabilities.FluidHandler.BLOCKstatic final EntityCapability<IFluidHandler, @Nullable Direction> Capabilities.FluidHandler.ENTITY
- 
Uses of IFluidHandler in net.neoforged.neoforge.fluidsMethods in net.neoforged.neoforge.fluids that return IFluidHandlerModifier and TypeMethodDescriptionprivate static IFluidHandlerFluidUtil.getFluidBlockHandler(Fluid fluid, Level level, BlockPos pos) 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) Helper method to get an IFluidHandler for at a block position.Methods in net.neoforged.neoforge.fluids with parameters of type IFluidHandlerModifier and TypeMethodDescriptionstatic booleanFluidUtil.interactWithFluidHandler(Player player, InteractionHand hand, IFluidHandler handler) Used to handle the common case of a player holding a fluid item and right-clicking on a fluid handler.static FluidActionResultFluidUtil.tryEmptyContainer(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 FluidActionResultFluidUtil.tryEmptyContainerAndStow(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 FluidActionResultFluidUtil.tryFillContainer(ItemStack container, IFluidHandler fluidSource, int maxAmount, @Nullable Player player, boolean doFill) Fill a container from the given fluidSource.static FluidActionResultFluidUtil.tryFillContainerAndStow(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 FluidStackFluidUtil.tryFluidTransfer(IFluidHandler fluidDestination, IFluidHandler fluidSource, int maxAmount, boolean doTransfer) Fill a destination fluid handler from a source fluid handler with a max amount.static FluidStackFluidUtil.tryFluidTransfer(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack resource, boolean doTransfer) Fill a destination fluid handler from a source fluid handler using a specific fluid.private static FluidStackFluidUtil.tryFluidTransfer_Internal(IFluidHandler fluidDestination, IFluidHandler fluidSource, FluidStack drainable, boolean doTransfer) 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) Tries to place a fluid resource into the level as a block and drains the fluidSource.
- 
Uses of IFluidHandler in net.neoforged.neoforge.fluids.capabilitySubinterfaces of IFluidHandler in net.neoforged.neoforge.fluids.capabilityModifier and TypeInterfaceDescriptioninterfaceItemStacks handled by anIFluidHandlermay change, so this class allows users of the fluid handler to get the container after it has been used.
- 
Uses of IFluidHandler in net.neoforged.neoforge.fluids.capability.templatesClasses in net.neoforged.neoforge.fluids.capability.templates that implement IFluidHandlerModifier and TypeClassDescriptionclassclassFluidHandlerItemStack is a template capability provider for ItemStacks.static classDestroys the container item when it's emptied.static classSwaps the container item for a different one when it's emptied.classFluidHandlerItemStackSimple is a template capability provider for ItemStacks.static classDestroys the container item when it's emptied.static classSwaps the container item for a different one when it's emptied.classFlexible implementation of a Fluid Storage object.classVoidFluidHandler is a template fluid handler that can be filled indefinitely without ever getting full.
- 
Uses of IFluidHandler in net.neoforged.neoforge.fluids.capability.wrappersClasses in net.neoforged.neoforge.fluids.capability.wrappers that implement IFluidHandlerModifier and TypeClassDescriptionclassWrapper around any block, only accounts for fluid placement, otherwise the block acts a void.static classclassclassclassWrapper for vanilla and forge buckets.