Class FluidResourceHandlerItemAdapter

java.lang.Object
net.neoforged.neoforge.fluids.capability.FluidResourceHandlerAdapter
net.neoforged.neoforge.fluids.capability.FluidResourceHandlerItemAdapter
All Implemented Interfaces:
IFluidHandler, IFluidHandlerItem

@Deprecated(since="1.21.9", forRemoval=true) public class FluidResourceHandlerItemAdapter extends FluidResourceHandlerAdapter implements IFluidHandlerItem
Deprecated, for removal: This API element is subject to removal in a future version.
  • Field Details

    • itemAccess

      private final ItemAccess itemAccess
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • FluidResourceHandlerItemAdapter

      public FluidResourceHandlerItemAdapter(ResourceHandler<FluidResource> handler, ItemAccess itemAccess)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getContainer

      public ItemStack getContainer()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: IFluidHandlerItem
      Get the container currently acted on by this fluid handler. The ItemStack may be different from its initial state, in the case of fluid containers that have different items for their filled and empty states. May be an empty item if the container was drained and is consumable.
      Specified by:
      getContainer in interface IFluidHandlerItem