Uses of Interface
net.minecraftforge.fluids.capability.IFluidHandler
-
Packages that use IFluidHandler Package Description net.minecraftforge.fluids net.minecraftforge.fluids.capability net.minecraftforge.fluids.capability.templates net.minecraftforge.fluids.capability.wrappers -
-
Uses of IFluidHandler in net.minecraftforge.fluids
Methods in net.minecraftforge.fluids that return IFluidHandler Modifier and Type Method Description private static IFluidHandlerFluidUtil. getFluidBlockHandler(Fluid fluid, World world, BlockPos pos)Internal method for getting a fluid block handler for placing a fluid.Methods in net.minecraftforge.fluids that return types with arguments of type IFluidHandler Modifier and Type Method Description static LazyOptional<IFluidHandler>FluidUtil. getFluidHandler(World world, BlockPos blockPos, Direction side)Helper method to get an IFluidHandler for at a block position.Methods in net.minecraftforge.fluids with parameters of type IFluidHandler Modifier and Type Method Description static booleanFluidUtil. interactWithFluidHandler(PlayerEntity player, Hand 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, PlayerEntity 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, PlayerEntity 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, PlayerEntity player, boolean doFill)Fill a container from the given fluidSource.static FluidActionResultFluidUtil. tryFillContainerAndStow(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, PlayerEntity 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(PlayerEntity player, World world, Hand hand, BlockPos pos, IFluidHandler fluidSource, FluidStack resource)Tries to place a fluid resource into the world as a block and drains the fluidSource. -
Uses of IFluidHandler in net.minecraftforge.fluids.capability
Classes in net.minecraftforge.fluids.capability with type parameters of type IFluidHandler Modifier and Type Class Description private static classCapabilityFluidHandler.DefaultFluidHandlerStorage<T extends IFluidHandler>Subinterfaces of IFluidHandler in net.minecraftforge.fluids.capability Modifier and Type Interface Description interfaceIFluidHandlerItemItemStacks handled by anIFluidHandlermay change, so this class allows users of the fluid handler to get the container after it has been used.Fields in net.minecraftforge.fluids.capability with type parameters of type IFluidHandler Modifier and Type Field Description static Capability<IFluidHandler>CapabilityFluidHandler. FLUID_HANDLER_CAPABILITYprivate LazyOptional<IFluidHandler>TileFluidHandler. holder -
Uses of IFluidHandler in net.minecraftforge.fluids.capability.templates
Classes in net.minecraftforge.fluids.capability.templates that implement IFluidHandler Modifier and Type Class Description classEmptyFluidHandlerclassFluidHandlerItemStackFluidHandlerItemStack is a template capability provider for ItemStacks.static classFluidHandlerItemStack.ConsumableDestroys the container item when it's emptied.static classFluidHandlerItemStack.SwapEmptySwaps the container item for a different one when it's emptied.classFluidHandlerItemStackSimpleFluidHandlerItemStackSimple is a template capability provider for ItemStacks.static classFluidHandlerItemStackSimple.ConsumableDestroys the container item when it's emptied.static classFluidHandlerItemStackSimple.SwapEmptySwaps the container item for a different one when it's emptied.classFluidTankFlexible implementation of a Fluid Storage object.classVoidFluidHandlerVoidFluidHandler is a template fluid handler that can be filled indefinitely without ever getting full. -
Uses of IFluidHandler in net.minecraftforge.fluids.capability.wrappers
Classes in net.minecraftforge.fluids.capability.wrappers that implement IFluidHandler Modifier and Type Class Description classBlockWrapperWrapper around any block, only accounts for fluid placement, otherwise the block acts a void.static classBlockWrapper.LiquidContainerBlockWrapperclassBucketPickupHandlerWrapperclassFluidBlockWrapperclassFluidBucketWrapperWrapper for vanilla and forge buckets.
-